Hey,
I'm having problems with getting point sprites to actually have different sizes. I've tried many things like having the size defined in the vertex deleraction, but nothing seems to be actually getting them to change size. They do scale with distance from the projection, however.
Another thing, is they always seem to go to the max possible size, which is... Annoying.
Any tips?
Thanks,
- TSB
Trouble with DirectX9 point sprites
Can you provide some of your failing code for example please?
Be careful when passing a float for your pointsize that you properly cast your float to the DWORD the API expects:
m_pDevice9->SetRenderState(D3DRS_POINTSIZE, *((DWORD*)&pointSize));
https://msdn.microsoft.com/en-us/library/windows/desktop/bb172599%28v=vs.85%29.aspx
Love DAOC? Tryout my DAOC clone: https://dl.dropboxusercontent.com/u/8974528/VON_Dist.zip
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement