I am also having the same problem with the Away3D trunk version.  It
works OK in 3.4.2 though.  Is this a bug in 3.5 or is there a
different way we are supposed to use ShadingColorMaterial in 3.5?

What are the valid combinations of materials and lights in 3.5?  I
can't find this info in the docs or source code.

All my objects and primitives that look fine in 3.4.2 are either black
or invisible when compiled with the current trunk version, even after
fixing errors due to syntax changes.

Ralph

On Jun 15, 3:15 pm, savagelook <[email protected]> wrote:
> 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 theShadingColorMaterial
> 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 aShadingColorMaterialto 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 theShadingColorMaterial.
> > > > Any ideas?
>
>

Reply via email to