• Advertisement
Sign in to follow this  

drawing lines in 3D?

This topic is 2672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm adding lines to my 3D world like we see in 3D studio max. To draw lines I'm using a cylinder mesh and simply stretching/rotating it appropriately. That's all working fine but my problem is scale. Since it's 3D geometry rendering in perspective its size changes, from a distance it's small to invisible, up close it's huge.

I want to make it so the size of the line geometry stays the same. I tried toying around with orthographic projection but came up with nothing. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
I'm not familiar with 3D studio max. If you're talking about placing grid lines over the window that do not change with camera position, you can use D3DXLINE which draws lines with screen coordinates. It will appear to be an orthogrpahic grid over the view, whether the view is perspective or ortho.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement