-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Exporting a 3D scene results in a broken obj file #57437
Comments
@AbdelghaniTamort Thanks for the report and the detailed information. Could you please share your data and your QGIS project? |
Sure, here goes : |
@ptitjano any news on the issue? is it really a QGIS bug or an error related to the data I was using ? |
@AbdelghaniTamort I will try to take a look at it next week. |
Appreciated ! |
@AbdelghaniTamort Thank you for sharing your trial. Exactly same issue has been occured to me and it works well with version 3.30 as you mentioned. |
I have taken a look at it. It turns out this is a regression caused by #52064 which fixed an other issue: #50971 I have tried to solve it but this is not an easy task. I discussed it with @benoitdm-oslandia . He has not found any solution at the moment but he will try to take a look it when available. I cannot make any promise at the moment. |
Just to let you know, I've tried the export task with version 3.34 too. It results in a broken OBJ file just as version 3.36 does. |
@NearDuckyu thank you for taking the time to test it out! |
could I request something for when issue will be treated ? Can the output obj file be georeferenced in the same crs as the terrain? |
tested in 3.30 = works fine :) |
This is not fixed for me in 3.38.3 Laz file |
@Nekzuris , please try if the issue occurs also using QGIS 3.40. |
This comment was marked as resolved.
This comment was marked as resolved.
Okay it works now, but only with a DEM. |
@Nekzuris, I think it would be more useful if you created a new issue report providing all the requested info and a project and layer(s) and parameters and step by step instruction in order to replicate the issue. |
What is the bug or the crash?
The native export 3d scene feature of QGIS results in a broken 3d model (distorted terrain and extruded buildings) when displaying it in Blender or MeshLab.
For instance, the following scene looks like this in the 3d view :
![image](https://private-user-images.githubusercontent.com/118017108/330753191-987bb029-310c-4fba-8e19-41fcf9f97981.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTEwNjksIm5iZiI6MTczOTQxMDc2OSwicGF0aCI6Ii8xMTgwMTcxMDgvMzMwNzUzMTkxLTk4N2JiMDI5LTMxMGMtNGZiYS04ZTE5LTQxZmNmOWY5Nzk4MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwMTM5MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjU0M2ExN2ZlMGYzN2EzZTZiMWEzZGRkZTU1YzkyZGRiNTNlNWQyNjliYWEyZWJkZjRlMzkxMTFiZDhjYTRhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.m7Iyic3GdELvqvGJL5rOKzgpszyqgJ4Zwtjn2sglXd8)
When displaying the exported version of it in Blender it looks like this:
![image](https://private-user-images.githubusercontent.com/118017108/330753493-a2c5095a-3e6b-40a2-a978-4af9d07915d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTEwNjksIm5iZiI6MTczOTQxMDc2OSwicGF0aCI6Ii8xMTgwMTcxMDgvMzMwNzUzNDkzLWEyYzUwOTVhLTNlNmItNDBhMi1hOTc4LTRhZjlkMDc5MTVkOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwMTM5MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNWVhYzU5YTcyY2M3NmYxYmNhOTBiZjg5YzgyZWYxNGNiM2I3ZDQxYmNjM2VkZDI3YWE3NmEzMzQyNmRiNTE2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2bt63G3m_WifvS6NuhZSqybiskYjwWwjHztgJYrVfQA)
The terrain has been distorted and some of the buildings have missing pieces.
Steps to reproduce the issue
Versions
Version de QGIS
3.36.1-Maidenhead
Révision du code
3e58945
Version de Qt
5.15.3
Version de Python
3.9.18
Version de GDAL/OGR
3.8.4
Version de Proj
9.3.1
Version de la base de données du registre EPSG
v10.098 (2023-11-24)
Version de GEOS
3.12.1-CAPI-1.18.1
Version de SQLite
3.41.1
Version de PDAL
2.6.0
Version du client PostgreSQL
16.2
Version de SpatiaLite
5.1.0
Version de QWT
6.1.6
Version de QScintilla2
2.13.4
Version de l'OS
Windows 10 Version 2009
Extensions Python actives
BoundingBox
2.1
citygen
0.3
firstaid
3.1.0
idg
0.2.4
landxmlconvertor
0.2.0
model_generator_opendata
0.1
pluginbuilder3
3.2.1
plugin_reloader
0.9.4
qgis-maptiler-plugin
3.3
Qgis2threejs
2.7.3
quick_map_services
0.19.34
STL_Generator
1.0.0
valuetool
3.0.19
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: