Jump to content
  • Advertisement
Sign in to follow this  
Crazy Jonny

Billboards

This topic is 4912 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'm putting explosions into a game using 3D billboards, and it seems pretty inefficient at the moment, especially when i have about 50-100 of these little explosions on screen at once, since i have to make it calculate stuff, rotate and draw a rectangular mesh every time i want it to display it. And I can't use frames in one big bitmap to animate the explosion. So I'm wondering whether it's possible to do this with D3DXSprite instead. The only problem is working out where on the screen it should be, since I can't tell direct3d to give me the screen co-ords of a certain point in space. So if anyone has a clue how i might do this with sprites please let me know... Thanks

Share this post


Link to post
Share on other sites
Advertisement
If you pass the Object Space flag to D3DXSprite your billboards are no different than the rest of the objects in your scene. Sprites aren't just 2D.

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!