protected override void OnRenderTargetChanged(viz.D3DImageTexture renderTarget) { DebugHelper.AssertUIThread(); if (renderTarget != null) { viz.MouseNavigator oldMouseNavigator = this.mouseNavigator; mouseNavigator = new viz.MouseNavigator(renderTarget); // must get something to setup view matrix if (oldMouseNavigator != null) { mouseNavigator.Set(oldMouseNavigator); } viz.ArcBallCamera oldArcBallCamera = this.arcBallCamera; this.arcBallCamera = new viz.ArcBallCamera(renderTarget); if (oldArcBallCamera == null) { this.arcBallCamera.SetFrontView(); this.arcBallCamera.Rotate(0.3f, -0.2f); this.arcBallCamera.Zoom(0.5f); } else { this.arcBallCamera.Set(oldArcBallCamera); } } }
protected virtual void OnRenderTargetChanged(viz.D3DImageTexture renderTarget) { }