Portfolio
← Back

Lightbaking Blender Fork

Blender doesn't reuse most of its acceleration sturctures for texture baking. My fork changes this

With the Vulkan Schnee project I have started baking lightmaps and spherical harmonics data. The issue I have with the default blender baking behaviour is that it doesnt reuse its acceleration structures for baking a texture. Blender has to assume that nothing in the scene is static because there is no such system to mark stuff as static which could thus be cached between animation frames. Because static object flags are not a feature in blender, I implemented them into my fork to be able to distinguish between information which should be included in the light bake and what shouldn't. This allows me to exclude all non static objects from the bake creating clean lightmaps without shadows from objects which will move down the line. The blender fork also introduces tracy integration into the renderer so that I can diagnose where the processing time is actually spent instead of guessing. This has also been instrumental for the other plugins for the engine especially the exporter.
  • blender
  • python