qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.66k stars 3.02k forks source link

3D-model disappers while rotating towards the right side of the 3D canvas #55370

Open pathmapper opened 1 year ago

pathmapper commented 1 year ago

What is the bug or the crash?

https://github.com/qgis/QGIS/assets/20856381/6e294238-7b42-4dd1-9805-fd2bfba683c2

Steps to reproduce the issue

  1. Download and unzip test project and data
  2. Open the project and rotate the model (pressed middle mouse button) towards the right side of the 3D canvas (like in the screencast above)
  3. See error -> 3D model disappears for some views

Versions

QGIS version 3.35.0-Master QGIS code revision 0de7e680952
Qt version 5.15.3
Python version 3.10.12
GDAL/OGR version 3.8.0dev-dd53b90c10
PROJ version 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.37.2
PDAL version 2.3.0
PostgreSQL client version 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1)
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Ubuntu 22.04.3 LTS
       

Active Python plugins grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 db_manager | 0.1.20

Supported QGIS version

New profile

Additional context

No response

ptitjano commented 1 year ago

I was able to reproduce it on current master. On the video below, the model is visible and a sphere next to it. The sphere comes from a duplicated layer of the one with the model but rendered as a sphere. It turns out that the 3D-model is not centered around zero. Therefore, there is a gap between the position of the original point and the rendered model. The culling algorithm does not take into account this gap and the model becomes invisible as soon as the point is outside of the view

modele_disparait_compress.webm

pathmapper commented 1 year ago

Thanks for these insights @ptitjano