   ID3DXSprite has billboarding support, how to use?
  The ID3DXSprite class has billboarding support, but I cannot find any decent information on how to use it for billboarding.THe dxsdk 9 summer update help file says a few things about what is needed, but basically i got no idea, what is happening so far, I have attempted it, i think ive got the sprite working in 3d space, but its not connected to the matrix that contains everything else eg, meshes etc, so i can move it back and fourth on the z axis, but if i move the camera the sprite stays in the same place.heres some source void draw(LPDIRECT3DTEXTURE9 texture){lp_Sprite->Begin(D3DXSPRITE_BILLBOARD);D3DXMATRIX mat;D3DXMatrixTransformation(&mat,NULL,NULL,&scale,&D3DXVECTOR3(100,100,100),NULL,NULL);lp_Sprite->SetWorldViewLH(&mat,&matView);lp_Sprite->SetTransform(&mat);lp_Sprite->Draw( texture, &rect,  &centre , &position, colour  );lp_Sprite->End();}"mat" is what im using to set the sprites matrixany info u need just let me know, thanksedit some other info on values of centre, rect etcdsetScale(1,1,1);dsetRotation(0,0,0);dsetCentre(0,0,0);dsetPosition(0,0,290);dsetFrame(0,0,230,230);dsetColour(255,255,255);[edited by - johnnyBravo on February 19, 2004 5:49:23 AM]