www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: erjott on November 14, 2012, 01:04:59 pm

Title: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: erjott on November 14, 2012, 01:04:59 pm
Hi there,

I'm using jpct-ae to visualize .obj files which I exported from blender. That works quite well, even for big scenes. There's just one small issue when loading multiple Object3Ds from a single file: It seems that the Loader does only parse the name for the first object. The other ones are just called "_jpctXX".

I've attached my test files, this is the logcat output when loading them into jpct-ae:

Code: [Select]
11-14 12:46:31.346: I/jPCT-AE(14932): Loading file from InputStream
11-14 12:46:31.346: I/jPCT-AE(14932): Text file from InputStream loaded...206 bytes
11-14 12:46:31.346: I/jPCT-AE(14932): Processing new material Material!
11-14 12:46:31.346: I/jPCT-AE(14932): Loading file from InputStream
11-14 12:46:31.346: I/jPCT-AE(14932): Text file from InputStream loaded...1732 bytes
11-14 12:46:31.356: I/jPCT-AE(14932): Processing object from OBJ-file: Cone
11-14 12:46:31.356: I/jPCT-AE(14932): Object 'Cone_jPCT8' created using 14 polygons and 9 vertices.
11-14 12:46:31.356: I/jPCT-AE(14932): Processing object from OBJ-file:
11-14 12:46:31.356: I/jPCT-AE(14932): Object '_jPCT9' created using 28 polygons and 16 vertices.
11-14 12:46:31.356: I/jPCT-AE(14932): Processing object from OBJ-file:
11-14 12:46:31.356: I/jPCT-AE(14932): Object '_jPCT10' created using 12 polygons and 8 vertices.

What I would have expected is that the second object would be called "Cylinder_jPCT9" and the third one "Cube_jPCT10".

Can anyone confirm this behaviour? Maybe there's something wrong with my files? After all, there are a lot of things you can fine-tune when exporting from blender...

[attachment deleted by admin]
Title: Re: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: EgonOlsen on November 14, 2012, 03:06:37 pm
Works fine in the desktop version. I'll give it a try in jPCT-AE later to see if there is any difference. Which version are you using?
Title: Re: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: erjott on November 14, 2012, 03:17:50 pm
I'm using the latest version, checksum of jpct_ae.jar matches with the one you can download here: http://www.jpct.de/download/net/jpct-ae.zip
Title: Re: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: Thomas. on November 14, 2012, 04:17:27 pm
Here are the latest versions...
http://jpct.de/download/beta/jpct.jar (http://jpct.de/download/beta/jpct.jar)
http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: EgonOlsen on November 14, 2012, 08:37:27 pm
Here are the latest versions...
http://jpct.de/download/beta/jpct.jar (http://jpct.de/download/beta/jpct.jar)
http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Yes. And i've just updated the ae-beta with a version that fixes this bug in jPCT-AE. In jPCT, it was fixed already but i somehow forgot to do the merge.
Title: Re: Only first Object3D gets a name when loading multiple objects from .obj file
Post by: erjott on November 15, 2012, 12:44:37 pm
Thanks a lot, works just fine now!