EmilyMatt / mapping-rs

A collection of mapping suites and useful algorithms, implemented in pure Rust
MIT License
12 stars 4 forks source link

Add 3D ICP Visualizer Example (Inc. a basic OpenGL shader) #47

Open EmilyMatt opened 8 months ago

EmilyMatt commented 8 months ago

It is supposed to be almost identical to the existing 2D visualizer, so almost a copy-paste job, except a shader program needs to be added to the gl context upon creation, and instead of using the eframe painter to draw a shape, we need to use it the add a custom paint, which will call the compiled shader. The vertex shader should be very simple, and the vertices for the points should be in a sphere shape, and for the centeroid(mean) it should be a cube shape