PDA

View Full Version : Wiremesh and solid model combined



04-05-2005, 06:01 AM
Dear All,

Wiremesh:
I need to have wiremesh altogether with solid model for better visual for edges. How to do it ?

Transparency:
How do I turn on the transparent feature ?
Should I turn on for both back and front face material properties ?

Thanks,
Nathan

Aeluned
04-05-2005, 06:43 AM
Render your solid model.
then render the same model using
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glDisable(GL_DEPTH_TEST);
glCullFace(GL_BACK);

if you keep z-testing on, you may or may not
experience some z-fighting.
in this case you can use
glPolygonOffset.