...
At the same point in your pipeline that you process the Enlighten runtime data, call GetOctreePppiAtlasFootprint for each probe set in the world, and then call ComputePppiAtlasMaxima load the IPrecompProbeAtlasMaxima object to obtain the maximum runtime memory footprint of per pixel probe lighting data.
Tip |
---|
For most implementations, we recommend to use the precompute pipeline API both to run the precompute and to load the output objects. |
Code Block |
---|
// path: "precomp/ProbeOctree_[paramset name].pam" const Enlighten::IPrecompProbeAtlasMaxima* atlasMaxima = Geo::LoadInterface<Enlighten::IPrecompProbeAtlasMaxima>(path); PppiAtlasFootprint footprint = atlasMaxima->GetProbeAtlasMaxima(); |
Use this footprint when you configure the High level runtime.
Use PppiConfiguration to configure the 3D virtual texture. To get started quickly, use the default constructor for reasonable defaults. When constructing the High level runtime update manager, assign your configuration to UpdateManagerProperties::m_PppiConfiguration.
...
To obtain the maximum required size of each input buffer for the compute shaders, call GetPppiMaximumClipmapUpdateRequirements and GetPppiMaximumAtlasUpdateRequirements with the result of ComputePppiAtlasMaxima obtained PppiAtlasFootprint obtained earlier. Create these input buffers at load time.
...