예제 #1
0
 private void OnLoaded(object sender, EventArgs e)
 {
     // setup trackball for moving the model around
     _trackball = new Trackball();
     _trackball.Attach(this);
     _trackball.Slaves.Add(MyViewport3D);
     _trackball.Enabled = true;
 }
        public MainWindow()
        {
            InitializeComponent();

            //// Kinectが接続されているかどうかを確認する
            //if ( KinectSensor.KinectSensors.Count == 0 ) {
            //    throw new Exception( "Kinectを接続してください" );
            //}

            //// Kinectの動作を開始する
            //StartKinect( KinectSensor.KinectSensors[0] );

            _trackball = new Trackball();
            _trackball.Attach( this );
            _trackball.Slaves.Add( myViewport3D );
            _trackball.Enabled = true;
        }