Definately no alpha until camera goes negative.

Bg example no index swapping
http://www.shrewballooba.co.uk/blog/wp-content/uploads/2011/02/away3DLiteExamples2.swf


Yeah that example I swap the index on each layer, but even if thats commeted
out still no alpha until you rotate
Canvas ? how?

if (camera.z > 0)
{
    view.setChildIndex(alphaLayer, 3);
view.setChildIndex(backgroundLayer, 2);
}
else
{
    view.setChildIndex(alphaLayer, 2);
view.setChildIndex(backgroundLayer, 3);
}


Also just noticed if I dont have bothsides then only the bakgroundlayer gets
put in _graphicsDatas[_material_graphicsData]

//basic code
backgroundplane = new Plane(new BitmapMaterial(Cast.bitmap(imgAsset)));
backgroundplane.rotationX = 90;
backgroundplane.z = 40;
backgroundplane.bothsides = true;
scene.addChild(backgroundplane);

backgroundLayer = new Sprite();
backgroundLayer.name = "bg"
view.addChild(backgroundLayer);

backgroundplane.layer = backgroundLayer;
//backgroundLayer.filters = [new BlurFilter(8,8)]


var alphaplane:Plane = new Plane(new WireColorMaterial());
alphaplane.z =-1
alphaplane.rotationX = 90;
alphaplane.bothsides = true;
scene.addChild(alphaplane);

alphaLayer = new Sprite();
alphaLayer.name = "alpha"
view.addChild(alphaLayer);

alphaplane.layer = alphaLayer;
alphaLayer.alpha = 0.8;

Reply via email to