예제 #1
0
        private void RTViewer_Load(object sender, EventArgs e)
        {
            mInteractiveWindow = new DrawAndMouseHandler();
            mInteractiveWindow.Initialize(mInteractiveViewArea);
            mInteractiveWindow.GetCamera().CameraLookAt   = Vector3.Zero;
            mInteractiveWindow.GetCamera().CameraPosition = new Vector3(-30, 30, -10);
            mInteractiveWindow.GetCamera().FoV            = (float)Math.PI / 4f;
            mInteractiveWindow.GetCamera().NearClipping   = 0.5f;
            mInteractiveWindow.GetCamera().FarClipping    = 150.0f;

            mRTPreviewWindow = new DrawOnlyHandler();
            mRTPreviewWindow.Initialize(mRTPreviewArea);
            mRTPreviewWindow.GetCamera().CameraLookAt   = Vector3.Zero;
            mRTPreviewWindow.GetCamera().CameraPosition = new Vector3(0, 5, 10);
            mRTPreviewWindow.GetCamera().FoV            = (float)Math.PI / 4f;
            mRTPreviewWindow.GetCamera().NearClipping   = 0.5f;
            mRTPreviewWindow.GetCamera().FarClipping    = 100.0f;

            UWB_XNAGraphicsDevice.m_TheAPI.Initialize();
            mRTWindows.SetMeshLoader(UWB_XNAGraphicsDevice.m_TheAPI.mResources);

            mTimer.Start();
            mRTWindows.Show();
        }
        private void RTViewer_Load(object sender, EventArgs e)
        {
            mInteractiveWindow = new DrawAndMouseHandler();
            mInteractiveWindow.Initialize(mInteractiveViewArea);
            mInteractiveWindow.GetCamera().CameraLookAt = Vector3.Zero;
            mInteractiveWindow.GetCamera().CameraPosition = new Vector3(-30, 30, -10);
            mInteractiveWindow.GetCamera().FoV = (float)Math.PI / 4f;
            mInteractiveWindow.GetCamera().NearClipping = 0.5f;
            mInteractiveWindow.GetCamera().FarClipping = 150.0f;

            mRTPreviewWindow = new DrawOnlyHandler();
            mRTPreviewWindow.Initialize(mRTPreviewArea);
            mRTPreviewWindow.GetCamera().CameraLookAt = Vector3.Zero;
            mRTPreviewWindow.GetCamera().CameraPosition = new Vector3(0, 5, 10);
            mRTPreviewWindow.GetCamera().FoV = (float)Math.PI / 4f;
            mRTPreviewWindow.GetCamera().NearClipping = 0.5f;
            mRTPreviewWindow.GetCamera().FarClipping = 100.0f;

            UWB_XNAGraphicsDevice.m_TheAPI.Initialize();
            mRTWindows.SetMeshLoader(UWB_XNAGraphicsDevice.m_TheAPI.mResources);

            mTimer.Start();
            mRTWindows.Show();
        }