Wrong shades using a Blender model in irrlicht...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mrAlmond
Posts: 15
Joined: Fri Nov 23, 2007 9:47 am

Wrong shades using a Blender model in irrlicht...

Post by mrAlmond »

Hi all,

I've made a simple 3d model using Blender.
I've exported it in 3ds and x format to use it in irrlicht...but unfortunately I keep on viewing strange clipping effects and wrong shades on it...

My test program uses a light that turns around the object using a flycircleanimator.
I've also enabled:

Code: Select all

setMaterialFlag(video::EMF_BACK_FACE_CULLING, false);
I'm not a blender guru and maybe I've done some mistakes with faces...but I can't find them!
Is there someone who could help me?
You can find the .blend model in attachment.
P.S : It seems that the wrong faces/vertex are the ones in the rounded borders of the mesh...
mrAlmond
Posts: 15
Joined: Fri Nov 23, 2007 9:47 am

Post by mrAlmond »

P.S : How can I post my 3d model? Must I use a file sharing site like rapidshare? :?
mrAlmond
Posts: 15
Joined: Fri Nov 23, 2007 9:47 am

Post by mrAlmond »

However after a small search on the net I've found that my problem can be a "bevel" issue...I'm still investigating on it...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, you have to use some external hosting service.
mrAlmond
Posts: 15
Joined: Fri Nov 23, 2007 9:47 am

Post by mrAlmond »

Ok...I think the main problem are face normals...
Here you can see that shading is very bad...showing normals you can see that they are pointing in wrong ways...I really don't know how to "normalize" them...HELP!!!

Image

Image
Cardinal4
Posts: 97
Joined: Sun Jun 11, 2006 1:20 am
Location: SG
Contact:

Post by Cardinal4 »

Select your mesh in edit mode, and press Ctrl + N to recalculate normals outside, or Shift + Ctrl + N to recalculate inside.

If that doesn't work, select the individual face and press W > Flip Normals.
Sketches of a rambling mind
Still a long way on learning Irrlicht...
mrAlmond
Posts: 15
Joined: Fri Nov 23, 2007 9:47 am

Post by mrAlmond »

Hi...thank you for for suggestion...I've tried to flip normals as you said and now my 3D object looks better...thank you again!
Post Reply