barrel
unread,Nov 10, 2009, 12:25:37 PM11/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to away3d.dev
Hi all,
For my master thesis, I was asked to work with X3D and following the
ajax3d guides, I was up-and-running pretty fast, the problem occurs
when I want to interact with the scene. Browser crashes or unexpected
behaviour, but nothing I intend to do.
So... I started looking around and now try to dynamically load
buildings in an away3d scene.
These buildings are created in Google Sketchup, I have them exported
to kmz, dae and 3ds formats, any of them is fine if I can import them.
Here is what I try to do:
scene = new Scene3D();
camera = new HoverCamera3D({zoom:3, focus:200, distance:100});
view = new View3D({scene:scene,camera:camera,x:450,y:450});
var holderUI:UIComponent = new UIComponent();
this.addChild (holderUI);
holderUI.addChild (view);
building = Collada.load("models/building1.dae");
view.scene.addChild(building);
this.scene.addChild(building);
view.render ();
This shows a white circle, but no building... Can anyone help me to
indicate which steps I am missing?
Thanks in advance!
Barry