donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.06k stars 530 forks source link

Implement pointSize control for point clouds #347

Closed zeux closed 9 months ago

zeux commented 9 months ago

Without this it is difficult to debug point cloud scenes unless they contain tens of millions of points...

image

Note: it seems likely that isMesh checks elsewhere in the viewer are incorrect since I had to add isPoints to traverseMaterials, but that can probably be improved separately.

donmccurdy commented 9 months ago

Thanks @zeux!

donmccurdy commented 9 months ago

Note: it seems likely that isMesh checks elsewhere in the viewer are incorrect since I had to add isPoints to traverseMaterials, but that can probably be improved separately.

Should be covered by https://github.com/donmccurdy/three-gltf-viewer/commit/6f6df0ab2ca30e5eea09655ebbfc4d4527f7c2a8. 👍🏻