Question

I have a Collada (.dae) file that I found on Google's 3d Warehouse. Using Away3d, I'm able to load the file and display it on my view using the following code:

var object3d = Collada.parse(FooXML, { material:"white", x:0, y:0, z:0 });
view.scene.addChild(object3d);

The problem is that it's just floating out in space and no matter how I adjust the position via .x, .y, or .z, it never moves from its spot.

I'm using Flash cs4 and the latest stable release from Away3d.

Was it helpful?

Solution

are you re rendering the scene after translating the collada object?

how are you trying to translate the object? if you need to move it then you should set it in the init object eg: (FooXML, { material:"white", x:100, y:100, z:-70 }).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top