The code is on google code, see this page http://code.google.com/p/vlengine/source/checkout how to check out the source.
The model pipeline goes like this:
These steps are supposed to happen in some kind of world editor:
- External format model loaded with the appropriate model loader (OBJ, X) into the internal format (separate buffers or whatever the import program produces and the engine supports), returns Model
- Multiple Model passed to ModelPackCreator one by one
- ModelPackCreator.createModelPack() produces a ModelPack
- ModelPack.save() saves it to disk
These steps should happen at game run time:
- ModelPack.load() loads it from the disk
- ModelPack.getModel(String name) returns Model
- Model.getInstance() returns Spatial which can be attached to the scene