Author Topic: Use saved object3D in android and desktop project  (Read 2266 times)

Offline John Tribe

  • byte
  • *
  • Posts: 17
  • I love games
    • View Profile
Use saved object3D in android and desktop project
« on: February 16, 2013, 07:20:18 pm »
Hi,
Is there an api or tools for use modificated 3D object in different project.
Example:
In pc application.
1.  object3d = Loader.load3ds();
2. object3d move to xyz position, change size etc.
3. save (serialize or something)

run android:
load object3d
object3d is loaded in the same xyz position and size etc.
Best game prices in http://games2see.com

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Use saved object3D in android and desktop project
« Reply #1 on: February 16, 2013, 09:21:37 pm »
Not within the API. I think that some more or less finished third party tools exist, that can do something like this, but i've never used them. Then again, it's pretty trivial to create something like this tailored to your needs. You can serialized/deserialize Object3D's using the DeSerializer in the desktop version and the Loader in the jPCT-AE to load them, but there's no such thing as a scene saver/loader.

Offline John Tribe

  • byte
  • *
  • Posts: 17
  • I love games
    • View Profile
Re: Use saved object3D in android and desktop project
« Reply #2 on: February 16, 2013, 09:56:57 pm »
well i tried that before and i get error: No octree found in serialized data! ??
Best game prices in http://games2see.com

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Use saved object3D in android and desktop project
« Reply #3 on: February 16, 2013, 10:14:14 pm »
That's not an error. If it would be one, it would throw an exception. It's just a logging output that the data contains no octree.

Offline John Tribe

  • byte
  • *
  • Posts: 17
  • I love games
    • View Profile
Re: Use saved object3D in android and desktop project
« Reply #4 on: February 16, 2013, 10:42:40 pm »
thanks for hints !! my bad, by mistake i deleted crucial line in my code ... well it's good moment to write some tests.
Best game prices in http://games2see.com