Closed bchretien closed 8 months ago
thank you so much for the detailed error report!
Could the fact that the texture has non-power-of-two dimensions be a problem here?
It's strange that your much larger texture gets reported as smaller. But size is definitely the problem, non-power-of-two should be handled on the other hand. Sadly, 8192 is the common portable limit for texture sizes and what the WebGPU spec guarantees which is why we stick to that limit so far. However, on desktop 16k & 32k are more common limits nowadays (see https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxImageDimension2D&platform=windows)
bunch of things to do for us here:
@Wumpf Thanks for the quick feedback!
I'm seeing this limit reported in the other web viewers, https://sandbox.babylonjs.com even reports the texture size as 8192 x 8192
, so maybe they all resize the textures silently for such cases.
ohhh interesting! Was already wondering if one can enable larger than 8k in the browser. Thanks for digging that up!! We should then also consider doing texture resizing, just less silent 😄 . First of all ofc is "not crashing" 😳
Note: this also happens with log_image
, so it should be easy to reproduce and test.
The crash has been fixed, and have been replaced with a logged warning and an empty spaceview.
I've created a new issue to track support for larger images in general:
@emilk perfect, thanks!
Describe the bug
Hi, first of all thanks for this great tool, it is a pleasure to use!
While trying to load a GLB mesh file with![image](https://github.com/rerun-io/rerun/assets/2742231/f338bb80-a468-4040-9917-b91ca05752f6)
rr.log_mesh_file(mesh_path=...)
, I get an error in the browser:To Reproduce Steps to reproduce the behavior:
rerun
rr.log_mesh_file(mesh_path=...)
from Python with a mesh file which contains textures larger than 8192.Expected behavior
The mesh should be loaded. Other online
.gltf
/.glb
viewers can read the input file successfully:Screenshots
No relevant screenshot.
Backtrace
Desktop (please complete the following information):
Rerun version
Additional context
I guess that the file respects the glTF specs as every reader I found managed to read it. Another surprising thing: the texture's size is actually
12086 x 16116
, but9063
is reported in the error message. The glTF validator returns:Could the fact that the texture has non-power-of-two dimensions be a problem here?