Log in or register to post comments

How I transform AR Camera to target ?

November 2, 2013 - 7:53am #1

Hello,

I want to transform AR Camera when I use script "CameraDevice.Instance.Stop();"

This my code when I touch object.

if(objectToTouch == "Cube"){
   CameraDevice.Instance.Stop();
   Cam.transform.position = Vector3.Lerp(Cam.transform.position, new Vector3(Cam.transform.position.x,41,Cam.transform.position.z),0.02f);
}

When I touch object,ar camera not transform.

 

How do I do ?

 

Excuse me,I'm not good english.

 

Thanks

How I transform AR Camera to target ?

May 21, 2018 - 8:51am #6

Reviving this thread. Why can't I change the camera transform? I can't even change the camera transform using the parent transform.

This is not a feature Vuforia, this is a problem.

How I transform AR Camera to target ?

November 2, 2013 - 11:01pm #5

I want to do same this video.

http://youtu.be/TzD1g-mhRB8?t=2m19s

How I transform AR Camera to target ?

November 2, 2013 - 10:39pm #4

Main Camera not transform from AR Camera when I touch object.

I use setActive Main Camera and AR Camera and this code:

if(objectToTouch == "Cube"){
			CameraDevice.Instance.Stop();						
			
			mainCam.SetActive(true);
			mainCam.transform.localPosition = Vector3.Lerp(mainCam.transform.localPosition, new Vector3(mainCam.transform.localPosition.x,41,mainCam.transform.localPosition.z),0.01f);						
		}

I want set position main camera same position the ar camera.When I touch object I want to transform main camera to target.

 

How do I do ?

How I transform AR Camera to target ?

November 2, 2013 - 8:50pm #3

How do toggle between the ARCamera view and camera in the scene ?

 

I can use setActive ?.

How I transform AR Camera to target ?

November 2, 2013 - 10:44am #2

The position of the ARCamera in the scene is controlled by the SDK, which is why your code is being overridden. Can you achieve what you're attempting using another camera? - so you would toggle between the ARCamera view and that of another camera in the scene.

Log in or register to post comments