Jump to content
  • Advertisement
Sign in to follow this  
Isolier

Terrain Engine Polygons

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

Hello, I have seen some terrain engines use quads and some use triangles to render the terrain. I was wondering if one is better suited for certain things than the other or if it matters at all?

Share this post


Link to post
Share on other sites
Advertisement
All I'm about to say is based under OpenGL work.

A quad is two triangles. However, you can use GL_QUAD, but then you'll have a lower detail ability (unless I'm mistaken). The way most people do it is GL_TRIANGLE_STRIP or GL_TRIANGLE_FAN (for making quads).

Hope thats some help..

Share this post


Link to post
Share on other sites
When people draw quads, they use two triangles. The graphics hardware uses triangles, so you should draw triangles.

It's possible that the graphics API might convert the quads into triangles behind the scenes, but you'd really be better off just using triangles from the start.

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.

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!