This new content viewer has a fixed aspect ratio but I think most screens and preview images are rectangles. Maybe the viewer could adapt to the image size / ratio?
content-viewer.gh (13.9 KB)
Sorry. I’ll start to add ‘rhino8’ or ‘rhino9’ tags to my topics.
I recently hacked something together to view geometry in Grasshopper for Rhino 8.
Here is the repo: GitHub - OmkarBhagwat29/gh-watch: watch component for grasshopper with built-in three.js viewer · GitHub
Haven’t tested the content viewer yet, though.

Nice viewer.
In addition it should have options to set the view to perspective/ orthogonal and top/ front/ back, etc.
Looks like an interesting approach. I wonder how responsive it is/it handles RAM for heavy geometry/big scenes. Need to test this
yes, for larger geometries there are performance limitations as each geometry needs to be first converted into mesh for three viewer. I have ‘Improve Performance’ issue opened would appreciate any contribution.
@kike there still seems to be an issue with the aspect ratio.
I’m using my example from above to view a Rhino file. The Set View option has disappeared. I do see the Set View option when model objects or geometry is connected to the Content Viewer
It looks like you are connecting a file path.
In this case it shows just the preview image there is embedded in the file.
So there is no Set View available what you see is just an image. Also If you use it to cycle through several files it feels better to me if the component does not change its size on each different file you plug in.
Makes sense. Thanks for the clarifications



