feat(viewer): Implement data-driven coloring for 3D point cloud#26
Merged
Conversation
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
added a commit
that referenced
this pull request
Sep 7, 2025
…oring feat(viewer): Implement data-driven coloring for 3D point cloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.