my friends and I want to develop a game engine using Blender, but wonder if our executable (c++) could load .blend files…
So we would have our vertices and texture files, but the engine and input would be c++ coded…
Can i use these files(.blend)??
it’d be easier NOT to
http://www.blender3d.org/cms/Blender_Architecture.336.0.html [particularly the data structure section]
http://www.blender3d.org/cms/Blender_file_reading.498.0.html
http://www.blender3d.org/cms/Notes_on_SDNA.436.0.html
it’d be better in many ways to write an exporter in python to your engine’s own format
OH GOD!!!
I agree with z3r0 d. You need to write a python script that can export to a binary format (binary/hex format is best for security). You then write the neccesary importer to icorporate you data into a project that uses the engine.
This is not a suggestion as much as it is a requirement.
here are a few examples from my own engine “SOL”
*.sli image file
*.slt texture file (support for texture optimizations like pre made mipmaps)
*.sls sound file (very close resemblance to .mp3)
*.sol mapfile
*.slo static mesh object
*.sld dynamic mesh object
Get the basic idea???