Direct3D, Line.drawtransform - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Direct3D, Line.drawtransform

TheonTheon Posts: 2Member
Dear all,

Sorry for the basic question, about Line drawing with drawtransform. I have tried a lot of thinks but nothings works, so my vectors will not be drawn to the screen. Is there any working samplecode with 'drawtransform' or what are going wrong ?



I use: DirectX9.0c, visual NET 2002

device.SetTransform(TransformType.Projection,
Matrix.PerspectiveFovLH(0.75f,1.0f,0.0f,100.0f));
device.SetTransform(TransformType.World,
Matrix.RotationY(0.02f));
device.SetTransform(TransformType.View,
Matrix.LookAtRH(new Vector3(0f,3f,-5f),new Vector3(0f,0f,0f),new Vector3(0f,1f,0f)));
mLine.Begin();
mLine.Draw(mvec2,Color.Blue); //WORKS
mLine.DrawTransform(new Vector3[] { new Vector3(0,0,0), new Vector3(-1f,-100f, 0), new Vector3(100f,100f, 0), new Vector3(0,0,100f), new Vector3(0,0,-100f)}, Matrix.Multiply(device.Transform.World, device.Transform.Projection), Color.Blue); // NOT WORKS
mLine.End();

Theon
Sign In or Register to comment.