Now shadows on a model

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
Donner
Posts: 87
Joined: Fri May 18, 2007 11:27 am

Now shadows on a model

Post by Donner »

hey,

i have the following problem:

if I create a model in cinema4D, export it as OBJ and load it to IrrEdit, there are problems with the light / shadows.

Look at the Screenshot: the model on cinema4d (right) is lighted correctly, you on some places its darker than on others. But in IrrEdit (left) the model has the same color everywhere, so you cant see edges or a structure in the model.

Screenshot: http://img-up.net/img/irrlicht_pEJcN5.png

Why is it like this?

Lighting is enabled, I don't know, what I should do that it works correctly...


Thanks
D.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Presumably you do have a light in your scene... though if you didn't and you had enabled lighting you'd just get a black mesh instead...

So maybe the normals haven't been exported properly... In that case there wouldn't be anything you could do to fix it in irrEdit but in irrlicht you could recalculate the normals using the mesh manipulator.
Image Image Image
Post Reply