Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

ID3DXLine problem

Started by juliancary May 27, 2008 at 4:34 AM 2 replies 1.3k views
Original Post
juliancary
juliancary
i draw some line with ID3DXLine::DrawTransform(), found if the camera goes near the line, the line will not clip by system ! i have setup zn and zf, D3DXMatrixPerspectiveFovLH((D3DXMATRIX*)&mViewProj, fov_y, aspect, zn, zf); then, used mViewProj and mWorldView to DrawTransform(). the line is allright, but if camera move, clip is wrong... somebody can tell me how to fix this problem , thanks a lot
Molle85
Molle85
ID3DXLine is bugged, i've had this problem myself, there is no known solution yet.
juliancary
juliancary
no answer?...
Do i have to use DrawPrimitive() to draw the line...and add some billboard effect???

i thought there is a way to solve this problem...somebody know that?
sqwang
sqwang
I got the same situation. Anyone can help. It has been 3 years.
Thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.