-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
PCDLoader: read label by type/size; examples: Z-up fit view and label colors #32064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
PCDLoader: read label by type/size; examples: Z-up fit view and label colors #32064
Conversation
|
That 40MB file is too big for the repo... Do you mind removing it from the PR? |
…-based colors - Read label attribute using header-derived type and size in binary and binary_compressed Examples (webgl_loader_pcd.html): - Add Z-up handling and fit-view camera for Z-up datasets - Recreate OrbitControls per up-axis to avoid roll on pitch - Colorize points by integer label (deterministic HSL mapping) - Hide GUI color control when label-based vertex colors are present - Keep legacy behavior for Y-up files; split file lists (yUpFiles/zUpFiles) - Update default example to 'binary/fusion_lidar_scene.pcd'
…tation - Set default example back to 'binary/Zaghetto.pcd' - Restore Y-up camera initial position to (0, 0, 1) - Revert OrbitControls maxDistance to 10 for Y-up path - Keep Z-up path logic for specific datasets (no visual baseline change) Lint: - PCDLoader.js: add missing semicolons for label reading (binary/binary_compressed) - webgl_loader_pcd.html: fix indentation to tabs (ESLint indent rule)
e42a60a to
9f7d35f
Compare
|
Hi @mrdoob, Thanks for the feedback! ✅ File removed: I've removed the |
| controls.update(); | ||
| camera.updateProjectionMatrix(); | ||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind removing these changes from the demo and just add lidar_scene.pcd as a new asset?
Rationale:
labelwhen its field size/type varies (1/2/4 bytes)Testing:
npm run lint,npm run test-unit,npm run test-unit-addonsColorize points by integer label (deterministic HSL mapping):

https://raw.githack.com/PreciousnessX/three.js/feature/pcdloader-label-zup/examples/webgl_loader_pcd.html