about ID3DXSPRITE->Draw()

   May I use ID3DXSPRITE->Draw() to draw a bullet mark
I found that ID3DXSPRITE->Draw(D3DXSPRITE_OBJECTSPACE) cann't to draw a SPRITE that change the direction of the face.When I use a parameter like  D3DXSPRITE_OBJECTSPACE.
   How to let it draw like Device->DrawPrimitive();
example:
   SPRITE->Begin(D3DXSPRITE_OBJECTSPACE);
   SPRITE->Draw(texture,NULL,&D3DXVECTOR(10,10,10),&D3DXVECTOR     (10,10,10),OxFFFFFFFFF);
   SPRITE->End;

Another way to draw a bullet mark,use Device->DrawPrimitive() .Somebody give me some code Thanks very much!!!!!!!!


Answer this question

about ID3DXSPRITE->Draw()

  • Friedrich49886

    Thank you.How to get the article Where is the article

  • edmund1

    I'm not sure if you'll be able to do this with D3DXSPRITE_OBJECTSPACE.

    There was an article just for this Game Programming Gems 2. It also allows you to draw bullet markings (or decals) over arbitrary surfaces (e.g. curved)...

  • Behzad Karim

    Sorry I wasn't clear on this.
    Game Programming Gems 2 is a really important book with may articles in it (can't imagine a dev house without the whole series).
    Look it up at amazon.com. This second part is somewhat old by now (I think they're at GPG6 now), but it still has a great wealth of information...

  • about ID3DXSPRITE->Draw()