Jump to content
  • Advertisement
Sign in to follow this  
BloodLust666

ID3DXSprite billboard

This topic is 4825 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

what's the point is having a billboarded ID3DXSprite object? it can't be further than 1.0f on the Z axis anyway? can someone explain the ups and downs of using billboarded ID3DXSprites

Share this post


Link to post
Share on other sites
Advertisement
I am no expert on the specifics of your question, but here is what I would expect the behavior to be:

the billboard creates a sprite that is always facing the camera. This is good for doing things like putting character names above their heads or other UI elements in 3d space, as you will never want to see them at an angle.

As for only being able to go to 1.0f on the z-axis, it is probably in parameterized form, meaning that 0.0f is the location of the camera (or the near clip range, not sure which), and 1.0f is the far clip plane (ie, the farthest distance something can render.

Thus, if your render can render 1000 meters and you want something 60 meters away, put it at 0.06f and it will show up in the correct location.

Hope that helps!

Share this post


Link to post
Share on other sites
If you pass the D3DXSPRITE_OBJECTSPACE flag, then your sprites are world objects just like any other. In this case if you want them to face the camera (and you typically would) you would pass the billboard flag as well.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!