ksiva wrote:
How about parenting it to the camera?
- Kim
I appreciate all of your input on this.
My last problem is regarding character movement. I have a character that I move around the screen, but as soon as I parent the AROrigin to the ARCamera, his movement is no relative to the AROrigin as it was previously.
For context, this is how the scene is set up PRIOR to parenting the AR to the camera:
tracker
-- AROrigin
------ SceneParent (empty)
---------- CharacterParent (CharacterController)
-------------- Character Model
---------- Scene stuff
And then, AFTER parenting the AR to the camera, I have:
ARCamera
-- AROrigin
------ SceneParent (empty)
-------- CharacterParent (CharacterController)
------------ Character Model
-------- Scene stuff
In the prior case, the character moves around just fine. In other words, his forward movement is relative to the background and the way he is facing.
In the last case (where AROrigin is parented to ARCamera), the character's movement is relative to the camera position in some way that I can't entirely figure out. As I turn the device, his movement becomes worse.
Any thoughts as to what I'm missing?
If you want to freeze the position of the 3D object on the screen you can disable the QCARBehaviour:
If you also want to freeze the camera feed it's a bit trickier. I suggest starting with the BackgroundTextureAccess sample and following the included Readme to render the camera image using the ARCamera. Then when you disable the QCARBehaviour the camera image should still be rendered.
- Kim