Results 1 to 3 of 3

Thread: hi...

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    tempe ,az USA
    Posts
    5

    hi...

    i'm writing a program that displays an object as a collection of points...
    how do i implement hidden surface removal???
    thanks
    vivek

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: hi...

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    tempe ,az USA
    Posts
    5

    Re: hi...

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean