Archived

This topic is now archived and is closed to further replies.

GL_FILL + GL_LINE = ?

This topic is 5677 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

As the title says, I want to have a result pretty much like GL_FILL and GL_LINE combined. Wireframe but with faces too. I want the same result as if I took a texture with a border. Although obviously not the same, I want the clean look. Any suggestions? note, rendering them sepertly but with blend makes it look really nice, although I don''t always want to see though the graph... /G // inevitable quote "There are only 10 types of people in the world - those who understand binary, and those who don''t"

Share this post


Link to post
Share on other sites
Use polygon offset

Basically draw the wireframe then use offset to artficially change the z value and draw the faces

For an example:

http://www.opengl.org/developers/code/glut_examples/mesademos/mesademos.html

Share this post


Link to post
Share on other sites
aah, so you draw the wireframe a little more towards the eye... Is this really the only way of doing this? It has flaws too though, you can see bits of wires that normally would have been hidden...

I can''t help feeling there must be a way of simulating drawing faces but actually drawing wireframe... So it hides the wireframe parts I don''t want...

Well, thanks for the link! I will try it right now...

/G



// inevitable quote
"There are only 10 types of people in the world - those who understand binary, and those who don''t"

Share this post


Link to post
Share on other sites
Its easy to remove hidden faces with open gl
just turn GL_CULL_FACE or something like that on

Share this post


Link to post
Share on other sites
3dmax + other modelling programs use glPolygonOffset

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites
3dmax + other modelling programs use glPolygonOffset, with tweaking u shouldnt have anyproblems

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites
I was just thinking about 3D studio max and how it did it...

quote:
Its easy to remove hidden faces with open gl
just turn GL_CULL_FACE or something like that on

well, it hides only the "bottom" of the graph. Which is a good start... But there are still times when you see "up"-faced faces that should be hid behind other faces. But I have a feeling a said something that applied that is what I actually wanted... So never mind...



// inevitable quote
"There are only 10 types of people in the world - those who understand binary, and those who don''t"

Share this post


Link to post
Share on other sites