Hi guys,
I was thinking about the M15 from memory a lot last days, and I got a crazy idea (my default kind of ideas).
What about re-implementing the M15 as ThinBASIC TWF (TYPE with FUNCTIONs), using TBGL GBuffers as backend?
Advantage:
- much faster rendering than current M15 backend
- dynamic allocation, no longer needed to specify number of models and their dimensions ahead
- thinBasic code layer, adjustable by anyone
Where is the code?
https://github.com/petrSchreiber/m15Model
How can I use it?
Please note the current implementation is in pre-release phase, targetted at testing.
You can grab the files from releases page.
How difficult it is to use?
Not much After you download the includes, it can be as simple as:
#include "m15Model.tbasicu"
...
dim model as m15Model
model.FromFile("C:\myModel.m15")
' -- or
String memoryBuffer = file_load("C:\myModel.m15")
model.FromMemory(memoryBuffer)
...
model.render
Feedback welcome!
Looking forward to your feedback. And if it is the way to go for you, please attach your M15 models, so I can use them as test data!
Petr
Bookmarks