pnext / three-loader

Point cloud loader for ThreeJS, based on the core parts of Potree
Other
205 stars 89 forks source link

added screen space clipping #111

Closed MPanknin closed 2 years ago

MPanknin commented 2 years ago

Initial support for clipping of points in screen space. Which parts to clip/discard and what other parts of a point cloud to render is defined as a rectangular region in normalized device coordinates on a per material basis. This means multiple datasets can be rendered and displayed in a side-by-side fashion by defining the appropriate rectangular region of its material.

Clipping can be performed horizontally as well as vertically.

150797791-75c18f77-3007-4e1e-8926-935b2efe0840

Same as https://github.com/pnext/three-loader/pull/103 but cleaned up.