Archive for the Tips Category

December 29, 2009

Correction: Engine Constructor

The Engine Constructor used in the XNA Game Engine Tutorial Series 2.0 so far is incorrect. It should actually be as follows:

1
2
3
4
5
6
7
8
9
10
11
public Engine(GraphicsDeviceManager Graphics)
{
services = new ServiceContainer();
services.AddService(typeof(IGraphicsDeviceService), Graphics);
services.AddService(typeof(IGraphicsDeviceManager), Graphics);
 
this.graphicsDevice = Graphics.GraphicsDevice;
content = new IEContentManager(Services);
[...]

March 18, 2009

Rotation: Matrices, Quaternions, and Euler Angle Vectors

One of the most common types of transformations that are simulated in 3D Engines is rotation. There are a number of way of representing rotations: in matrices, quaternions, angle vectors, and in degrees and radians. The most accurate and least limited way of storing them is in matrices. A matrix is a mathematical concept that [...]