"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

How to get Camera Rotation according to Tracker

 

 

Hi,

I'm new to Vuforia SDK, I did many researches but I couldn’t find a proper answer. Is there a way to get the tracker (camera) rotation angles? I need to display several different images based on the tracker angle.For example: In 0 degrees one image and in 10 degrees another image and it goes on...For that I need to get the tracker rotation. Please acknowledge me on how to get the tracker angle, either from JAVA Android code or from C# code.It will be great if this can be achieved by Java Android code, But even C# code also would be fine. Thanks in advance.

Amal.

Thanks. Those are great ideas. I looked into the first idea which is, setting the object transform.parent to ImagerTarget transform. But then I came to notice that they do not provide any methods to retrieve the ImageTarget transform data. So I am going for the second option now.

Hi again !! 

When I was coding I came up with few more problems. 

1) How to add a button on the screen display (not virtual buttons define in image targets)  using C# code ? is it possible to do in C# script or do I have to jump to android code to add the button ?

Thanks a lot ! I manage to  open the project according to your instructions. I am new to Unity3D. Forgive me for my poor experience on Unity3D. Now I'm practicing Unity3D and getting used to it functionalities. Highly appreciate your help.

Thanks.