www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: John Tribe on February 16, 2013, 07:20:18 pm

Title: Use saved object3D in android and desktop project
Post by: John Tribe 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.
Title: Re: Use saved object3D in android and desktop project
Post by: EgonOlsen 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.
Title: Re: Use saved object3D in android and desktop project
Post by: John Tribe on February 16, 2013, 09:56:57 pm
well i tried that before and i get error: No octree found in serialized data! ??
Title: Re: Use saved object3D in android and desktop project
Post by: EgonOlsen 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.
Title: Re: Use saved object3D in android and desktop project
Post by: John Tribe 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.