Supporting multiple 3d model formats

Started by Amourreux, June 24, 2013, 03:41:50 PM

Previous topic - Next topic

Amourreux

Hi to everyone. i am new to jpct-ae.

Currently i am at the early stages of developing a AR app with vuforia sdk.
i have successfully integrated jpct to vuforia sdk.

So JPCT already can support  3DS, OBJ, MD2, ASC and serialized files.

1 - What is meant by the serialized files?

2 - Can i load .3dm, .sldprt, stp and many others by using this serialize feature?

i read DeSerializer Class and Loader Class at Java Docs of JPTC. But did not help much.


Thanks in advance.

IZACIZAC

I think serialized would be, say, you create a Object3D, then load in a model OR create it by specifying its points, then you can serialize this Object3D (saving the Object in its current runtime form), then later deserialize it and you have the identical Object3D again.. I guess?

EgonOlsen

Yes, serialized files are Object3Ds written to disk for faster loading on Android (http://www.jpct.net/wiki/index.php/Differences_between_jPCT_and_jPCT-AE#Performance_and_memory_issues.2C_serialized_objects). They are not useful for loading other 3d formats. If you want to load a 3d format that isn't supported by default, you have to write your own loader. jPCT-AE offers methods to create an object out of single triangles as well as out of bulk data.

Amourreux

Quote from: EgonOlsen on June 25, 2013, 10:08:46 AM
Yes, serialized files are Object3Ds written to disk for faster loading on Android (http://www.jpct.net/wiki/index.php/Differences_between_jPCT_and_jPCT-AE#Performance_and_memory_issues.2C_serialized_objects). They are not useful for loading other 3d formats. If you want to load a 3d format that isn't supported by default, you have to write your own loader. jPCT-AE offers methods to create an object out of single triangles as well as out of bulk data.

using assimp for load models is a good idea for JPCT-AE ?

EgonOlsen

If you can get the data out of it in a way that you can create an Object3D from it and if it runs/runs well on Android, then why not...