필터 지우기
필터 지우기

How to disable WebGL and use OpenGL

조회 수: 40 (최근 30일)
Miguel Ángel Bonilla Rojas
Miguel Ángel Bonilla Rojas 2024년 3월 1일
편집: Chetan 2024년 3월 6일
I'm trying to use siteviewer for some things, but it times out and doesn't give me anything. Comparing to other PCs that I know they work I've noticed they use a different graphics rendered, OpenGL, while my system uses WebGL. I've tried using commands for changing it such as: opengl('save','software') or matlab -softwareopengl, but it doesn't work. My pc has a 3060Ti and the others don't even have a graphic card and I also tried to change nvidia graphic options but to no avail.
Is there any other form of changing it?

채택된 답변

Chetan
Chetan 2024년 3월 6일
편집: Chetan 2024년 3월 6일
It seems like you're encountering problems with `siteviewer` in MATLAB because of a WebGL and OpenGL conflict.
You can follow the following steps to fix this issue:
  • Force Software OpenGL: Add `-softwareopengl` to the MATLAB shortcut's target to default to software OpenGL.
  • Update NVIDIA Drivers: Ensure your NVIDIA drivers are current to avoid compatibility issues.
  • Address libstdc++.so.6 Incompatibility: Follow the workaround if you encounter library compatibility issues: https://www.mathworks.com/support/bugreports/1297894
  • Use MATLAB with Software OpenGL: If changing the graphics driver isn't an option, start MATLAB with from the Linux Terminal:
matlab -softwareopengl
To always start MATLAB in this mode, use the following in the MATLAB Command Window:
opengl('save','software')
To revert, use:
opengl('save','none')
If problems persist, try these workarounds:
Hardware OpenGL Renderer : Create a 'java.opts' file in MATLAB's start directory with:
-Djogl.disable.openglarbcontext=1
Painters Renderer: Start MATLAB with the `-noopengl` option from the terminal:
matlab -noopengl
For further assistance, refer to these MathWorks Documentation links:
Thanks
Chetan

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by