Archived

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

penetrator

billboarding a vertex array

Recommended Posts

penetrator    122
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
PM    122
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
Leyder Dylan    122
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