Ah yes, I see your problem.Well, the directional light is doing what it's
supposed to be doing, as it creates a global lighting direction. So doesn't
matter where in your scene, all light rays are parallel (and not coming from
one specific point). So if you're using lookAt for the earth, the lighting
will not make sense for the other planet. Directional light is typically
used for daylight on a different scale, like normal outdoor scenes, where
the sun is so far away, the change in light direction is practically 0
across the scene.

You could try to point the light at each object, and update each shaded
material manually using the material.updateMaterial method before rendering.
We'll soon have some more things to work with point lights though :)

Hope that helps,
David

On Wed, Sep 9, 2009 at 11:57 AM, claudiul25 <claudiu...@yahoo.com> wrote:

>
>
> i posted the fla, it's light.fla




-- 
http://www.derschmale.com

Reply via email to