struct

PointCloudPoint

GPU point record, 16 bytes, read by PointCloud.hlsl as one uint4: x | y<<16 position, chunk-local, kPositionQuantum steps z | octX<<16 | octY<<24 octahedral normal birth | intensity<<16 | flags<<24 range:3 | material:4 | owner:3 | page:22 There is no colour. What a point looks like is derived in the shader from range, material, owner, intensity and age, so recolouring the cloud — a colour-blind palette, an owner tint — never touches a point.

Module
SceneTypes
Header
#include "SceneTypes/Components/PointCloudComponent.h"
Namespace
Mowo

Properties

TypeNameDescription
uint16_txDefault 0.
uint16_tyDefault 0.
uint16_tzDefault 0.
uint8_toctXDefault 128.
uint8_toctYDefault 255.
uint16_tbirthDefault 0.
uint8_tintensityDefault 255.
uint8_tflagsDefault 0.
uint32_tbitsDefault 0.

Public functions

ReturnsNameDescription
uint32_tGetRange
uint32_tGetMaterial
uint32_tGetOwner
uint32_tGetPage
voidSetRange
voidSetMaterial
voidSetOwner
voidSetPage
boolHasFlag
PointCloudPointWithoutPageThe page says where a record sits in this machine's GPU pool, which two machines holding the same cloud assign differently; everything else is the point itself.
boolSameContent
uint16_tQuantizeAxisIn double, from the world coordinate and the chunk corner, against the exact step count: a float subtraction across the origin (-0.3 - -8) and a float divide by the rounded quantum each push the error past the half-step bound by a fraction of a percent.
floatDequantizeAxis
Vec3LocalPosition
voidEncodeOctahedralOctahedral: the unit sphere folded onto a square, eight bits a side.
Vec3DecodeOctahedral
Vec3Normal

Function details

GetRange

C++
uint32_t GetRange() const

GetMaterial

C++
uint32_t GetMaterial() const

GetOwner

C++
uint32_t GetOwner() const

GetPage

C++
uint32_t GetPage() const

SetRange

C++
void SetRange(uint32_t value)

SetMaterial

C++
void SetMaterial(uint32_t value)

SetOwner

C++
void SetOwner(uint32_t value)

SetPage

C++
void SetPage(uint32_t value)

HasFlag

C++
bool HasFlag(EPointCloudFlag flag) const

WithoutPage

C++
PointCloudPoint WithoutPage() const

The page says where a record sits in this machine's GPU pool, which two machines holding the same cloud assign differently; everything else is the point itself.

SameContent

C++
bool SameContent(const PointCloudPoint& other) const

QuantizeAxis

C++
static uint16_t QuantizeAxis(float world, float origin)

In double, from the world coordinate and the chunk corner, against the exact step count: a float subtraction across the origin (-0.3 - -8) and a float divide by the rounded quantum each push the error past the half-step bound by a fraction of a percent.

DequantizeAxis

C++
static float DequantizeAxis(uint16_t steps)

LocalPosition

C++
Vec3 LocalPosition() const

EncodeOctahedral

C++
static void EncodeOctahedral(const Vec3& normal, uint8_t& outX, uint8_t& outY)

Octahedral: the unit sphere folded onto a square, eight bits a side. A point needs its normal only for direction (the displacement along it, the eye-dome term), and at this size the worst-case error is about a degree and a half.

DecodeOctahedral

C++
static Vec3 DecodeOctahedral(uint8_t encodedX, uint8_t encodedY)

Normal

C++
Vec3 Normal() const
Generated from SceneTypes/Components/PointCloudComponent.h via scenetypes.json · Nov 4, 2026Version 1.0.0