Camera propterties

Software: Away3D 4.x

andreahmed, Member
Posted: 27 September 2013 09:35 AM   Total Posts: 62

Hi All
I setup my camera like that. But when I remove the hover controller, I can’t see any polygon. I need to set the pan and tilt angle of the camera.

m_scene = new Scene3D();
   
m_camera = new Camera3D();
   
//m_camera.lens.far = 50000;
    
   
m_view = new View3D();
   
   
   
m_view.scene m_scene;
   
m_view.camera m_camera;
   
m_view.width vpWidth;
   
m_view.height vpHeight;
   
m_view.antiAlias 3;
   
   
setCamera(-9.959.8, -23684);
   
   
   
// Setup HoverController
   
hoverController = new HoverController(m_cameranull15020200);
   
enabled true;
public function 
setCamera(camX:NumbercamY:NumbercamZ:NumbercamFOV:Number) : void
  {
   m_view
.camera.camZ;
   
m_view.camera.camY;
   
m_view.camera.camX;
   (
m_view.camera.lens as PerspectiveLens).fieldOfView camFOV;
   
  
// updateView();
  
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X