Author Topic: Loading serialized objects problem  (Read 1316 times)

Offline keaukraine

  • byte
  • *
  • Posts: 34
    • View Profile
Loading serialized objects problem
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11747
    • View Profile
    • http://www.jpct.net
Re: Loading serialized objects problem
« Reply #1 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?

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Loading serialized objects problem
« Reply #2 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

Offline keaukraine

  • byte
  • *
  • Posts: 34
    • View Profile
Re: Loading serialized objects problem
« Reply #3 on: November 22, 2010, 09:33:40 pm »
Thanks for the helpful tips, I have solved problem. :)