Jump to content
  • Advertisement

Archived

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

drarem

glCallList vs manually

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

glCallList looks interesting, but is it for static objects only? For example, what if I want to make a landscape editor or deform part of the mesh.. do I have to load it into my own matrix to modify the values and regen the callList? Or if I want to animate texture on the mesh stored in the callist? I fseek, therefore I fam.

Share this post


Link to post
Share on other sites
Advertisement
Correct, display lists are much better for static geometry. Once you create a display list, the only way to edit the geometry (that I know of at least) is to recreate the list. That''s probably not something you want to be doing frequently.

I render some cheesy water by making a display list of a 2d sine wave, then scaling it by a value moving between -1 and 1. That makes the crests becomes troughs (and troughs become crests) when the scale is -1. Anyway, it''s a decent effect that''s really easy to do.

You can even animate the texture by changing the texture matrix. In my water, in order to make the water look more fluid, I just translate the texture around in a circle. It works pretty well. The point is, display lists don''t have to be totally static.

Share this post


Link to post
Share on other sites
thanks for your input I''ll have to remember those pointers, if I survive that far into this.

I fseek, therefore I fam.

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!