Hubs-Foundation / hubs-blender-exporter

The Hubs Blender Add-on enables artists to export their creations to the immersive web with Hubs
Mozilla Public License 2.0
165 stars 51 forks source link

Alignment and scale options for media frames #248

Closed rawnsley closed 7 months ago

rawnsley commented 7 months ago

The addition of a media frame option to disable the default scale-to-fit-bounds behaviour and options to control how media should be aligned within the frame when it doesn't fill the space exactly. For example, these settings would place objects on the floor of the media frame and allow to keep their original scale:

Screenshot 2023-11-16 at 14 22 15

This companion hubs-client PR contains some concrete examples.

Exairnous commented 7 months ago

Thanks for this @rawnsley ! I was hoping to test this out over the weekend, but didn't end up getting to it. I plan to test it in the next day, but it looks alright just glancing over it. The one thing that occurs to me is that I think the two if export_settings['gltf_yup']: sections could be combined.