Lights don't work...

mrfalken

02-04-2007 09:49:09

Hi! :)
I'm using oFusion to import a model from 3DMax 8.0...I have to set to culling to anticlockwise in all materials to make it work, and everything runs fine, except for the lighting...

This is the scene without light


and this is the result, with the lights turned on


It seems to affect all the face it hits...don't know how to explain, but if you take a look at the images, the problem will be clear enough... ;)

...any clue ? :)

Eldritch

02-04-2007 11:31:57

I have a similar problem, but for shadows.. my shadows are displayed underneath the geometry instead of on top.. really weird.

Lioric

03-04-2007 02:50:04

How are the lights positionated?

Is the ambient light correct?

Are the objects scaled?

mrfalken

04-04-2007 09:27:19


How are the lights positionated?


There's just one light, in the middle of the scene...near the "swimming pool"...


Is the ambient light correct?


Well...don't know, but think so: I just have one light, and ambient light set...


Are the objects scaled?


...whoops...yes...by 0.01...is that a problem ? :|

What about normals ?
Check this thread...might be correlated problems ?

Lioric

04-04-2007 16:16:52

Scaled objects will produce very different light results, as the scale is applied to the matrix used to render the object (i.e. the object is not scaled but the matrix is, that is how Ogre or any interactive engine works), you need to reset the scale (convert the current scale to the unit scale), in the Hierarchy panel, click on reset scale (or do a reset xform if you prefer)