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?
drawing lines in 3D?
DrawPrimitive?
Or if D3D10/11, it appears you need to first set IASetPrimitiveTopology during the input assembler stage.
If XNA: linky.
Or if D3D10/11, it appears you need to first set IASetPrimitiveTopology during the input assembler stage.
If XNA: linky.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement