Guest User

Camera

a guest
Nov 21st, 2011
563
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 1.0
  2. import Qt3D 1.0
  3.  
  4. Rectangle {
  5.     color: "black"
  6.     width: 400
  7.     height: 600
  8.  
  9.     Viewport {
  10.         anchors.fill: parent
  11.  
  12.         camera: Camera {
  13.                     id: viewCamera
  14.                     eye: Qt.vector3d(15,10,40)
  15.                     center: Qt.vector3d(-2,10,0)
  16.                 }
  17.  
  18.         Mesh { id: refrigirator; source: "refr.3ds" }
  19.         Mesh { id: ufo; source: "ufo.3ds" }
  20.         Mesh { id: bottom_door; source: "door.3ds" }
  21.  
  22.         Item3D { mesh: refrigirator }
  23.         Item3D { mesh: ufo;}
  24.         Item3D { mesh: bottom_door; }
  25.     }
  26. }
  27.  
RAW Paste Data