Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

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 Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,124
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •