Log in or register to post comments

3d model positioning

July 9, 2013 - 5:26am #3

Hi,

I have followed the RajawaliVuforia tutorial and integrated the rajawali with vuforia CloudReco and i am able to get the 3D model but model is not positioned properly in target image center and also if i move camera close or up, the model is positioning out of the target image. Can you please let me know what could be the issue.

i have got the modelviewmatrix from JNI to java and assigned to rajawali camera like,

mPosition.setAll(modelViewMatrix[12], -modelViewMatrix[13],
            -modelViewMatrix[14]);

Thanks & Regards,
Prakash V

 

3d model positioning

July 9, 2013 - 6:13am #2

Hi, the best would be to ask to the author of the RajawaliVuforia project (as the project is not officially supported by Vuforia)

 

3d model positioning

July 10, 2013 - 7:55am #1

I'd also take a look at where the origin (ie, 0,0,0 in local coordinates) of the model you are displaying is, relative to the target origin.

Many 3D models have the origin in the center, and you often have to offset it in Z to make it appear on top of the target.  Without that, the target will superficially *appear* to be on the plane (since they're typically not clipped), but seem to shift as you move the camera.

Log in or register to post comments