public RT3DCamera(RTCamera c)
     : base(c)
 {
 }
 public RT3DCamera(RTCamera c, SceneDatabase sceneDB)
     : base(c)
 {
     computeCameraPositions(sceneDB);
 }
Example #3
0
 public RT3DCamera(RTCamera c)
     : base(c)
 {
 }
Example #4
0
        private void mTimer_Tick(object sender, EventArgs e)
        {
            if (null != mRTWindows.GetRTCore())
            {
                if (mRTWindows.NewSceneForGUI())
                {
                    RTCamera c = mRTWindows.GetRTCore().GetCamera();
                    mRTPreviewWindow.GetCamera().CameraLookAt   = c.AtPosition;
                    mRTPreviewWindow.GetCamera().CameraPosition = c.EyePosition;
                    mRTPreviewWindow.GetCamera().FoV            = MathHelper.ToRadians(c.FOV);
                    mRTPreviewWindow.GetCamera().NearClipping   = 0.5f;
                    mRTPreviewWindow.GetCamera().FarClipping    = 100.0f;

                    Program.GetModel().AddRTScene(c, mRTWindows.GetRTCore().GetSceneDatabase());
                    Program.GetModel().AddImageFrame(mRTWindows.GetRTCore());
                    Program.GetModel().AddRTKdTree(mRTWindows.GetRTCore().GetKdTreeRoot());

                    this.PerformLayout();
                    mRTWindows.GUIUpdatedScene();
                }
                else
                {
                    if (mRTWindows.GetRTCore().DisplayDebugPixels())
                    {
                        Program.GetModel().AddDebugPixel(mRTWindows.GetRTCore());
                    }
                    else
                    {
                        Program.GetModel().InitializePixelToShow();
                    }

                    if (mRTWindows.GetRTCore().DisplayDebugRays())
                    {
                        Program.GetModel().AddDebugRays(mRTWindows.GetRTCore());
                    }
                    else
                    {
                        Program.GetModel().InitializeRaysToShow();
                    }

                    if (mRTWindows.GetRTCore().ShowPixelInWorld())
                    {
                        Program.GetModel().AddPixelInWorld(mRTWindows.GetRTCore());
                    }
                    else
                    {
                        Program.GetModel().InitializePixelInWorld();
                    }

                    Program.GetModel().SetDrawDB(mRTWindows.GetRTCore().DrawDB());

                    mRTWindows.RTWindow_Paint(null, null);
                }
            }

            if ((null != mRTWindows.GetRTCore()) && (!mRTWindows.GetRTCore().RTThreadRunning()))
            {
                if (XNAUIDraw.Checked)
                {
                    mInteractiveWindow.DrawGraphics();
                    mRTPreviewWindow.DrawGraphics();
                }
            }
        }
Example #5
0
 public RT3DCamera(RTCamera c, SceneDatabase sceneDB)
     : base(c)
 {
     computeCameraPositions(sceneDB);
 }