View Full Version : Wire objects
How can i draw a wire object(like cone) so i
can see only this part of the object that is in front of me(like the way you see solid cone)
11-26-2003, 04:22 AM
This requires some kind of hidden line removal and is not included in OpenGL so you have to find some library that can help you with it, OpenCascade for example has hidden line removal but this is overkill to use and I am sure there are smaller libraries out there that can help you out with.
I don't know if it would be tricky to implement on your own.
11-26-2003, 05:44 AM
This is simple to do:
The code must be very small and extra library is not a option.
auxColor3d(a, b, c);
and rotate the cone. You will see that the result is not alwayes what i whant.
11-28-2003, 06:32 PM
I am not sure about the aux call, but there is another approach. You can build an edge list, which stores for each edge, polygon a,b that share it. Then you test the normal* inversemodelview. Then if one of the polygons
faces the viewer by any amount, amount you determine, then draw the edge. That should work. Not sure how fast though.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.