rerun icon indicating copy to clipboard operation
rerun copied to clipboard

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

Open Danvil opened this issue 3 months ago • 1 comments

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:

  • Auto/Default: how it works today
  • Nearest
  • Linear

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

Danvil avatar May 13 '24 20:05 Danvil