View Full Version : hi...
07-25-2003, 10:55 AM
i'm writing a program that displays an object as a collection of points...
how do i implement hidden surface removal???
07-25-2003, 12:19 PM
maybe it will work if you first draw the object "invisible", with solid faces that are in the same colour as the background, and after that in a second pass the points, with GL_EQUAL as depth function.
or you draw a face and directly after the face, the points.
or you draw solid faces with a texture that is entirely black (or whatever colour the background has) with white spots in the corners, which you map to the vertices (via texture coordinates).
and surely there are lot more ways to do this, i guess.
07-28-2003, 04:12 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.