unlimitedbacon / stl-thumb

Thumbnail generator for STL files
MIT License
1.09k stars 93 forks source link

Feature Request: Rotation Command Line parameters #60

Open J0nnyI opened 2 years ago

J0nnyI commented 2 years ago

Is it possible to add yaw/pitch/roll to the command line parameters?

I am working on integrating your project into my Stl File Organizer as thumbnail generator and would like to know if you could add an pitch/yaw/roll parameter to the command line arguments, so that I can adjust the rotation to match the in-app settings.

unlimitedbacon commented 2 years ago

This shouldn't be too hard to add. I'll look into it.

J0nnyI commented 2 years ago

thank you, I appreciate it

unlimitedbacon commented 2 years ago

Would it be more useful to use rotation (a set of angles) or the camera position relative to the object (x, y, z)?

J0nnyI commented 2 years ago

Would it be more useful to use rotation (a set of angles) or the camera potsition relative to the object (x, y, z)?

short: I think setting the rotation of the model would be the easiest, An additional parameter for the distance between camera and object would be nice too (since a part of the mdel is often out of frame if the shape is a bit unlucky)

Maybe providing model and camera rotation would be a good idea too, since the model rotation does change the lighting position, which the camera position has no effect on.

The usecase is that I want to create Thumbnails fo the Application and the models get a default rotation, since a lot of models are imported with a 90° pitch.

ostat commented 1 year ago

Would it be more useful to use rotation (a set of angles) or the camera position relative to the object (x, y, z)?

Adjusting the camera position would be handy.