Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualParadigm Shifter

Posted 05 January 2013 - 03:22 PM

You want to multiply the field of view by a float between 0 and 1 to zoom in. Use 1 for normal zoom, experiment for the zoomed in value. You can interpolate the zoom amount to zoom in smoothly. Try 0.5 to start with (should make everything twice the size) and tweak from there.

camera->fov = (D3DX_PI / 4) * amount; // amount = 1.0f -> no zoom

#1Paradigm Shifter

Posted 05 January 2013 - 03:22 PM

You want to multiply the field of view by a float between 0 and 1 to zoom in. Use 1 for normal zoom, experiment for the zoomed in value. You can interpolate the zoom amount to zoom in smoothly. Try 0.5 to start with (should make everything twice the size) and tweak from there.<br /><br />camera-&gt;fov = (D3DX_PI / 4) * amount; // amount = 1.0f -&gt; no zoom

PARTNERS