AntiAliasing triangle
I draw a simple triangle using 3 Vertex as follow :
//Set Vertex
...
...
//Set filling mode/antialiasing
m_pd3dDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
m_pd3dDevice->SetRenderState(D3DRS_ANTIALIASEDLINEENABLE, TRUE);
//Draw image
m_pd3dDevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);
My problem is that the triangle border look "jagged". How to draw triangle face with Anti-Aliasing?
Thanks,
Joe Blow.
ANTIALIASEDLINEENABLE only applies to lines. You can't antialias individual triangles. What you need to do is set up your device for multisampling. The docs should be pretty clear on this, but keep in mind that older cards won't support it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement