Irrlicht Gouraud/Smooth Shading
Hello everyone,
I have been using the Irrlicht game engine to render models and I have had trouble making the shading as smooth as I want it to be. Basically what I want is a command equivalent to OpenGL's, glShadeModel(GL_SMOOTH), but obviously in Irrlicht. As of now I have been using sceneNode->setMaterialFlag(EMF_GOURAUD_SHADING, true), but that has yielded unsatisfactory results (the smooth shading is barely noticeable compared to regular shading). Any help would be appreciated.
I have been using the Irrlicht game engine to render models and I have had trouble making the shading as smooth as I want it to be. Basically what I want is a command equivalent to OpenGL's, glShadeModel(GL_SMOOTH), but obviously in Irrlicht. As of now I have been using sceneNode->setMaterialFlag(EMF_GOURAUD_SHADING, true), but that has yielded unsatisfactory results (the smooth shading is barely noticeable compared to regular shading). Any help would be appreciated.
What is the "regular shading" then? Gouraud shading is about as simple as it gets without being flat shading, it just interpolates between vertex colors.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
This image basically shows what the regular shading looks like in Irrlicht compared to how I want the shading to be.
http://static.howstuffworks.com/gif/ques...hading.gif
http://static.howstuffworks.com/gif/ques...hading.gif
So the "regular shading" is just flat shading? Are you sure your model's normals are correct? Gouraud shading would look exactly like flat shading if the normals were all the same for each face.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Thank you! I had to specify to export normals in my modeller and then it worked.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Deferred Shading | wquist | 0 | 2,178 |
Jul 20, 2011 07:42 PM Last Post: wquist |
|
| GLUT Shading | merrill541 | 1 | 2,428 |
Oct 15, 2008 02:53 PM Last Post: arekkusu |
|
| Gouraud vs Normal maps for dinamic terrains | sohta | 6 | 3,433 |
Oct 11, 2006 12:55 AM Last Post: sohta |
|
| Smooth model surfaces | imikedaman | 3 | 2,480 |
Jul 12, 2006 10:34 PM Last Post: imikedaman |
|
| 2d smooth scroll | Luzander | 3 | 3,308 |
Jan 9, 2006 03:42 PM Last Post: kelvin |
|

