Log in or register to post comments

Model orientation relative to device

August 4, 2015 - 11:27am #1

Apologies if this has been addressed elsewhere but have not found any..

I have an image target that is a poster that for the most part will be on a wall and so in the Unity editor I position the model (for want of an example model cube with a letter on each side) facing the camera and all is good, but......

The poster could as easily be place on the floor or a table and this means the cube letter faces would be pointing up into the air and the camara is seeing the cube bottom!

So does anyone know of a way, or a tutorial that shows how to orientate the model cube in effect flipping it so it letter faces face the camera.  I know how to use lookat camera but that is ok for a model with just one face, here I will need to rotate the cube by touch to view each face.

 

Thanks

Model orientation relative to device

August 6, 2015 - 2:54am #3

The image on the left shows in this instance the target image flat on a table with the model that is attached to it orientated correctly for this view

 

The imgae on the right show the target image flipped to be vertical and as sure the model follows and so end up facing the wrong way

 

AttachmentSize
Image icon Untitled.png1.09 MB

Model orientation relative to device

August 5, 2015 - 2:50pm #2

If you have the lettering as a 3d model that is displayed when the camera is looking at the poster make the model part of the image target. If this doesnt help try some screen shots because there is also a setting on the ARCamera that has three settings on it one so that the object or what happens after the image target is found it follows the camera, and the other two are in reference to stay with the image target. I hope this helps and if not please provide some screen shots.

Log in or register to post comments