Position of a 3d Object

Jan 30, 2012 at 10:23pm

Position of a 3d Object

I am loading a .obj in a patch with the jit.gl.model object but my 3d object is always loading at the top-left of my screen…. Can we have a control on that object if for example I want it in the right of my screen for example. Thanx a lot..

ben

#61542
Jan 31, 2012 at 8:49am

[position x y z] to jit.gl.model ought to do this, right?

#222108
Jan 31, 2012 at 5:07pm

by default jit.gl.model has @normalize 1, which will try and center your model at the origin, and scale it so it fits in a unit sphere. however if your model has nodes applying weird transformations, sometimes this will not properly center.

you can disable normalize, and the model will load in the exact position and scale it was exported.
if it’s still not centered, you should go back to your modeler and reexport at the origin.

#222109

You must be logged in to reply to this topic.