Hey, when I try to take the snapshot, the dimensions are not visible, but in the configurator, they’re fully visible. Can you look into this?
The dimension numbers are 2D text tags, which are not part of the 3D scene, but are represented as HTML elements on top of the viewport canvas. Therefore, they are not part of screenshots taken from the viewport.
can you tell me about this html approach
You are using 2D text tags to represent the dimension numbers. This is totally fine, but they are not rendered onto screenshots created utilizing the viewer’s getScreenshot function, because they are not part of the 3D scene. We currently do not have a simple way to work around this. The options I see:
- Represent the dimension numbers using some 3D text elements.
- Take a screenshot and use it as input to a ShapeDiver model, which renders text on top of the screenshot using the Squid plugin. This is not trivial, because it requires calculating the correct 2D positions based on screenshot resolution, camera position (and further camera parameters like field of view), and the 3D positions where the text should appear.

