Log in or register to post comments

Render size

February 23, 2018 - 5:49am #1


I am currently in the process of upgrading to the latest vuforia version and since the framemarker is deprecated, I am switching to an ImageTarget.

The framemarker supported a setSize method, allowing you to change the render scale of an object WITHOUT actually changing the scene scale.

That is very important because changing the scene scale messes with physics, particles sizes etc.

Now after switching to an ImageTarget, the only option I have is setWidth, setHeight, but these methods DO change the scene scale of my virtual objects instead of just the render scale.

How can I change the renderscale using ImageTarget and not the scenescale?



Render size

February 23, 2018 - 11:29am #2


after much tinkering, I fixed it this way:


private void _OnVuforiaTrackablesUpdated()


  Debug.Log("@:Trackables updated.");

  Camera.main.transform.position = Camera.main.transform.position.normalized * (default + zoom);


Seems to do exactly what I want, but if there is a better way, I'd love to hear it.



Log in or register to post comments