PDA

View Full Version : Hidden line display



Velayudham
11-29-2000, 11:55 AM
Hi,

Is there any way to show the hidden lines as greyed or a dashed one?

thanks
-velayudham

phlake
11-29-2000, 02:14 PM
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