Is it possible to access the baked data from a light probe through Blender’s Python API?
In particular I’m hoping to get Spherical Harmonics coefficients for each cell in an Irradiance Volume, but coefficients for a Reflection Cubemap probe would be fine too. I’m assuming that’s stored in a cache somewhere, but digging around in the console (e.g. bpy.context.*) and the source code isn’t getting me anywhere.
Closest I could get is:
bpy.ops.scene.light_cache_bake()
bpy.ops.scene.light_cache_free()
bpy.context.scene.eevee.gi_cache_info
It doesn’t look like there are bindings for python, afaik. Would need a patch?
Suppose someone who’s never tried to expose new APIs in blender would try to do this, any pointers? What would be the right way to do it?
Lol. Yes.
I think Don and I are interested in getting that blender lightprobe data into three.js’s three.js docs. I’ve got all the C/C++ experience required. I’m hesitant to try to put a patch together, as i expect I’ll just make the interface wrong way and my PR will get rejected.
I guess I’m looking for a “sponsor” that would be the right person to review the work who could tell me how they would do it, so that we’re all happy in the end.
@netpro2k no progress on the Blender portion of this, as far as I know. I did write up a draft PR to three.js for light probe volumes defined by interpolated SH values: