Author Topic: Supporting multiple 3d model formats  (Read 905 times)

Offline Amourreux

  • byte
  • *
  • Posts: 2
    • View Profile
Supporting multiple 3d model formats
« on: June 24, 2013, 03:41:50 pm »
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.
« Last Edit: June 25, 2013, 03:30:45 pm by Amourreux »

Offline IZACIZAC

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Supporting multiple 3d model formats
« Reply #1 on: June 25, 2013, 05:26:11 am »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11744
    • View Profile
    • http://www.jpct.net
Re: Supporting multiple 3d model formats
« Reply #2 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.

Offline Amourreux

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Supporting multiple 3d model formats
« Reply #3 on: June 25, 2013, 10:20:05 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 ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11744
    • View Profile
    • http://www.jpct.net
Re: Supporting multiple 3d model formats
« Reply #4 on: June 25, 2013, 10:30:32 am »
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...