minorua / Qgis2threejs

3D map visualization and web export plugin for QGIS
http://minorua.github.io/Qgis2threejs/docs/
497 stars 91 forks source link

Compatibility issue with QGIS 3D view. #222

Open AgAssist opened 4 years ago

AgAssist commented 4 years ago

I have an issue with qgis2threejs running in QGIS 3.10.7 on Windows 10

When I open the qgis2threejs panel I get the error message below:

"No 3D objects were rendered? There is a compatibility issue with QGIS 3D view. You need to close QGIS 3D view(s) and restart QGIS to use this preview."

I have uninstalled and re-installed both the QGIS and the qgis2threejs plugin.

In the panel menu I don't seem to have any QGIS 3D views open.

Any help wouild be appreciated.

bro-geo commented 3 years ago

I have the same issue. For some reason you cant open QGIS 3D view before open the qgis2threejs plugin. It usually work when I remove all layers from the project, open and close both (QGIS 3D view and qgis2threejs plugin) and reset QGIS.

matself commented 3 years ago

This plugin seems to be broken forever. No combination of open/close the native 3D# viewer, QGIS version (even a new install) will bring forth any preview window. Same warning message as above. Windows 10 pro, QGIS 3.14.16 Here is the start of the log file:

three.min.js (42): THREE.WebGLRenderer: WEBGL_depth_texture extension not supported.
three.min.js (42): THREE.WebGLRenderer: ANGLE_instanced_arrays extension not supported.
three.min.js (82): THREE.WebGLProgram: shader error: 
three.min.js (124): WebGL: INVALID_OPERATION: useProgram: program not valid
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (82): THREE.WebGLProgram: shader error: 
three.min.js (124): WebGL: INVALID_OPERATION: useProgram: program not valid
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (124): WebGL: INVALID_OPERATION: useProgram: program not valid
three.min.js (45): WebGL: INVALID_OPERATION: drawElements: attempt to access out of bounds arrays
three.min.js (124): WebGL: INVALID_OPERATION: useProgram: program not valid

and here a Python warning that seems to have to do with this:

2020-10-02T00:48:02     WARNING    warning:C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py:792: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
              mod = _builtin_import(name, globals, locals, fromlist, level)

             traceback: File "", line 1, in 
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 354, in startPlugin
              if not _startPlugin(packageName):
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
              plugins[packageName] = package.classFactory(iface)
              File "C:/Users/Mats/AppData/Roaming/QGIS/QGIS3\profiles\3js/python/plugins\Qgis2threejs\__init__.py", line 27, in classFactory
              from .qgis2threejs import Qgis2threejs
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 792, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "C:/Users/Mats/AppData/Roaming/QGIS/QGIS3\profiles\3js/python/plugins\Qgis2threejs\qgis2threejs.py", line 28, in 
              from .exportsettings import ExportSettings
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 792, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "C:/Users/Mats/AppData/Roaming/QGIS/QGIS3\profiles\3js/python/plugins\Qgis2threejs\exportsettings.py", line 31, in 
              from .qgis2threejscore import MapTo3D, GDALDEMProvider, FlatDEMProvider, calculateDEMSize
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 792, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "C:/Users/Mats/AppData/Roaming/QGIS/QGIS3\profiles\3js/python/plugins\Qgis2threejs\qgis2threejscore.py", line 25, in 
              from osgeo import gdal
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 792, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "C:\apps\QGIS3.14\apps\Python37\lib\site-packages\osgeo\__init__.py", line 41, in 
              _gdal = swig_import_helper()
              File "C:\apps\QGIS3.14\apps\Python37\lib\site-packages\osgeo\__init__.py", line 15, in swig_import_helper
              import imp
              File "C:/apps/QGIS3.14/apps/qgis/./python\qgis\utils.py", line 792, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "", line 983, in _find_and_load
              File "", line 967, in _find_and_load_unlocked
              File "", line 677, in _load_unlocked
              File "", line 728, in exec_module
              File "", line 219, in _call_with_frames_removed
              File "C:\apps\QGIS3.14\apps\Python37\lib\imp.py", line 33, in 
              DeprecationWarning, stacklevel=2)
VlamirNogueira commented 3 years ago

AGAssist, Conseguiu resolver?

HereticToXa commented 3 years ago

Seems like it's hardware incompatibility. I've just checked plugin on two PCs in my office and one PC works fine with qgis2threejs on 3.10 version of QGIS. And on other PC with the same version of QGIS and Windows this plugin don't work.

pduchesne commented 3 years ago

same issue here, with OSX 10.15.2 .

Mouse2 commented 2 years ago

Unfortunately I have the same symptoms in QGIS 3.18. Seems independent of whether 3D Map View had been opened in session, or a 3D map view is present in layers panel.

Is this issue the same as #147?

Kind Regards

Mouse2

System Details Windows 7, fully updated apart from .net 4.51 and updated to same. Currently using (integrated) Intel HD graphics 2000 - as my AMD card is causing BSODs. Open GL version 3.1.0, Direct X 10.1 Driver version: 9.17.10.4229

Mykemccoy commented 10 months ago

I have downloaded various versions of QGIS (3.26 and the latest version 3.32) and Qgis2threejs but the plugin still seem to be having compatibility issues as I get the same error message. Running a Windows10 by the way.

iamrblc commented 3 months ago

I can do nothing but confirm the previous comments: no 3D view open anywhere, yet the message is the same "No 3D objects were rendered? There is a compatibility issue with QGIS 3D view. You need to close QGIS 3D view(s) and restart QGIS to use this preview."

QGIS version 3.36.1, Plugin version 2.7.3 MacOS 14.4.1

jlpoolen commented 2 months ago

Confirming the problem occurs in Debian Linux. The current released version of QGIS is 3.36.1.

zHBEN commented 2 months ago

macos 14.2.1 QGIS 版本 3.36.1 No 3D objects were rendered? There is a compatibility issue with QGIS 3D ... 有没有人知道怎么做?

xlfrglrt1 commented 2 months ago

Exactly the same problem and error message for me too, using the latest installation of version 3.36. It's a shame because I was using this plugin for a few years on the older versions of QGIS and I really liked it. I hope there's a fix on the way, although it seems this problem has been occurring with users for a while now.

xlfrglrt1 commented 2 months ago

I decided to install an older version of QGIS so I can use the plugin again.

AbdelghaniTamort commented 1 month ago

I decided to install an older version of QGIS so I can use the plugin again.

Which version worked for you ?

dturner commented 2 weeks ago

Same problem here. Reverting to version 3.22 solved the issue for me. Downloaded it from https://download.qgis.org/downloads/macos/pr/qgis_pr_final-3_22_2_20211217_134828.dmg

zHBEN commented 2 weeks ago

Thank you, I will give it a try

赵保犇 @.***

 

------------------ 原始邮件 ------------------ 发件人: "minorua/Qgis2threejs" @.>; 发送时间: 2024年6月28日(星期五) 凌晨4:19 @.>; @.**@.>; 主题: Re: [minorua/Qgis2threejs] Compatibility issue with QGIS 3D view. (#222)

Same problem here. Reverting to version 3.22 solved the issue for me. Downloaded it from https://download.qgis.org/downloads/macos/pr/qgis_pr_final-3_22_2_20211217_134828.dmg

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>