Pages

Monday, December 5, 2011

Fighting with OpenGL #2

I've got a new version of my 'engine'. I've rewritten a quite big part of code and added a few new features. Among others:
+directional and ambient lighting
+materials (currently just framework)
+procedurally generated meshes (box and sphere)
+integrated zlib and pnglib

I have some fun with generating a sphere mesh. I am starting from the octahedron, tessalates it few times and normalizes new vertices, so they "puffs" creating more and more precise sphere model. I've got many problems with generating indices for those vertices, but at last I've managed to do it.

No comments:

Post a Comment