viewport-lib
viewport-lib is a gpu-accelerated 3D viewport library for rust. The library gives you a renderer, camera, picking-tools, gizmos, overlays, and scene primitives.
Whichever gui library you choose to use (winit, eframe, Iced, Slint, etc.), the integration model stays the same in each case:
- your application owns the window, event loop, and tool state;
viewport-libowns rendering and viewport-side maths.
WARNING: viewport-lib has only recently been extracted as a stand-alone library from a separate project and the API is still somewhat unstable.
Core features
- mesh, point cloud, polyline, and volume rendering
- directional lighting, shadow mapping, and post-processing
- material shading, normal maps, transparency, outlines, and x-ray views
- clip planes, section views, scalar coloring, and colormaps
- arcball camera, view presets, framing, and smooth camera animation
- CPU/GPU picking, rectangle selection, transform gizmos, and snapping
- annotations, axes indicators