Sign in to follow this  

Billboards

This topic is 4758 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
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
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3dx/interfaces/ID3DXSprite/Begin.asp

Share this post


Link to post
Share on other sites

This topic is 4758 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this