Results 1 to 6 of 6

Thread: Hidden Line Removal

  1. #1
    Member Contributor
    Join Date
    Apr 2000
    Posts
    62

    Hidden Line Removal

    Does OpenGL provide some support for Hidden Line Removal?
    Sean E. Dolan

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: Hidden Line Removal

    No.

    That's scene management... a Jedi uses OpenGL for rendering primitivies, never for managing the scene.

  3. #3
    Member Contributor
    Join Date
    Apr 2000
    Posts
    62

    Re: Hidden Line Removal

    Well horse hockey

    GL_CULL_FACE is close, but only works for a single primitive. Guess I'll have to work on some sort depth scheme, aye. Thanks for the response.

    Sean
    Sean E. Dolan

  4. #4

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: Hidden Line Removal

    I conceed that culling backfaces is vaguely similar, but it isn't.

    Culling faces like that is ONLY based on localised primitives when making assumptions about other primitives. It's designed to quickly cull, on a per poloygon level, polys that probably shouldn't won't be seen. Think about a cube... you can cull the back faces based on their normal and never see them, but it ISN"T what you want if the cube is transparent, and even though the normals are pointing AWAY from the user, they're still seen.

    My point is... culling polys like this is local management; clipping hidden lines is more to do with scene management.

    Why do I say this... well. In order to determine if a line can't be seen, you need to know what it's front of it. *IMMEDIATELY* you're dealing with the scene. You need to know more than just the localised line, and you need to know how the data is constructed. This is entirely beyond OpenGL's scope, beause ALL it cares about is one primitive at a time.

    so, yes, in a way you ARE right. close, but no banana.

    cheers
    John

  6. #6
    Member Contributor
    Join Date
    Apr 2000
    Posts
    62

    Re: Hidden Line Removal

    Good stuff Serge. Silhouette, hidden in grey, all the goodies. Thanks for the links.

    john, First time I used GL_CULL_FACE was with the infamous cube. I thought I had the hidden line prob whipped. Looked great. Then I added a sphere to the scene, rotated the cube in front of it and found out otherwise
    Sean E. Dolan

Similar Threads

  1. hidden line removal
    By jowins in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-17-2004, 04:24 AM
  2. Hidden Line removal
    By jowins in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-21-2004, 11:07 PM
  3. stitching (hidden line removal)
    By fabiocibo in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-07-2002, 09:53 AM
  4. hidden line removal (by lines, not polygon)
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-25-2000, 09:52 AM
  5. Hidden Line Removal
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-18-2000, 01:25 AM

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