Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Use Blender coordinate system for BGs #6376

Open keianhzo opened 1 year ago

keianhzo commented 1 year ago

Is your feature request related to a problem? Please describe. Blender and ThreeJS use different coordinate systems. Our approach for the hubs add-on it's been to use the Blender coordinate system in the add-on and swizzle at export time

https://github.com/MozillaReality/hubs-blender-exporter/blob/6cf55d41afa5683ee5ce5d7b8e09219d16a852c3/addons/io_hubs_addon/components/definitions/media_frame.py#L145-L159

Describe the solution you'd like We should work using the Blender coordinate system for values in nodes or variables and swizzle them at export time. As the add-on is been out there for a bit we should bump the add-on version and add support for migrating values from the previous version so we make sure that we are backwards compatible.