Thanks Fabrice but that wasn't it.

The solution is that you now have to use view.scene.addLight() instead
of view.scene.addChild();    I found it after digging around in the
SVN logs from around build 2379.

My problem now is the light supposedly gets added, but any materials
that are supposed to use the light are flat -- phong materials and
shaded materials -- no specular, shininess, or anything.   Is anyone
else experiencing this with the latest build?    No matter what I try
I can't get lighting.

I attached a simple example for your reference.    This example was
taken from the tutorials over at Flash Magazine  (http://
www.flashmagazine.com/Tutorials/detail/away3d_basics_6_-_materials_and_light_part_1).
I simply changed it to use addLight() instead of addChild() ... (and I
changed the .as to extend MovieClip instead of Sprite in order to work
with the Flash IDE).

download:

http://www.envirant.com/temp/Basic09_ShadingColorMaterial.zip


Thanks!


On Apr 20, 4:24 pm, Fabrice3D <[email protected]> wrote:
> Lights are no longer extending  Object3D.
>
> Sent from an iPhone without Flash
>
> On Apr 20, 2010, at 21:03, joeyparcels <[email protected]> wrote:
>
>
>
>
>
> > Hello, I am having the same problem, but it is in Away3D, not Away
> > Lite.   It's really straight forward so I don't see what I can
> > possibly be doing wrong:
>
> > import away3d.lights.PointLight3D;
>
> > var light:PointLight3D;
> > var view:View3D;
>
> > view = new View3D();
> > addChild(view);
>
> > light = new PointLight3D();
>
> > view.scene.addChild(light);
>
> > Throws the same old error:  Implicit coercion of a value of type
> > away3d.lights:PointLight3D to an unrelated type
> > away3d.core.base:Object3D.   Any help greatly appreciated!
>
> > --
> > Subscription 
> > settings:http://groups.google.com/group/away3d-dev/subscribe?hl=en- Hide 
> > quoted text -
>
> - Show quoted text -

Reply via email to