[Papervision3D] ViewportLayer + DAE
karim beyrouti
karim at kurst.co.uk
Tue May 5 05:36:03 PDT 2009
Hello groovy list....
I am a having some issues with viewport layers not adding/showing my DAE
file. My DAE works fine when i add it to the scene, but not with a viewport
layer.
Here is the code i am using:
step 1 - create the layer:
// NOTE - I have 2 layers - this is the code for one of them...
vp2Objects = new ViewportLayer(viewport, null);
vp2Objects.layerIndex = 3;
vp2Objects.sortMode = ViewportLayerSortMode.Z_SORT;
viewport.containerSprite.addLayer(vp2Objects);
step 2 - add the object
var turret : DisplayObject3D = gun.clone(); // Note : gun is a DAE
turret.scaleX = turret.scaleY = turret.scaleZ = 8;
turret.x = 20;
turret.y = 20;
turret.z = 20;
vp2Objects.addDisplayObject3D(turret, true )
I am waiting for the DAE loadcomplete event to fire before i build my
scene....i am, a lillte confused.
Let me know if you have any idea why this is happening..
Kind regards
- karim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090505/b05d6169/attachment.html>
More information about the Papervision3D
mailing list