For the Death Spiral game, I want the in-game menu to be a phone your character will physically pull out of their pocket and look at when you open it for a more immersive experience
I think I've written the world's fastest Blender exporter. It exports full levels in 9 milliseconds.
Check out this video where I show live editing of levels from blender, and it updates instantly in the game.
For some context:
Okay, since the beginning of development on this game project, I knew I didn't want to write a custom level editor for it and rather spend my time programming the game. I decided to use blender as the level editor, and export directly from blender to my game engine's file format.
Blender only lets you write add-ons in Python, which is not just incredibly slow but also a terrible platform for this kind of systems programming work.
So, after having a Python exporter for the longest time, I decided enough was enough, and I programmed this exporter in C. Blender doesn't expose any C API or interface. So my only option was to download Blender's source code and insert my code directly into Blender.
And that's what I did :)
So this new C exporter not only is orders of magnitude faster than the python version, but also is way more robust.
And because I'm in C land, my hands are much freer to do things. There are two elements of secret sauce that make this exporter run so fast:
- A custom memory arena implementation.
- Lockless multithreading.
Still can't believe what the Real-Time Caustics can do in Shaders Plus!
Development sometimes takes forever, cause I'm stuck just playing around with stuff like this for hours🤪😍
Go check it out!🥰 https://t.co/MysDKb9zis
#blender#b3d#blender3d