Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

FPS Scope/Zoom

This topic is 1227 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!