www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: laborg on April 25, 2012, 02:44:21 pm

Title: Why don't names don't get serialized?
Post by: laborg on April 25, 2012, 02:44:21 pm
Hi!

First off: Great library and impressive support!

Here's my question:
In the case of serializing an Object3D-Array to use it on android the names (originally coming from a .obj file created in blender) aren't serialized to the ser-file. Why?
(Background: I want to access 3d-Objects in Android by their name - if that's not possible I would be thankful for a hint on how to solve the problem of having a deterministic assignment between the identity of objects in blender and the android-world. Searched the forums for "naming" and "ordering" but found nothing.)

Thanks in advance!
Laborg
Title: Re: Why don't names don't get serialized?
Post by: Thomas. on April 25, 2012, 04:18:26 pm
I have same problem in 3ds format... from this reason I can not use serialized files
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on April 25, 2012, 10:04:48 pm
I guess i simply forgot to add this. I'll look at it the next week, when i'm back home.
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on May 01, 2012, 09:43:01 pm
Please try these jars:

http://jpct.de/download/beta/jpct.jar (http://jpct.de/download/beta/jpct.jar)
http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: Why don't names don't get serialized?
Post by: Thomas. on May 05, 2012, 12:53:07 am
thanks for update, now it is ok :)
edit: I have problem with rotation pivot. I loaded 3ds file and used rotation pivot from it, serialized with reduce, but rotation pivot is bad in my android game.
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on May 06, 2012, 12:54:32 am
I don't think that the rotation pivot is being saved. The basic idea of serialized objects was to speed up the loading process. It wasn't meant to be used for serializing the actual Object3D as a whole. But i guess if the loader loads this pivot, it should be serialized as well...i'll look into it in the next few days...
Title: Re: Why don't names don't get serialized?
Post by: Thomas. on May 06, 2012, 01:05:07 pm
Ok, thanks... and what mean compile of object?
Title: Re: Why don't names don't get serialized?
Post by: laborg on May 07, 2012, 09:35:02 am
Thx, worked!
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on May 07, 2012, 10:00:48 am
...and what mean compile of object?
It's the process of converting, splitting, merging and optimizing the an Object3D for being rendered on the GPU most efficiently. But i don't understand what this question has to do with serialized objects!?
Title: Re: Why don't names don't get serialized?
Post by: Thomas. on May 07, 2012, 10:09:35 am
This takes about 25% of loading process time, is possible to compile objects one time and save it to serialize file?
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on May 07, 2012, 10:13:32 am
No. It has to happen on the target device.
Title: Re: Why don't names don't get serialized?
Post by: EgonOlsen on May 16, 2012, 10:07:16 pm
I've updated the jars with a version that saves/loads the rotation pivots too.
Title: Re: Why don't names don't get serialized?
Post by: Thomas. on May 17, 2012, 02:46:42 pm
it's working, thanks :)