Sign in to follow this  
_meds

drawing lines in 3D?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this