pnext / three-loader

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

Screen space clipping #103

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.

quad_lion

fahadm commented 2 years ago

The changes look quite good already, maybe take a look at my comment and see if it makes sense ( or comment if it doesn't).

Also a question: In the picture that you posted above, is the same dataset loaded 4 times ( with different clipping values)?

MPanknin commented 2 years ago

Yes that's correct. It's four times the same dataset for illustration purposes. Later we will use this on different datasets or for comparing a point cloud against its mesh representation for example.