11

I have a problem with WebGL on Raspberry Pi 3's Chromium browser. I did the settings required but nothing happened.

Here is my information

  • Device : Raspberry Pi 3
  • OS : Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux(Raspian Stretch with desktop, i also try lite)
  • Browser : chromium-browser version => Chromium 60.0.3112.89 Built on Ubuntu 14.04, running on Raspbian 9.3
  • Graphics Driver : vc4-kms-v3d

Here are the get.webgl.org results:

get.webgl.org results

Here is the threejs.org example ("webgl_animation_cloth") results:

threejs.org example "webgl_animation_cloth" results

I tested the same websites on firefox iceweasel.
They work as shown by these screenshots:

get.webgl.org results(iceweasel)

threejs.org example "webgl_animation_cloth" results(iceweasel)

I tried several settings on chrome://flags but nothing is changed

When I start chromium-browser from the command line, I see

libgl error: MESA-LOADER: failed to retrieve device information

but @eric-anholt say this should not have important effects.

Simon B.
  • 131
  • 4
Mehmet Bayrak
  • 123
  • 1
  • 1
  • 9

3 Answers3

8

Okay so I found a solution here: https://www.raspberrypi.org/forums/viewtopic.php?t=191087

  1. use raspi-config to enable OpenGL (Full KMS)
  2. remove "--disable-gpu-compositing'' from /etc/chromium-browser/customizations/00-rpi-var

is all you need to do to get the https://get.webgl.org cube spinning.

Works for me!

JoeyCK
  • 708
  • 1
  • 5
  • 10
2

Seems like your not the only one with this problem. You might wanna check your chrome://flash page , and see if you are using any drivers that you shouldn't. Test and check each driver accordingly for function. Afterwards, uninstall then reinstall chromium to see if anything has changed:

sudo apt remove chromium-browser
rm -rf ~/.cache/chromium
rm -rf ~/.config/chromium
sudo rm -rf /etc/chromium-browser

If this solution doesn't work...

Most people report the issue to do with their graphics card, you can see this issue by going to chrome://gpu/ and seeing if hardware acceleration is enabled for WebGL. If it is not, this likely because chromium has blacklisted the RPi's GPU; which is why you are getting the following prompt

**failed to retrieve device information**

because your Pi's GPU has been blacklisted. You will have to find a way to get Chromium to start while ignoring the blacklist. I do know that for Google Chrome the command is

google-chrome --enable-webgl --ignore-gpu-blacklist

So you might wanna try something similar for Chromium.

In the meanwhile, use Firefox if you can, and check the link here discussing blacklists on WebGL, you may also want to report this as a bug to the developers.

----UPDATE----

The following command should fix your problem:

chromium-browser --enable-webgl --ignore-gpu-blacklist
Aden
  • 80
  • 8
1

I found that the following works for "Raspbian GNU/Linux 9 (stretch)": To find out which version you have type "cat /etc/os-release" in a terminal.

  1. Console: sudo raspi-config Under "7 Advanced Options" / "A7 GL Driver" pick "G2 GL (Fake KMS)"

  2. Desktop: Preferences / Add Remove Software search for "Chrome" and pick "WebDriver driver for the Chromium Browser", click "OK"

A-J-Bauer
  • 218
  • 1
  • 5