Jump to content
  • Advertisement

Archived

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

penetrator

billboarding a vertex array

This topic is 5380 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''ve done billobarding with simple quads, but can you give me some hints on how i could billboard the following vertex array ? for (int zvar = 0; zvar < MAP_Z-1; zvar++) { glDrawElements(GL_TRIANGLE_STRIP, MAP_X * 2, GL_UNSIGNED_INT, &g_indexArray[zvar * MAP_X * 2]); }

Share this post


Link to post
Share on other sites
Advertisement
To billboard something you just need to change the matrix, don''t you? And why are you trying to billboard a vertex array, btw?

Share this post


Link to post
Share on other sites
Check on my website, I''ve the example for you. You just modify the code and it will be cool for you

========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/

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.

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

Sign me up!