Class for the visualization.
virtual void draw(GLContext *gl, CameraControls &camera)=0
The method used to draw the current state of visualization to the OpenGL context. ...
S32 m_currentDepth
Current node's depth information.
Buffer m_emptyLineColors
Buffer holding line colors of empty boxes as quad primitives.
U32 m_nodeColor
Color of the current node.
bool m_showEmpty
Flag whether to show empty nodes.
S32 m_osahSplits[3]
Counters of the number of OSAH splits in the subtree under the set node in the x, y and z dimensions...
Buffer m_rays
Buffer holding some rays as line segments.
U32 m_leftColor
Color of the left child of the current node.
Buffer m_emptyBoxes
Buffer holding empty boxes as quad primitives.
bool m_splitColors
Flag whether to map left/right children colors based on the split type.
bool m_showAllOSAH
Flag whether to show all OSAH split nodes.
Buffer m_visTris
Buffer holding invisible selected triangles.
Declarations for the Cuda version of the BVH.
U32 m_rayColor
Color of the ray line indices.
Array< String > m_splitPath
Text representation of the VisualizationBVH::m_nodeStack path.
bool isVisible() const
Return whether the visualization renders its output.
void setVisible(bool visible)
Sets whether the visualization should be rendered or not.
bool m_showRays
Flag whether to show the ray segments.
Buffer m_emptyColors
Buffer holding colors of empty boxes as quad primitives.
U32 m_rightPrims
Number of primitives in the right child of the current node.
Definitions for Cuda KDTree.
bool m_showChildren
Flag whether to show children of the current node.
Buffer m_boxes
Buffer holding selected boxes as quad primitives.
U32 m_rightColor
Color of the right child of the current node.
bool m_showCurrTris
Flag whether to show triangles of the current node.};.
U32 m_siblingColor
Color of the sibling of the current node.
bool m_visible
Flag whether to show the BVH visualization.
Visualization(Scene *scene)
U32 m_leftPrims
Number of primitives in the left child of the current node.
Array< S32 > m_visibility
Visibility of individual triangles.
Buffer m_invisTris
Buffer holding visible selected triangles.