XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

ID3DXSprite, rotations, and clipping planes problem

Last post 6/29/2009 2:59 AM by legalize. 1 replies.
  • 6/19/2009 5:34 AM

    ID3DXSprite, rotations, and clipping planes problem

    I'm using an ID3DXSprite and would like to rotate along the x axis (horizontal) and y axis (vertical).  The problem seems to be that that ID3DXSprite::Begin changes the clipping planes to 0 - 1, which causes most of the sprite to be cut off when it's rotated.  I'd *like* to allow the entire sprite to be rotated about the origin in any direction.

    Does anyone know how I can do this without getting rid of ID3DXSprite and pumping my own vertices into the video card instead?
  • 6/29/2009 2:59 AM In reply to

    Re: ID3DXSprite, rotations, and clipping planes problem

    Assuming March 2009 SDK...

    Take a look at ID3DXSprite::Begin with D3DXSPRITE_DONOTMODIFY_RENDERSTATE and D3DXSPRITE_OBJECTSPACE flags.  The documentationg for ID3DXSprite::Begin describes the state that is set on the device by the sprite object.
Page 1 of 1 (2 items) Previous Next