Generates C# code, containing 2 arrays, for the vertices and the triangles of a blender model.
I’ve just been running it in the blender script window for now. You do this by opening a text editor window in blender, copying in the code, and clicking run script when you need to. The object you want to export must be selected at the time, and it needs to have been triangulated (go into edit mode, then press CTRL+T). The output looks something like this: vertices = new Vector3[]{ new Vector3 (20.0f, 40.0f, -0.0f), new Vector3 ( - Pastebin.com
I originally made it, so my artist could make something fancy in blender, then I could export it into C#, tweak some of the variables, so it could do cool procedural things.
I would greatly appreciate someone who know’s what they’re doing with blender addons to get this working properly in a menu button, or whatever. Also, I didn’t manage to add in normal and uv exporting, so feel free to add that in too.
Also, can someone confirm this is in the correct forum area?