I'm using the same directional light for all the materials listed in
the demo.  That's what is so confusing.  All the other shaded
materials are acting as I would expect, but the ShadingColorMaterial
shows nothing.

On Jun 15, 2:20 pm, Ralph Brooker <[email protected]> wrote:
> Are you using the same directional light source for your
> PhongColorMaterial?
>
> I believe that in 3.5 the directional light's direction property
> represents the direction the light is going towards, which is the opposite
> of the position property in the old Away3D, which represented the
> direction the light was coming from.  So maybe your light is behind the
> sphere?
>
> I would also suggest adding a Trident to your scene - they are great for
> debugging directions.
>
> Ralph
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of savagelook
> Sent: Tuesday, June 15, 2010 2:13 PM
> To: Away3D.dev
> Subject: [away3d] Re: ShadingColorMaterial, no color?
>
> pretty please
>
> On Jun 14, 12:53 pm, savagelook <[email protected]> wrote:
> > any ideas?
>
> > On Jun 13, 11:15 pm, savagelook <[email protected]> wrote:
>
> > >http://savagelook.com/demos/materials/sandbox.html
>
> > > I'm using away3d 3.5 and you can view source with a right click.  I
> > > was creating a little app to learn about all the materials away3d has
> > > to offer and get a sense of how they perform, and I hit a snag.  When
> > > I apply a ShadingColorMaterial to my sphere, I get nothing but black.
> > > I have a directional light pointing directly at it (0,0,1), and it can
> > > be seen when you apply any of the other materials that are affected by
> > > light that I have gotten to so far, but not the ShadingColorMaterial.
> > > Any ideas?

Reply via email to