Why is the texture of my DAE file not loading?

If you wondering why the texture of your DAE file is not shown in Papervision nameconflicts can be the reason:

Go into you DAE file, look for the ‘symbol’  attribute in the  <instance_material … > Tag and compare the value with the one you assigned to the name parameter in your addMaterial() statement.

‘symbol’ attribute value in dae file == ‘name’ parameter in addMaterial() method


Why i dont see my RigidBody object …

I was wondering why i dont see my RigidBody object in my jiglib physicalized Papervision3D scene.

var visualObject:DAE = new DAE(“elipsoide.dae”);
var visualObjectMesh:P3DMesh = new P3DMesh(visualObject);
var physicalObject:RigidBody = new JSphere(visualObjectMesh, 10);

var physics:Papervision3DPhysics = new Papervision3DPhysics(scene, 10);
physics.addBody(physicalObject);

Who has the answer?

I forgot to add the visualObject to the scene:

var visualObject:DAE = new DAE(“elipsoide.dae”);
scene.addChild(visualObject);
var visualObjectMesh:P3DMesh = new P3DMesh(visualObject);
var physicalObject:RigidBody = new JSphere(visualObjectMesh, 10);

var physics:Papervision3DPhysics = new Papervision3DPhysics(scene, 10);
physics.addBody(physicalObject);

So always remember – the visualObject is the “visual” representation of the physicalObject – while the physicalObject is the “physical” representation of the visualObject. Sounds logic but i had to make this clear to me….

So the answer to my question must be:
You can’t see a RigidBody object!


How to embed a COLLADA (.dae) file into swf?

Just simply as you would embed other sources in Flash:

[Embed (source=”assets/yourColladaFile.dae”,mimeType=”application/octet-stream”)]
private var Model:Class;

var myDAE:DAE = new DAE();
myDAE.load(new Model());

thats it!