Results 1 to 2 of 2

Thread: Removing lines in mesh that should be hidden

  1. #1
    Newbie Newbie
    Join Date
    Jan 2014
    Posts
    1

    Removing lines in mesh that should be hidden

    I have been teaching myself basic modeling using the online Redbook and other tutorials I have found online. I have constructed a basic pyramid and implemented culling to correctly hide faces that should not be visible to the camera. My next step was to draw edges to essentially create a mesh on the object faces. I also got that working. The issue I am struggling with is hiding those edge lines that should not be visible to the camera. I have searched for a solution online for a couple of days now, but I am not having much success. Is there a way to accomplish this line hiding? I am hoping someone can point me in the right direction or provide some advise on how to resolve this.

    Thanks in advance!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,649
    So you don't want to draw lines for back-facing faces?

    How about: draw the obj as triangles, enable cullface, and set polygon mode to FILL.

Similar Threads

  1. Removing hidden edges
    By devdept in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-03-2017, 03:52 AM
  2. Hidden Lines (and Visible Selection)
    By robertm in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-01-2004, 06:38 AM
  3. Hidden lines
    By in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 08-12-2003, 01:09 AM
  4. hidden line removal (by lines, not polygon)
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-30-2000, 08:52 AM
  5. Hidden lines removal
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-22-2000, 03:04 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