Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

FPS Scope/Zoom

This topic is 1145 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys,

 

I'm using XMMatrixLookAtLH() to setup my camera.

 

I have a camera position and a look vector. I setup a scope/zoom by simply making a copy of the camera position and then moving it down the look vector; it seems to be fine but I'm wondering if that's what I should be doing.

 

Thanks.

 

Share this post


Link to post
Share on other sites
Advertisement

Another reason to use a reduced field of view to zoom, rather than moving the camera, is that if you use effects that provide secondary depth cues, like distance fog and focal blur, they should behave correctly (or at least more believably, given the limitations of the method used).

Share this post


Link to post
Share on other sites

I also think you have to think of a way that 'around' the scope you can see the close/ real view at the camera's position.

Not sure though how different games handle this.

 

You could also choose for a 'layover' (circle like) which takes the whole view, with just black or something around it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!