public MainView(Engine.RenderSystem rs) : base("SceneMainView", rs) { //m_grid = rs.createPrimitiveGrid(new Vector3F(0, 0, 0), 10, 10, 50, 50); m_camera.Position = new Vector3F(122.31f, 82.37f, 9.61f); m_camera.Direction = new Vector3F(73.37f, -61.42f, -21.68f); BaseController = new Camera3DController("cam"); BaseController.DefaultSubController = new EntitySelectDragController(); BaseController.CurrentSubController = BaseController.DefaultSubController; }
public MainView(RenderSystem rs,ModelViewDoc doc) : base("ModelMainView",rs) { m_camera.Position = new Vector3F(0, -5, 3); m_camera.Direction = new Vector3F(0, 0, 2); m_camera.Focus = true; Camera3DController camera_contrlooer = new Camera3DController("cam"); camera_contrlooer.MoveSpeed = 1.0f; camera_contrlooer.WheelSpeed = 0.01f; BaseController = camera_contrlooer; mLightCtrl = new LightingController(doc); BaseController.OnKeyPressing += _onViewKeyPressing; BaseController.OnKeyUp += _onViewKeyUp; mDoc = doc; }