A Simple 3D Graphic Engine Part 1: Quake II MD2 Model Loader

I’ve developed a simple MD2 model loader (Quake II file format) to import more complex geometries than the classic cube in my OpenGL experiments :D.
For now, my MD2 loader parses geometry data and material data to load the texture with the model (animations are not supported yet).
I’ve added a simple algorith to compute vertex normals for lighting so even if the model has no normals data, the loader can compute them by itself.
Next time I’ll try to add Vertex Array Objects (VAO) to improve OpenGL performance.

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s