issues
search
FacoBackup
/
pine-engine
pine-engine
5
stars
0
forks
source link
Voxelization and voxel buffer update
#135
Closed
FacoBackup
closed
3 weeks ago
FacoBackup
commented
1 month ago
Chunks
[x] Chunks of a configurable resolution
Chunk metadata
Center
Buffer offset
Node quantity (quit if node quantity is smaller than the travelled distance)
[x] Write chunk data to disk
Use manual serialization/deserialization of the int values
[x] Load chunks based on camera position
Grid chunk positioning
Load chunk based on which grid cell the camera is located at
Create a hashmap of grid cell -> chunk
[x] ~Partial svo buffer update~ individual buffers for chunks
~Shift other chunks, so data is kept linearly~
Voxelization
[x] Sample albedo texture
Store sampled color on 23bit mask used for childIndex on the parent of the lowest level of the octree
Compress RGB into 23bit color
[x] Everything has to be async and not dependent on either opengl or the rendering task
Chunks
Voxelization