It seems that you need to use "material.lights = [yourLight]" in order
to get the effect you want. It seems that if you don't specify the
lights to a material it will automatically be displayed with a
"standard light".

Put only one light in your scene and set this light in your material,
then set the ambient color of the material to 0. You should get a very
dark scene.

On May 19, 7:41 pm, jacek <[email protected]> wrote:
> Hi,
>
> Intro:
>
> There is an entirely new lighting approach in Broomstick and my
> understanding is that currently we can set directional and point
> lights by attaching them to materials while ambientlightcan be set
> via ambientColor and ambient properties of material. While this object
> model seems to me quite unnatural (it multiplies unnecessary pointers
> tolightobject which are "global" to the scene) I remember a post
> where one of away3d developers informed that we can expect global
> ambientlightclass coming soon.
>
> Problem:
>
> Currently I have a major problem in controlling any aspect of ambient
> and diffuse lighting. Setting ambientColor and ambient properties to
> any values does not change ambient lighting level - textures are
> displayed like lit with 100% whitelight- dimming does not work (at
> least I could not find a way to do it). away3d with some materials
> provided really fine tuning of ambientlightgiving a chance to create
> very nice effects.
>
> Another problem is that I have no idea how to control properly diffuse
> part of directional/pointlight- it seems that for any value of
> diffuse property oflightdiffuse element is constant. And last but
> not least interaction between directional/point lights and ambient
> lights does not work as well i.e. it is impossible to set ambient
> ligth level for the scene and use additional directional/point lights
> tolightit correctly.
>
> May I ask for some information how to use correctly lights in
> broomstick to go for a bit more complex effects than those provided in
> examples (anyway I have not seen ambientlightexample)
>
> Jacek

Reply via email to