Hi,
Is there any way to show the hidden lines as greyed or a dashed one?
thanks
-velayudham
Hi,
Is there any way to show the hidden lines as greyed or a dashed one?
thanks
-velayudham
yes.
here’s how i’d do it. this uses a two-pass, so there’s probably a better way. but:
turn glPolygonMode to GL_LINE
set the culled faces to CW (clockwise; or whatever is your “back face”)
set color to gray
draw scene
set the culled faces to CCW (counter-clockwise; or whatever is your “front face”)
set color to normal
draw scene