Being actually deep into Prefab code update, I've also noticed some issues with Lights...
To give you some hints: we do all we can to release an update you can build on, and you can expect after that, that some minor changes/enhancements/fixes will be made. We need to make this move to push Away to another level later on this year. This also means that some features will be missing or could be broken for a very short while. 3.4 will be added to tags branche probably today, so in case 3.5 is not ready yet for your project you will be able to eventually switch back to this tag. Stay tuned Fabrice On Apr 21, 2010, at 6:08 PM, joeyparcels wrote: > > 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 -
