Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

johnnyboy

optimized polygons/texture mapping

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

Hi... Using VC++ with OpenGL, is there any way of writing an ''optimized'' mesh (later to be used w/texture mapping)? Specifically -- say I have a 100x100 landscape "wireframe grid". I.e., 100 lines across, 100 lines down. But being represented as polygons (i.e., 100x100 = 10,000 seperate polygons, so that later on, can change the height of various polygons, etc). However, (obviously), it is really, really slow. (Basically just using the addpolygon method). Is there a better way of doing that? I''m thinking of perhaps using some sort of equation, but how would I go about doing that (kind of new to this, so any good online references would be ok too). thx!

Share this post


Link to post
Share on other sites
Advertisement
100x100=20.000 triangles wich isnt that much for nowadays video cards , anyway if you find performance to be somewhat low, you should consider some sort of space partitioning scheme (ie octrees, quadtrees , bsp trees) , another thing to do is not to render data in imediate mode, go for vertex arrays , buffer them, also check out different algorithms on terrain surface rendering based on LOD

Share this post


Link to post
Share on other sites

  • 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!