Jump to content
  • Advertisement
Sign in to follow this  
skow

Terrain tiles

This topic is 5087 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

I'm currently doing a terrain engine that can be devided up into tiles, each tile is made up of several 1, 4, 16, etc subdivissions depeneding on it's distance from the camera. I'm thinking of 2 diffrent ways I coule be drawing them via vertex arrays:
+---+---+---+---+
|  /|  /|  /|  /|
| / | / | / | / |
|/  |/  |/  |/  |
+---+---+---+---+
|  /|  /|  /|  /|
| / | / | / | / |
|/  |/  |/  |/  |
+---+---+---+---+
etc
or
+---+---+---+---+
|\  |  /|\  |  /|
| \ | / | \ | / |
|  \|/  |  \|/  |
+---+---+---+---+
|  /|\  |  /|\  |
| / | \ | / | \ |
|/  |  \|/  |  \|
+---+---+---+---+
The first way would be really easy to use triangle strips to draw but i think wouldnt look as good for smooth hills. The second i think would look better but would be slower as I couldn't use triangle strips/fans (using front face culling). Any suggestions on which way (or a diffrent way) to go?

Share this post


Link to post
Share on other sites
Advertisement
Triangle strips don't give you much benefit on most modern graphics cards. The extra memory bandwidth of a list compared to a strip is the only difference, and that's not much -- the vertex cache makes sure that the actual vertex data is transformed only once for a single vertex the same for strips and lists.

Share this post


Link to post
Share on other sites
I've heard it depends on the card. ATI cards prefer lists while nVidia still gives you a boost with strips. I could be misinformed but that was the last I heard on the matter.

For my terrain, I just recently moved to Isometric Tiling (I dont know how to make this a link, sorry.) http://graphics.cs.brown.edu/games/IsoHeightfield/

THis provides better looking terrain... you have

______________
|\/\/\/\/\/\/\/\/|
------------------
|/\/\/\/\/\/\/\/\|
------------------
|\/\/\/\/\/\/\/\/|
------------------
|/\/\/\/\/\/\/\/\|
------------------

instead of the other one. I am in OpenGL so prefer nVidia anyway and stripping requires an extra null triangle to connect rows every 2 rows for me.

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!