v0.6.0
Open PGL 0.6.0
-
Api changes:
Device
addednumThread
parameter (default = 0) to the constructor to set the number of threads used byOpen PGL
during training. The default value of0
uses all threads provided byTBB
. If the renderer usesTBB
as well and regulates the thread count this count is also used byOpen PGL
.SurfaceSamplingDistribution
andVolumeSamplingDistribution
:- Added
GetId
function to return the unique id of the spatial structure used to query the sampling distriubtion.
- Added
Field
andSampleStorage
, addedCompare
function to check if the data stored in different instances (e.g., generated by two separate runs) are similar (i.e., same spatial subdivisions and directional distributions).Field
:- The constructor of the
Field
class now takes aFieldConfig
instead of aPGLFieldArguments
object. (BREAKING API CHANGE) GetSurfaceStatistics
andGetVolumeStatistics
functions are added to query statistics about the surface and volume guiding field. The functions return aFieldStatistics
object. Note, querying the statistics of aField
introduces a small overhead.
- The constructor of the
FieldStatistics
:- This class store different statistics about a
Field
, such as, number and size of spatial nodes, statistics about the directional distributions, and the times spend for full and separate steps of the lastUpdate
step. The statistics can be queried as a full string (useful for logging) or as CSV strings (useful for analysis and plotting). ToString
: Returns a string printing all statistics.HeaderCSVString
: Returns the CSV header sting with the names of each statistic.ToCSVString
: Returns the CSV value sting of each statistic.
- This class store different statistics about a
FieldConfig
:- This class is added to replace the
PGLFieldArguments
struct when using the C++ API.
-Init
: the function initializes the parameters of theFieldConfig
(i.e., similar topglFieldArgumentsSetDefaults
). Additional parameters (deterministic
andmaxSamplesPerLeaf
) are introduced to enable deterministic behavior and to control the spatial subdivision granularity.
-SetSpatialStructureArgMaxDepth
: this function can be called afterInit
to the the maximum tree depth of the spatial structure.
- This class is added to replace the
pglFieldArgumentsSetDefaults
: Adding two additional parametersdeterministic
andmaxSamplesPerLeaf
. (BREAKING API CHANGE)
-
Tools:
- Added a set of command line tools which are build when enabling the
OPENPGL_BUILD_TOOLS
Cmake flag.openpgl_bench
: Tool to time different components ofOpen PGL
such as the full training of aField
or the querying (initialization) ofSamplingDistributions
.openpgl_debug
: Tool tovalidate
andcompare
storedSampleStorage
andField
objects or retrain aField
from scratch using multiple stored sets (iterations) of stored samples.
- Added a set of command line tools which are build when enabling the
-
Optimizations:
- Spatial structure (Kd-tree) build is now fully multithreaded. This improves training performance on machines with higher core counts, especially when using
deterministic
training. - Kd-tree switched to use cache-friendlier
TreeLets
instead of singleTreeNode
structures.
- Spatial structure (Kd-tree) build is now fully multithreaded. This improves training performance on machines with higher core counts, especially when using
-
Bugfixes:
Field
fixed some non-deterministic behavior when spatial cache does not receive any training data during a training iteration due to a large number of training iterations.- Removed legacy/broken support for
OpenMP
threading since there is a dependency toTBB
anyway. - Fixed build problems on (non-Mac)
ARM
systems.