Hi Everyone,
I need to create a 360° rotation tool to show all sides of a building. In fact; the building rotation is only a simulation because I only display HD pictures rendered with 3dsmax according to the mouse position.
However I have to display some interractive wired shapes over certain parts of the building so I tried export camera’s coordinates, rotation and fov from 3dsmax to recreate them into away 3d (and draw a simple cube with the same coordinates as the interractive shapes).
It seems there are problems because I can’t see the cube. I’m completly lost, is it a unit problem ? I use milimeters in my 3dsmax file but I’m not shure what kind of unit away3d uses. Should I use another way to do it ??
Here is my method to setup my camera :
protected function setupCamera(x:Number, y:Number, z:Number, rx:Number, ry:Number, rz:Number, zoom:Number, fov:Number) {
away3DView.view.camera.position = new Vector3D(x,y,z);
away3DView.view.camera.rotationX = rx;
away3DView.view.camera.rotationY = ry;
away3DView.view.camera.rotationZ = rz;
away3DView.view.camera.lens = new PerspectiveLens(fov);
}
I use : Away3D 4.1 and Starling (to display the static background) on Flex 4.6
Thx