Problem setting AmbientLight in MOGRE

RichTufty

16-02-2007 17:45:50

Hi, trying to set Ambient Light in ogre doing this:


sceneManager.AmbientLight = ColourValue.Red;


I keep setting the ColourValue to all sorts of values and it doesn't update the overall lighting of the scene. Am I using this property correctly?

Many thanks,
Tufty

Bekas

20-02-2007 13:38:07

In the SkeletalAnimation demo, if I change this line from Skeletal.cs
sceneMgr.AmbientLight = new ColourValue(0.5f, 0.5f, 0.5f);
to
sceneMgr.AmbientLight = ColourValue.Red;
it works fine.
Try it and let me know what happens.

RichTufty

02-03-2007 13:36:07

Sorry - School boy error :oops: :

In the material script the mesh had all it's materials set to Lighting Off, which was stopping me from setting the ambient light!

Tufty