3#include "Components/Core/RenderComponent.h"
4#include "Resources/Resources.h"
93 glm::vec4
baseColor = glm::vec4(0.5f, 0.5f, 0.5f, 1.0f);
112 static void registerType();
116template<>
inline Cogs::StringView getName<Cogs::Core::PotreeNotification>() {
return "PotreeNotification"; }
118template<>
inline Cogs::StringView getName<Cogs::Core::PotreeColoring>() {
return "PotreeColoring"; }
120template<>
inline Cogs::StringView getName<Cogs::Core::PotreeShading>() {
return "PotreeShading"; }
122template<>
inline Cogs::StringView getName<Cogs::Core::PotreePointShape>() {
return "PotreePointShape"; }
124template<>
inline Cogs::StringView getName<Cogs::Core::PotreePointSizing>() {
return "PotreePointSizing"; }
126template<>
inline Cogs::StringView getName<Cogs::Core::PotreeDebugBoxes>() {
return "PotreeDebugBoxes"; }
128template<>
inline Cogs::StringView getName<Cogs::Core::PotreeOriginPolicy>() {
return "PotreeOriginPolicy"; }
130template<>
inline Cogs::StringView getName<Cogs::Core::PotreeComponent>() {
return "PotreeComponent"; }
Base component for all rendering content.
RenderFlags renderFlags
Render flags used to control rendering behavior.
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
@ Disc
Each point is a flat disc.
@ Square
Each point is a flat square.
@ Paraboloid
Each point is a square with depth adjusted to a parabolic shape, requires support for changing fragme...
@ DistanceAndDensityScaled
Base point size scaled by camera distance and adjusted for local point density.
@ DistanceScaled
Base point size scaled by camera distance.
@ FixedSize
Base point size with no scaling.
@ Flat
Use color directly as-is.
@ Basic
Add a falloff darkening away from center.
@ None
No debug node outlines.
@ ActiveCells
Outline all active cells.
@ ActiveLeafCells
Outline active cells that are currently leaves.
@ Sphere
Generic sphere shape.
@ FetchingBegin
Loading queue transitions from empty to non-empty, that is, instance needs data.
@ FetchingEnd
Loading queue transitions from non-empty to empty, that is, instance has all data it currently needs.
@ Ready
All 6 baselayers are fully loaded, instance will begin rendering.
@ Base
Use basecolor property of PotreeComponent, uniform color.
@ Intensity
Use intensity property from point set if present and colorize it with the gradient texture,...
@ Level
Use the octree depth as color, useful for debugging.
@ Color
Use color property from point set if present, fallback to basecolor.
@ CenterOnOrigin
Adjust offset s.t. point cloud is centered around entity origin.
@ None
Just use scale and offset as is.
@ CenterOnOriginAdjustCoordinate
Adjust offset s.t. point cloud is centered around enttiy origin and adjust transformcomponent coordin...
Component for Point Cloud Display.
float maxPointSize
Maximum point size in pixels regardless of point size strategy, gets DPI scaled.
std::vector< glm::vec4 > clipPlanes
Deprecated, use clip shapes instead.
MaterialInstanceHandle boxMaterial
Optional debug material override, material should inherit from PotreeBoxCore.material.
float shadingIntensity
Intensity of point shading effect, if enabled.
float pointSize
Base point size in pixels, gets DPI scaled.
float outlineSize
Size of point outlines, set to 0.0 to disable point outlines.
PotreeColoring coloring
Specify coloring strategy.
TextureHandle gradient
Optional gradient texture to colorize scalar values.
std::string source
URL of path where metadata.js(OLD format: cloud.js) resides.
bool disableLodUpdates
Debug trigger to disable update of lod calculations.
MaterialInstanceHandle pointMaterial
Optional point material override, material should inherit from PotreePointCore.material.
glm::vec3 outlineColor
Color of point outlines if enabled.
float rootNodeMinScreenSize
Minimal screen-space size root node can have before being eligble for distance-based culling.
PotreeShading shading
Specify optional shading.
PotreePointShape pointShape
Specify point shape.
glm::vec4 baseColor
Base color to use when Base coloring strategy is used.
float densityBias
DistanceAndDensityScaled: Offset where depth and density starts to affectg point size calc.
PotreePointSizing pointSizing
Specify point sizing strategy.
bool disableCustomClipping
Debug switch to disable clipping of points against custom clipping planes.
float distanceCutoffScale
Cut off chunks that are further away than camera elevation above pointcloud z - minimum times this sc...
float densityLevelScale
DistanceAndDensityScaled: Strength of level depth in point size calc.
bool supportPicking
If true, an extra CPU side copy of the point positions are maintained to enable CPU picking.
bool disableCustomCulling
Debug switch to disable culling of cells against custom clipping planes.
float distanceCutoffMinimum
Minimum value for distance-based cut-off, cut-off distance will never be less than this value.
float pointScreenSpacing
Maximal screen space distance between points before refining, gets adjusted by DPI scaling.
float densityScale
DistanceAndDensityScaled: Strength of local point density in point size calc.
PotreeOriginPolicy originPolicy
Specify origin policy, see enum for details.
PotreeDebugBoxes debugBoxes
Specify optional debug graphics.
float minPointSize
Minimum point size in pixels regardless of point size strategy, gets DPI scaled.