dev in the making

game development, maya and code by brainzizi

zCamera

leave a comment »

I’m having a blast playing with camera code in XNA. This is the third time I’m writing my own camera, and after I experimented a bit with various camera implementations including Quaternion rotation, Matrix rotation, frame-by-frame rotation, I can now say that I get the basic principles of every camera. And my goal is to make a light camera framework, with a couple of build in cameras and code for easier writing your own camera. Last night was really productive, as I wrote some messy debug code using the vector renderer component from Ziggyware which I’ve tweaked a bit to draw bounding frustrums and alike.

I’ll release the source when I write some more camera types, but first a couple of screen shots:

The package will consist of two projects: zCamera and zCameraPlayground which uses an early version of zGui, my gui framework for debugging purposes.

PS.
The model I used is the model from XNA’s Normal Map sample. If you see a problem in that, please leave a comment.

Written by brainzizizi

08.08.2009 at 12:22

Posted in xna

Tagged with , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: