Sign in to follow this  

Terrain tiles

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

This topic is 4744 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.

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

Sign in to follow this