View Full Version : a hidden line showed in a dashed way,please help!
10-19-2005, 05: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, 06: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, 05:27 PM
ok,i get it.thank you very much! :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.