View Full Version : hidden line removal
01-21-2004, 10:47 PM
I am drawing 3D graph which shows too many number of lines. I want to remove the hidden lines. Can any one tell me how to do that.
01-21-2004, 11:52 PM
It is a bit messy to do true hidden line removal with OpenGL, but a quick solution could be do render the polygons as filled polygons first and then render them again as outlines with a little zoffset.
This only works as long as it doesn't overlap any other objects of course.
And it does not work with concave polygons either by the way.
01-22-2004, 12:23 AM
Thanks for the reply.
Can I get some sample which does the same?
So that i cud have got an idea of what way its doing and can try implementing with additions what ever.
03-02-2004, 08:33 PM
Check out the OpenGL Programming Guide (Red Book). There is an example of this process with source.
If you have the latest (fourth edition) then it is Chapter 14, page 604-605: Hidden Line Removal with Polygon Offset.
If you don't have the book, you may find the chapter online with a brief Internet search.
The trick is experimenting with the offset values.
06-16-2004, 08:20 PM
Can you tell me where I can find the code for the true hidden line removal with OpenGL?
06-17-2004, 03:24 AM
Check out the FAQ (http://opengl.org/resources/faq/technical/miscellaneous.htm#misc0010)
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.