HappyHombre:I'm assuming you want to use the CameraComponent class.
Here's the basic steps:
1. Create an instance of the CameraComponent class and pass it your Game class.
CameraComponent camera = new CameraComponent(this);
2. Register the CameraComponent with the framework.
this.Components.Add(camera);
That's all there is to it. The framework will call the CameraComponent's Update() method once per frame to update the camera's state.
Thanks for the great sample you presented, but how can I use it with ModelViewerControl Shawn provided?
camera =
new CameraComponent(this);
Components.Add(camera);
I am trying to make WinFormsGraphicsDeviceSample-3.0 to work with this camera class, but no success so far, what should be different in winforms for this camera class to work?
the this above dont work for modelviewercontrol, my app does not use Game class, so there is no Update method, just overriding Draw method from XNA framework and updating via a timer.
also modelviewer does not expose a Component for Components.Add(camera); to work, what am I missing?
any help is appreciated, this camera class is fantastic I dont want to look for other camera classes, please help, thank you