Problem with object position

Started by thejauffre, January 23, 2018, 11:50:07 AM

Previous topic - Next topic

thejauffre

Hi,
I have a problem when loading some OBJ files. I'm using JPCT-AE and Vuforia. In the same world, I have to render 2-3 objects, that I export from the same scene in 3ds max.
The problem is in the positioning: even if an object has position (0,0,0) in 3ds, when I load multiple objects in JPCT the position is not correct. The objects are somehow translated. But when I load a single object, it is in the correct position.
Am I missing something?
Thanks in advance for your help.

thejauffre

Ok, the problem was a rotation... In fact, rotating each object, the result appeared translated.
I solved using a Parent object, and applying the rotation only to it.

Mareos9593

I have the same problem, can you post the code please  :(

EgonOlsen

Object3D has a static method to create a dummy object. Use one of those, attach it as a parent to all the other objects in question, then rotate the dummy.