Forums > Jitter

Position of a 3d Object

January 30, 2012 | 10:23 pm

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


January 31, 2012 | 8:49 am

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


January 31, 2012 | 5:07 pm

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.


Viewing 3 posts - 1 through 3 (of 3 total)