How to set light on backfacing triangles?
- From: Jesper Knudsen <report@xxxxxxxx>
- Date: Wed, 25 Jul 2007 22:05:21 +0200
I disabled cull facing glDisable(GL_CULL_FACE) to prevent 'holes' in a
..3ds mesh. Now the 'hole' triangles are drawn, but they appear black.
Guess it's because normals are still pointing the wrong way.
How to draw backfacing triangles with correct lighting?
- Jesper
.
Relevant Pages
- Re: triangle count of a simple tesselation with holes
... the optimum number of triangles (in your case: simple polygons with simple holes) is: ... special case where I have a single outline (a quad) which contains a ... (comp.graphics.algorithms) - Re: data gridding on a 2-d mesh with voids
... the simple way to plot it is to use trisurf. ... since you have the triangles. ... thing is to use gridfit to fit the entire region. ... too will span the interior holes, ... (comp.soft-sys.matlab) - Re: creating shadow volumes
... > have a question about the patching of the holes. ... the the original faces (2 extra triangles for each edge) ... - The 'holes' that occur on the original vertexpositions are never actually ... as an edge which is in effect closed by 2 or more shadowvolume-triangles. ... (microsoft.public.win32.programmer.directx.graphics) - Re: Terrain Modelling and Light
... their triangles is much smaller by comparison. ... > I'm sure the Normals are correct. ... > for the mesh file, and positioning (Heading, Yaw, Pitch, Roll, LatLong, ... > instantiates an Aircraft object, wires up Event Handlers to handle the ... (microsoft.public.win32.programmer.directx.managed) - Re: API question: "save as" STL (with color) file format?
... triangles that get mapped out to an STL file? ... of correlating the normal and vertex information with SolidWorks normal ... not work is whether normals stay the same when exported to STL. ... Let's start by thinking about planar surfaces. ... (comp.cad.solidworks) |
|