rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.27k stars 297 forks source link

Textures on 3D meshes should support different types of texture sampling #6313

Open Danvil opened 4 months ago

Danvil commented 4 months ago

When displaying a mesh with texture using Mesh3D::with_albedo_texture it is not possible to select the texture sampling strategy. It looks like some interpolation like "linear" is used. This makes it hard to correlate pixel data with other 3D primitives like feature points and lines. For pixel-accurate visualization it is important that the source data is not changed by the visualization.

My request would be to provide the option to specify at least the following three options for texture sampling:

See here for more details on texture sampling: https://docs.vulkan.org/spec/latest/chapters/textures.html#textures-texel-filtering

Wumpf commented 4 months ago

Also related to the lack of mipmapping on meshes (what one usually would expect)