Jump to content
  • Advertisement
Sign in to follow this  
Bruno

zoom in\ zoom out

This topic is 4880 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 there, I'm about to add scopes\binoculars to my game, but i'm not sure how to go on this. The most used technique is probably just changing the FOV, and altough this works, won't work in all situations, in my case with a massive LOD system everywhere, just changing the fov won't work for obvious reasons. How is everyone doing it ? thanks, Bruno

Share this post


Link to post
Share on other sites
Advertisement
Setting the FOV is the correct way to go about it. In my case, I either disable the LOD or bias it depending on the FOV. Assuming you have simple frustum culling implemented, it shouldn't be a big performance hit to disable LOD and switching the FOV to, say, 10 degrees.

Share this post


Link to post
Share on other sites
I cannot disable the LOD, most of my vegetation is impostors, that turn into meshes at close range, and i also have the grass that is rendered in a certain radius of the camera.
Isn't there a way to project the player position, depending on the FOV that is currently being used ?

Share this post


Link to post
Share on other sites
You should then modify the engine to weight the definition of "close range" with the field of view factor, so that changing the fov alters the treshold of what you've defined as "close" in the lod calculation.

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!