Lighting in game

Hello,

How do you guys use Lights in your game? Because in my I use:
[java] DirectionalLight sun = new DirectionalLight();
sun.setColor(ColorRGBA.White);
sun.setDirection(new Vector3f(0f, 0f, 0f).normalizeLocal());[/java]
but it work perfect.

Here’s sample screenshoot. From 1 side my models looks well,

but from another it’s totaly black.

How to fix that? What should I do?

you are using a zero vector for your direction

Oh, so true :smiley: Thanks!

Also usually you use a ambient light for a minimum of illlumination.