MATLAB Answers

why always said: An error occurred while drawing the scene? need help!

149 views (last 30 days)
matlab error: An error occurred while drawing the scene


Show 1 older comment
Mike Garrity
Mike Garrity on 4 Feb 2016
That message generally means that something happened on the thread that's driving the graphics card. It should be followed by some additional details about what exactly happened. For example, the graphics card may have run out of memory.
The first thing I would do is this:
opengl info
This will tell you what type of graphics card you have, and what version of the driver you have installed.
Another option is this:
opengl software
That will tell MATLAB to stop trying to use the graphics card, and use a software version of the OpenGL library.
James Tuttle
James Tuttle on 8 May 2020
I tried that and got this message back in the command:
>> opengl software
Error using opengl
Switching to software OpenGL rendering is not supported on the Mac platform.
What else can I do?

Sign in to comment.

Accepted Answer

Subin Kuttappan Stellal Mary
The issue might be due to using hardware OpenGL. This occurs since Intel HD 2000 hardware and any of its drivers are not supported with MATLAB 8.4(R2014b) or later.
The issue does not occur in MATLAB R2014a or other previous releases because those makes use of the previous graphics engine HG1 which supported the Intel HD 2000 hardware. However, from MATLAB 8.4(R2014b), a new graphics engine HG2 was unveiled and this does not support Intel HD 2000 hardware for any of its drivers.
As Mike suggested, you can try :
opengl software

More Answers (0)

Translated by