Newbie? Question, lights go throught models [SOLVED]

DragoN1982

27-02-2006 22:35:17

Hi!

first post in here :)

But, to the point. I'm trying to make a car gamel and came problem with lights.



Problems highlighted with red...

As you can see the omni light that is on top of the car comes throught the model and hits the exhaust and ground. I've tried all possible settings with light/texture/model and so on... But still the model does not make any shadows.

Could somebody help me with this.

I think the problem is in 3ds max rather than ogre programming...

ps. sorry for my english :roll:

IFASS

27-02-2006 23:18:49

That's quite simple.. configure your scene to use shadows and if i'm right you can select at the object properties if you want the model to cast shadows or not.

jacmoe

27-02-2006 23:29:41

That's probably a pure Ogre question, so help yourself in the main Ogre forum. :wink:

MovableObject::setCastShadows(bool) I think it is, but look it up in the API.

DragoN1982

27-02-2006 23:42:52

my scene uses shadows and the shadow casting is set on true...

in 3ds max the objects cast and receive shadows

here's few pictures more

This is what it looks like in ogre render window:

Two omni lights red and blue are on top of car, but still you can see that alloys are "effected" by lights, and that is very bothering

And this is what it looks like in 3ds max renderer:

jacmoe

27-02-2006 23:54:29

What's relevant is how it looks in the Ogre powered oFusion render window in Max.

DragoN1982

27-02-2006 23:56:26

That's what I thought... Looks same as in ogre render window light comes through.

Problem solved.

Somehow the shadow thing wasn't enabled on scene...
Back to programming the game..

Thanks to everyone for help 8)