View Full Version : a hidden line showed in a dashed way,please help!

10-19-2005, 04:59 AM
i want to draw a plane in front of line .the line looks like this: the exposed part is drawn in solid,and the hidden part is in dashed ,
is there a way to solve this problem ?please help me !thank you very much!

10-19-2005, 05:31 AM
Draw the plane first, then the line twice. The first time with glDepthFunc(GL_LESS) and no stipple, the second time with glDepthFunc(GL_GREATER) and some stipple pattern.

10-19-2005, 04:27 PM
ok,i get it.thank you very much! :)