ID3DXLine Crashes my computer

Started by
4 comments, last by NeKe 20 years, 8 months ago
Full Memory dump evil blue screen of death!! When I attempt to use the ID3DXLine->DrawTransform()my computer crashes HARD! I have a GeForce3 and I''m running XP?? Has this happened to anyone else? _Neil
Advertisement
What exactly do your calls look like? What''s set in the line (AA, GLLines, etc)? Since it''s a bluescreen it''s almost certainly a driver issue--how current are your drivers?

I like pie.
[sub]My spoon is too big.[/sub]
D3DXVECTOR3 Y_Line[2];

Y_Line[0].x = Y_Line[0].y = Y_Line[0].z = 0.0f;
Y_Line[1].x = Y_Line[1].z = 0.0f;
Y_Line[1].y = 20.0f;

// Set world transformation
D3DXMATRIX matWorld;
D3DXMatrixTranslation( &matWorld, 0.0f, 0.0f, 0.0f );

m_Line->DrawTransform(Y_Line, 2, &matWorld, D3DCOLOR_XRGB(255,255,255));

That''s all I did besides initialize the m_Line object.

All my drivers are up-to-date.

_Neil
Why are you using a 3D vector to represent a line?
//------------------------------------------------------------------------------------------------------The great logician Bertrand Russell once claimed that he could prove anything if given that 1+1=1. So one day, some fool asked him, "Ok. Prove that you're the Pope." He thought for a while and proclaimed, "I am one. The Pope is one. Therefore, the Pope and I are one."
"Why are you using a 3D vector to represent a line?"

I''m using two 3D vertices because that''s what the function "calls" for...
HRESULT DrawTransform(
CONST D3DXVECTOR3* pVertexList,
DWORD dwVertexListCount,
CONST D3DXMATRIX* pTransform,
D3DCOLOR Color
);

Did you have a suggestion?

_Neil
DrawTransform takes 3d points. However, the transform matrix should be world * view * proj, not just the world. That call is for putting 3d lines on screen.

For 2d lines, just use the Draw call.

As for the crash, that''s interesting. Things seem fine there.

I like pie.
[sub]My spoon is too big.[/sub]

This topic is closed to new replies.

Advertisement