www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: keaukraine on November 20, 2010, 06:59:07 pm

Title: Loading serialized objects problem
Post by: keaukraine on November 20, 2010, 06:59:07 pm
Hi,

I have a scene which consists of few objects.
If I import them one by one into 3D Studio, their positions fit each other perfectly.
But when I try to load set of serialized objects in jPCT-AE, they appear in wrong positions.
I suppose it is because of re-calculating object's origin which happens after build() call.

Is there a way to get object being loaded exactly into the same origins as they were placed in 3DS files?
Title: Re: Loading serialized objects problem
Post by: EgonOlsen on November 20, 2010, 09:15:20 pm
The loader doesn't care about transformations that may be stored within the 3ds file, if that is what you mean. Isn't it possible to get the current translation from 3ds and apply the same (transformed into jPCT's coordinate system of course) programmatically in your application?
Title: Re: Loading serialized objects problem
Post by: raft on November 20, 2010, 09:22:37 pm
have a look at this thread. it may be related
http://www.jpct.net/forum2/index.php/topic,617.msg3201.html#msg3201
Title: Re: Loading serialized objects problem
Post by: keaukraine on November 22, 2010, 09:33:40 pm
Thanks for the helpful tips, I have solved problem. :)