By Ravilavs
on Fri, 09/06/2013 - 08:12
Hi,
How to get the camera view / lookat vector w.r.t. tracker and 3d model render on it.
I need to find the lookat vector w.r.t. to 3d object when it is translated away from tracker.
Thanks
How to get camera view vector / lookat vector
Hi, if you need to compute the camera vlookat vector in the model reference frame, you will need to:
- take the lookat vector defined in the camera reference frame, i.e. the vector whose XYZ components are (0, 0, 1)
How to get camera view vector / lookat vector
Thanks , i will try .
How to get camera view vector / lookat vector
Hi,
Did you mean that we should multiply (0,0,1) with inverse of modelViewMatrix (ImageTarget) to get camera lookat vector w.r.t. rendered model ?
From the below link
https://developer.vuforia.com/resources/dev-guide/getting-camera-position
How to get camera view vector / lookat vector
You can definitely use that link:
How to get camera view vector / lookat vector
Thanks for so quick reply.
Correct me if I am wrong , I am new to this enenvironment--
But camera viewing direction is w.r.t. to tracker , what if I translate the model far from tracker then :
1) angle between camera vector and center of model
How to get camera view vector / lookat vector
If you need to take into account the 3D model translation from the center of the trackable, you can modify the code as follows:
How to get camera view vector / lookat vector
Thanks
How to get camera view vector / lookat vector
You're welcome.
How to get camera view vector / lookat vector
I want to find the dot product of camera look at vector and normal to 3D model.
I have calculated normal to 3D model and camera lookat vector from above, but not getting the expected result.
Do i need to modify the camera vector ?
How to get camera view vector / lookat vector
Make sure that the model normal is defined in the same reference frame (i.e. the reference frame of the model) and that the 2 vectors are normalized, if needed.