Jump to content
  • Advertisement
Sign in to follow this  
SquareDanceSteve

The new dx9 sprite class

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

Advertisement
Guest Anonymous Poster
what kind of sprite class are you talking about/ what version of dx9 are you talking about... last time i checked in the dx9 sdk documentation, there was no such function for the ID3DXSprite interface... restate the question && fix it if necessary.

Share this post


Link to post
Share on other sites
Quote:

Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.


The current directx docs contain no reference to this method and ILDasm does not show it in the Microsoft.DirectX.Direct3D.Sprite namespace.

My advice: don't try to use it. Use the Transform property and call Draw().

Don't know what exactly you mean by "pointing at the camera" are you trying to billboard? Are tou drawing with the ObjectSpace flag set?

Also: Managed DirectX specific question are probably best suited to (and will get abetter response in) the DirectX or the .NET forums.

Share this post


Link to post
Share on other sites
well, yes im billboarding but im trying to use the spritetransform to do it, i just dont know what matrix to give it or how to correclty mod the matrix to get it to place the sprite and have it pointing at the camera

Share this post


Link to post
Share on other sites
I have not done this exact thing myself, but I believe that sprite handles billboarding for you without having to use the Transform property . If I remember correctly you use SpriteFlags.Billboard and supply your world/view transforms with SetWorldViewLH() and sprite will do the rest.

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!