Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Y and Z coordinates reversed when exporting to GLTF or GLB #360

Open
KFowlow opened this issue Oct 22, 2024 · 0 comments
Open

Y and Z coordinates reversed when exporting to GLTF or GLB #360

KFowlow opened this issue Oct 22, 2024 · 0 comments

Comments

@KFowlow
Copy link

KFowlow commented Oct 22, 2024

I'm playing around with QGIS and 3D models. I have a DEM with air photos layered on top. I then open it in QGIS2ThreeJS and it looks good, no issues. I have been exporting the model as a GLB to be imported into either Blender or Model-Viewer for website work. When I use this model in either way, the Y and Z coordinates are reversed and the Z is negative. I've tried to play around with the export options and saved the model as a GLTF but still get the same results. My QGIS project is in UTM NAD27 Z11. Everything is in meters. It is just weird that it would just switch the coordinates. When I import the model into Blender. I am not able to move anything because of this issue. And when I use the model in Model-Viewer, it shows the Y and Z coordinates as switched. Is this a bug or am I just not clicking on the right option somewhere? I'm using QGIS 3.36.1 Maidenhead. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants