示例#1
0
        public ModelViewerScene()
        {
            UpdateState = UpdateStateInit;
            DrawState = DrawStateInit;

            Name = "ModelViewer";

            cameraUpdater = new ViewerCameraUpdater(Camera, InputAccessor.GetController(ControllerLabel.Main))
            {
                InitRotX = -MathUtil.PiOver4,
                InitRotY = MathUtil.PiOver4,
                InitEyeZ = 30.0f,
                //InitPan = Vector3.Up * 6.0f,
                MaxEyeZ = 200.0f,
                MinEyeZ = 1.0f,
                EyeZInterval = 0.05f,
                PanInterval = 0.2f,
                EnableCameraKey = false,
                EnablePan = true,
            };

            debugMenu = new DebugMenu("ModelViewerMenu");
            debugMenuUpdater = new DebugMenuUpdater(debugMenu, BooleanDeviceLabel.SceneDebugMenu);
            debugMenuDrawer = new DefaultDebugMenuDrawer();
        }
示例#2
0
        public MapViewerScene()
        {
            UpdateState = UpdateStateInit;
            DrawState = DrawStateInit;

            Name = "MapViewer";

            cameraUpdater = new ViewerCameraUpdater(Camera, InputAccessor.GetController(ControllerLabel.Main))
            {
                InitRotX = -MathUtil.PiOver4,
                InitRotY = MathUtil.PiOver4,
                InitEyeZ = 3000.0f,
                MaxEyeZ = 5000.0f,
                MinEyeZ = 1.0f,
                EyeZInterval = 1.0f,
                RotInterval = 0.04f,
                PanInterval = 10.0f,
                EnablePan = true,
            };

            debugMenuUpdater = new DebugMenuUpdater(debugMenu, BooleanDeviceLabel.SceneDebugMenu);
        }