Seeking documentation for light probes

It is a bit like passed down lore at this point so a wiki page would be awesome.

I will contribute how I load a presaved light probe from my general set.

First:

        Spatial probeHolder = getApplication().getAssetManager().loadModel(probeName);
        LightProbe probe = (LightProbe)probeHolder.getLocalLightList().get(0);
        probe.setPosition(Vector3f.ZERO);
        probeHolder.removeLight(probe);   

Which prepares “probe” to be used more generally.

Then rootNode.addLight(probe) or someNode.addLight(probe) when you want it.

Edit: and note this is not for generated probes… it’s for pregenerated probes or using probes from a standard set. (For example, the studio light probe is a pretty general probe that will work for a lot of indoor scenes.)

3 Likes