It gives me pleasure to release the first version of my exporter
named 'carmine'. It generates C/C++ compliant structures from Blender3D scenes. These structures can then be used to render the objects in OpenGL programs. The script was written with intention to ease OpenGL programming for beginners and advanced users who would like to experiment with OpenGL.
The base code is derived from NeHe's C++ code to keep things familiar for beginners.
The script is available at
With Kind Regards,
I don't mean to knock what you have accomplished here, but in general, embedding models in your source code is not a terribly good idea. Loading a simple model file is really not much harder, and allows you considerably more flexibility.
FYI, your 'magic indexing' process is often called "vertex welding".