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.15k stars 539 forks source link

Implement pointSize control for point clouds #347

Closed zeux closed 1 year ago

zeux commented 1 year 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 1 year ago

Thanks @zeux!

donmccurdy commented 1 year 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. 👍🏻