Sign in to follow this  
  • entries
    102
  • comments
    146
  • views
    79910

Editor Progress Update(a.k.a. Sucky Geomipmapping

Sign in to follow this  
Black Knight

117 views

Well i give it a shot at making a geomipmapped terrain.It doesn't handle cracks yet but ill try to make that work too,also it just selects the LOD level based on the distance of the patch to the camera.I didn't understand from the formulas to get the screenspace error and other stuff so i left that out :).

It uses one big vertex buffer to hold all vertex data then each patch holds indices to draw from the vertex buffer because the vertex buffer is too large the index values are unsigned ints instead of unsigned shorts so I guess that is a performance hit.

Also it acts strange when the map size goes 1025x1025 i was afraid to try higher than that as it already takes some time to compute the terrain normals :)

Also i use the minIndex parameter of DrawIndexedPrimitives call to get to the vertex inside the vertex buffer.It still needs alot of tweaking and bugfixing but i hope it will get better.
The patches are drawn with triangle strips all the way using degenerate triangles to get to the next row.These degenerate triangles show up in wireframe but not in solidview.There is a way to fix the wireframe view by changing direction of the strips after each row but i leave that for last :)

Here are 2 screenshots :


Sign in to follow this  


0 Comments


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