Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Lord of the LODs

Sign in to follow this  


Got LOD working today. You can define the number of LOD levels each object can have. Max is 2, min is 0. Can't have a higher number of LOD levels than tesselation levels. I'm pretty happy with that for now. Don't really want any more than 2 LOD levels (including the highest level, makes that 3).

However, I'm wondering what other people use for the error-metric for selecting levels? I currently have hard-coded values for the distance from the camera where each level switches at. This is pretty much the fastest method as the distance is an approximation and all it needs is one or two compares per object. However, I'm wondering if I should scale the cut-off distances based on the object's size? Obviously this would introduce more calculations into every object draw, but might make the choice of LOD level more accurate.

My current hunch is that the hard-coded values are fine and I can just have a "geometry detail" setting in the game whereby people with nicer/older hardware can move these distances closer/further away. Plus I'm not keen on introducing too many calculations into each draw call as I'd ideally like to have *many* objects floating around in view and too much fiddling will end up costing me FPS.

Any thoughts?
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!