trying to replicate unity's light probe system

trying to replicate unity’s light probe system for my needs

my algorithm sort of works, sometimes. it creates extra incorrect delaunay tetrahedrons in places

is there any source code / documentation / pseudocode to go off, or successful examples?
could anyone kindly point me in the right direction

1 Like

Hi, I am on the same endeavor right now and I’m kinda stuck too.

I found this Unity talk at GDC 2012: https://twvideo01.ubm-us.net/o1/vault/gdc2012/slides/Programming%20Track/Cupisz_Robert_Light_Probe_Interpolation.pdf

In here they talk about how Unity’s light probe system works.
It seems like they used “TetGen” for generating tetrahedra. Unfortunately that software is C++ only.

I tried searching for C# alternatives, and although some of them kinda work, none could achieve the same results as TetGen’s implementation.

There is a nice repo that did the C++ /.Net wrapping but I have a feeling it won’t work with Mono.

If anyone has any idea and point us in the right direction please do so!
It would be awesome for Unity to open the Tetrahedalize API and allow us to pass parameters, but I guess it works only with bakedProbe data only.