i've got around by pre calculating the colour of each wall.
Not ideal, if i wanted to have a lighting effect on the wall.
Incidentally when i used a Point light i got lots of shaded triangles
which looked odd, anyone know anything about that?
thanks for all your help.

Not sure whether I've exposed a bug there.

cheers Steve

On Aug 17, 11:39 pm, steanson <[email protected]> wrote:
> i added the specular = 10 and the specular_brightness =100 which
> didn't make any difference to the rhs and bottom walls
>
> cheers Steve
>
> On Aug 17, 8:43 pm, desgraci <[email protected]> wrote:
>
> > i forgot:
>
> > light:
> > var light:DirectionalLight3D = new DirectionalLight3D({color:0xAAFFAA,
> > ambient:0.2, diffuse:0.75, specular:0.1});
> >                 light.x = 10000;
> >                 light.z = -50000;
> >                 light.y = 50000;
> >                 scene.addChild(light);
>
> > materials:
> >                         pruebaMaterial=new ShadingColorMaterial(0xbbac99);
> >                         pruebaMaterial.specular=10;
> >                         pruebaMaterial
> >                         pruebaMaterial.specular_brightness=100;
>
> > action!!!:
> >             var floor2:Plane = new Plane();
> >             floor2.width = floor2.height = 25000;
> >             floor2.segmentsW = floor2.segmentsH = 48;
> >             floor2.y = -3000;
> >             floor2.material = pruebaMaterial;
> >             scene.addChild(floor2);

Reply via email to