Jump to content
  • Advertisement
Sign in to follow this  
eGamer

Drawing map in : display List , Vertex Array

This topic is 4751 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 am drawing a map in my engine : - put drawing routine of the cell in a display list - in a for loop i call the previous routing within a specified position in map array of points for i=point0 to point n do glTranslate(point i); call_diaplay_list_routine; i am wondering is this the best choice of map rendering, notice that number of matrix-multiplication caused by glTranslate is n*m : n number of cells in a row m number of cells in a column is vertex array better than display list in this situation ?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
i am wondering is this the best choice of map rendering

This is probably fine, although if you need to draw transparent objects, you may need to sort the display lists by depth first.

Quote:
is vertex array better than display list in this situation ?

You can actually draw a vertex array inside of a display list. So if you want to maximize performance, I would suggest doing that.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!