Irrlicht Gouraud/Smooth Shading

Member
Posts: 40
Joined: 2008.10
Post: #1
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.
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
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.
Quote this message in a reply
Member
Posts: 40
Joined: 2008.10
Post: #3
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
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #4
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.
Quote this message in a reply
Member
Posts: 40
Joined: 2008.10
Post: #5
Thank you! I had to specify to export normals in my modeller and then it worked.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Deferred Shading wquist 0 2,547 Jul 20, 2011 07:42 PM
Last Post: wquist
  GLUT Shading merrill541 1 2,929 Oct 15, 2008 02:53 PM
Last Post: arekkusu
  Gouraud vs Normal maps for dinamic terrains sohta 6 3,956 Oct 11, 2006 12:55 AM
Last Post: sohta
  Smooth model surfaces imikedaman 3 2,745 Jul 12, 2006 10:34 PM
Last Post: imikedaman
  2d smooth scroll Luzander 3 3,762 Jan 9, 2006 03:42 PM
Last Post: kelvin