Jump to content
  • Advertisement

Project: Rank: Warmaster

Look Mom! No seams!

Sign in to follow this  


Look Mom!  No seams!
Look Mom!  No seams!
Look Mom!  No seams!

While the terrain engine is FAR from being done, having the level of detail from one larger triangle terrain into a lower detail one without holes is a big step forward.  While it doesn't work 100% in all cases because of how resolution is selected, it works about 95% of the time.  The mechanism works 100%, just the resolution selection and telling it to reduce properly sometimes gets out of step.  Meaning, if a triangle is at resolution 9, and the one next to it is set to resolution 7, it bumps it to 8, and knows to do a resolution adjustment at the fringes. The problems is, does the triangle next to it know it got bumped and adjust accordingly.  Perhaps I will have to do a routine to force validation.  But the hard part of the sewing mechanism is working 100%.  That was a pain because each of the three sides had to be "hand crafted" to reduce the resolution.  The points of the triangles, which I call caps, also had to have 4 states each.  (ie. left, right, both or none).  The second and third screencaps above show how the triangles are reduced.  (Red is bottom, Blue is Right, Green is left).  But you can see the caps being bigger than just the point reduced side.  If you look closely at how a series of terrain triangles are being reduced, the caps on a different triangle are half the size (or double depending on which way you look at it) to the ones next to it.  A higher resolution terrain triangle is always the one with the "reduction"/sewing side, not the lower resolution one.  So in these pictures, you can see two higher resolution terrain triangles, going one step down, and those terrain triangles and being reduced again to it's adjacent triangles.  The Perlin noise is currently out of control and is VERY jaggy, but in the pictures, you can see as the resolution drops, that things turn from sharp rocks to rolling hills like pillows.  


View the full article


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!