I want to draw a grid in my scene, and i want to draw the axis with thick line(make it can be easy found).
But i can not find any info about line weight in DirectX, i have look for three days, can anybody help me
I am use C# Express with DirectX SDK 2006 August.
thanks.

i looking for a way to draw a line with weight in 3D scene,can anybody help me?
asalcedo
thank you
David J. Roh
The Line class (in the Microsoft.DirectX.Direct3DX dll) has properties for setting line thickness, antialiasing, etc.
Hope that helps.
adrian tompa
The line is disappear, when i test the DrawTransform method.
I am using the DirectX SDK tutorial3 code.
I add some code to the Render method:
// code start
//device.RenderState.CullMode = Cull.None;
Vector3[] vst = new Vector3[] { new Vector3(0, 0, 0), new Vector3(0.5f, 0, 0), new Vector3(0.5f, 0.5f, 0), new Vector3(0, 0.5f, 0), new Vector3(0, 0, 0) };
line.Begin();
line.DrawTransform(vst, Matrix.RotationX(fAngle), Color.Red);
line.End();
// code end
If the fAngle is less than 3.14, the code work,
but fAngle is more then 3.14, I can see the line.
Can you talk with me about this
dragoncells
Why is the line setting the CullMode to None commented out It seems that that would be the solution to your problem, since the line disappears when the angle is greater than 180°.
But in case you already tried it with the line included, try setting the CullMode to None after the line.Begin(). I know that some Begin functions alter the render state (such as the Sprite.Begin function,) so perhaps the function is changing the CullMode on you.
Hope that helps.