Skip to content

feat(viewer): Implement data-driven coloring for 3D point cloud#26

Merged
danielcamposramos merged 1 commit into
mainfrom
feature/data-driven-coloring
Aug 12, 2025
Merged

feat(viewer): Implement data-driven coloring for 3D point cloud#26
danielcamposramos merged 1 commit into
mainfrom
feature/data-driven-coloring

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This change implements data-driven coloring for the 3D point cloud viewer. The color of each point is now determined by its position in the 3D space, providing a more meaningful visualization of the data.

This commit enhances the 3D viewer to provide a more meaningful visualization of the underlying data. Previously, points in the cloud were colored with a simple HSL gradient based on their index. This change implements data-driven coloring, where the color of each point is derived from its corresponding 3D vector in the .k3d metadata file.

The implementation normalizes the position of each point within the overall bounding box of the dataset and maps the resulting [0, 1] values to the R, G, and B color channels. This ensures that points that are close to each other in the embedding space (after PCA) are rendered with similar colors, providing an intuitive visual representation of the data's structure.

This change completes Phase 3 of the project roadmap and provides a foundational visualization for future work on navigation and interaction within the 3D knowledge space.
@danielcamposramos danielcamposramos marked this pull request as ready for review August 12, 2025 18:51
@danielcamposramos danielcamposramos merged commit fd7924d into main Aug 12, 2025
1 check passed
@danielcamposramos danielcamposramos deleted the feature/data-driven-coloring branch August 12, 2025 18:52
danielcamposramos added a commit that referenced this pull request Sep 7, 2025
…oring

feat(viewer): Implement data-driven coloring for 3D point cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant