I don't know if this hack will work or just create more weird stuff... Instead of using back and/or bothsides=true, duplicate the object, and say .invertFaces(); and/or .scaleX=-1;
Worth a try if you have a minute. Not responsible for any freaky stuff that might happen :) -Pete On Wed, Feb 25, 2009 at 8:50 PM, Ralph B <[email protected]> wrote: > > Guys - first, thanks for cranking on Away3D - it is getting better and > better! > > However I have observed that when you set bothsides = true for a Plane > primitive, Away3D does not correctly render the shading on the back > side when using the DirectionalLight3D and the materials > PhongColorMaterial, ShadingColorMaterial, PhongBitMapMaterial, or > WhiteShadingBitMapMaterial. > > To be more precise the ambient property of the light has an effect, > but the diffuse and specular properties do not. > > Similarly, if you show a Cylinder primitive with openEnded = true and > bothsides=true, you can see into the cylinder, but the wrong side of > the inner surface is lit by the diffuse property of the light. > > Has anyone else noticed this, or am I doing something wrong here? > (Entirely possible!) > > I am using Away3D for interactive technical illustrations and am > creating my own simple primitives based on Cylinder etc. but need the > inside surfaces to be properly lit (shadows aren't needed - just > shading is fine). > > Thanks! > Ralph -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
