Shopify / screenshot-glb

A command line utility for taking screenshots of glTF 2.0 Binary 3D model files
116 stars 28 forks source link

Frame model entirely in view #97

Open bigrig2212 opened 1 year ago

bigrig2212 commented 1 year ago

Hi all - any way to frame the object so that it doesn't get cut off? Eg: screenshot with entire object.

I've got objects like this:

Screenshot 2023-08-18 at 8 45 42 AM

That are getting screenshotted like this: lantern-street-fixed-halloween glb

with CLI: screenshot-glb -i "$file" -o "screenshots/$filename.jpg" --width 1600 --height 1600 -q 0.60 -m "exposure=2&camera-orbit=9.698deg 72.69deg 10.24m"

I'd thought to zoom out a lot, but the meters from camera doesn't seem to do anything? But even better would be something like "crop to content" if it exists?

bigrig2212 commented 1 year ago

Taking the meters value off seems to work a bit better.