Hey Mark unfortunately, i think light objects don't like being put inside container objects - they may work sometimes but it's not a fully tested use of them
If you can try keeping your light objects as children of the scene and you should have no problems. If might be useful submitting a report to our issues list if you think you would prefer to use lights inside containers in future - you can submit error reports along with feature requests by using the following forms on google code: http://code.google.com/p/away3d/issues/list cheers! Rob On Fri, Oct 23, 2009 at 12:38 PM, M Crossley <[email protected]> wrote: > > I thought I understood container objects but I've run into another > snag. > > I have a DirectionalLight3D that I was setting the position of via > rectangular coordinates. This worked fine though I had to convert my > source pitch/yaw angles to x,y,z values. > > So I thought I would add another container, put the light inside this, > offset it z direction by an orbit size, and rotate the conatiner x & y > axes to move the light around. This would avoid my angular to > rectangular coversions. > > I hit two problems, first just offsetting the light in z direction by > 5000 breaks the light! I have to set the x & y values to 1 to fix it, > > Second the light doesn't appear to move when I rotate the container. > > One thing I am slightly unsure of is the creation order, and why the > camera has to be created before the view. Any good references on this? > > Anyway I tried adding the light conatiner to the scene, creating light > and adding it to container - no good. > I tried creatng the light at the same time as the camera and adding to > the view - no good. > > Any ideas what I have got wrong now? > > Regards > Mark -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
