3d Fonts in Lesson 14 mess with Backface Culling?
I have just been going over Lession 14 (3D and Outline Fonts) and noticed something odd. If I have other objects in the scene with backface culling enabled, the faces that are culled are opposite of what is specified (front faces are culled when back is specified and vice versa.) Anyone know what the cause of this is?
I asked one of the Black Robes why the Deceiver wasn''t going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."
Elemental Engine: ryan_lurvey.tripod.com/engine.html
I asked one of the Black Robes why the Deceiver wasn't going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."Elemental Engine: ryan_lurvey.tripod.com/engine.html
September 23, 2002 01:48 PM
1) You(or the function) draw your polygon in clockwise direction. Which is suppose to be the back side.
2) You called
glCullFace(GL_FRONT);
instead of
glCullFace(GL_BACK);
Consult the redbook, in chapter about drawing. You''ll get more details about that.
2) You called
glCullFace(GL_FRONT);
instead of
glCullFace(GL_BACK);
Consult the redbook, in chapter about drawing. You''ll get more details about that.
Both one and two of your suggestions are fine in my program. The problem is that the backface culling works fine with objects in the program until I call the 3d font glPrint function, which then somehow causes the faces that are culled to be swaped.
I asked one of the Black Robes why the Deceiver wasn''t going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."
Elemental Engine: ryan_lurvey.tripod.com/engine.html
I asked one of the Black Robes why the Deceiver wasn''t going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."
Elemental Engine: ryan_lurvey.tripod.com/engine.html
I asked one of the Black Robes why the Deceiver wasn't going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."Elemental Engine: ryan_lurvey.tripod.com/engine.html
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement