PDA

View Full Version : Removing lines in mesh that should be hidden



smhall316
01-08-2014, 07:16 AM
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!

Dark Photon
01-08-2014, 05:17 PM
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.