[Papervision3D] IS this a bug with DAE or renderlayers...?
Pete Hobson
pete at 99lives.co.uk
Thu Apr 9 05:04:26 PDT 2009
I have a class which extends DisplayObject3d, and creates a simple plane
and loads a dae
In my parent class, im creating an instance of my test class, and
waiting for the dae to load and parse its animations. Then adding to
the PV scene, and creating a render layer.
This all works fine until i load the DAE. If i load the dae it seems
that after load - even adding the plane will not work correctly. It
will instead be rendered on the background layer.
If i add the plane in the constructor the plane is displayed in the
correct renderlayer. I have not been able to get the dae to render to
the correct layer at all. I.e its allways rendered to the background
layer...
heres the small test class which should replicate - using the latest
revision from SVN r903
public class PVTest extends DisplayObject3D
{
public var testplane:Plane;
public var dae:DAE;
public function PVTest()
{
super();
testplane = new Plane(new
ColorMaterial(0xffff),3000,3000);
dae = new DAE();
dae.load(Settings.dataPath+"testFiles/justPages_01_edit.dae");
//this.addChild(testplane); // works if added here - will
be in correct vpl
}
//called after the dae has loaded and finished parsing.
public function doadd():void{
this.addChild(testplane); //wont work - added to
background
//this.addChild(dae); //wont work -added to
background
}
}
More information about the Papervision3D
mailing list