Stephen Hopkins
unread,Mar 17, 2011, 10:17:40 PM3/17/11Sign 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
I have created a view3D like so
view = new View3D({x: w / 2, y: h / 2});
camera= view.camera;
camera.x = 0;
camera.y = 500;
camera.z = 0;
camera.lookAt(new Vector3D(0, 0, 0));
camera.update();
view.scene.addChild(new Cube({width: 50, height: 50, depth: 50}));
addChild(view);
i also have a render loop that just calls view.render()
Now the weird part, the cube only appears if I do not set the camera.z
value to 0
camera.z = 1, cube appears
//camera.z = 0, cube appears, z is -1000 if I trace it
I am utterly confused. All I want is to position the camera above the
cube, and the camera to look at it from a top down view.
I haven't worked in Away3D for quite a while, (my projects used
Number3D), is there any change that I don't know about?
Thanks