Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [opengles]

OpenGL ES is a cross-platform API for 2D and 3D graphics on embedded systems. It has different subset profiles of desktop OpenGL for fixed function hardware and programmable hardware.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

OpenGL direct to framebuffer on Pi Zero 2 (no Qt, no X11)?

I spent the past while trying to google for an answer to this, but I keep running into Qt-related solutions. I’d like to write some OpenGL ES code to output to a connected HDMI display. It should fill ...
Rick's user avatar
  • 139
1 vote
0 answers
55 views

How do I directly process live raw camera data on the GPU without it passing though the CPU?

My understanding of the how a Raspberry Pi camera attached to the CSI port of the Pi works is that the raw data from it ends up directly in the GPU where it is slightly processed and compressed before ...
Curtis's user avatar
  • 11
0 votes
0 answers
57 views

Chiaki on a Zero 2 failing on an egl error

I installed Chiaki on the latest RaspberryOS, using apt install, when trying to launch it, I'm getting an EGL error: Could not initialize egl display Every search I did found only developers ...
Didi Kohen's user avatar
0 votes
0 answers
194 views

Export/import dmabuf

I wanted to ask do I need extra modifications for kernel I am running (it's a Ubuntu 22 desktop). Essentially, I have logic that exports and import (in another process) dmabuf of a opengl texture. ...
hedgehog_o_tail's user avatar
0 votes
1 answer
86 views

Glxgears 1 FPS over VNC with RealVNC - Raspberry Pi 4 B

I have a Raspberry Pi 4B and over VNC, glxgears will only give me 1 FPS. But over regular HDMI cable to a screen, then glxgears works like a charm. So is there any problem with the VNC server inside ...
euraad's user avatar
  • 105
1 vote
2 answers
798 views

X server unable to launch using vc4-kms-v3d GL driver on a 8gb Pi4b+

I've been encountering some tearing issues in kodi and so chose to switch to the vc4-kms-v3d driver in my boot config. The performance in now significantly improved, however I also occasionally need ...
Gaffen's user avatar
  • 11
1 vote
0 answers
792 views

OpenGL on a 64-bit Raspberry Pi 4 without X

I wrote a 3D visualization program in C++ called ahrs-visualizer back in 2012 for a 32-bit Raspberry Pi, basing my code on the official OpenGL example code that came with Raspbian. It does not ...
David Grayson's user avatar
1 vote
1 answer
722 views

SOLVED Redshift on Raspberry Pi 4

Is there any way to use Redshift on Raspberry Pi 4? I used redshift -P -O 3700 -g 0.7 -b 0.7 and it only works from time to time. Some times after restarting it doesnt filter the blue light anymore. ...
dawnslayer's user avatar
0 votes
0 answers
1k views

OpenGL experimental missing

I'm using Raspberry Pi 4 and the OpenGL experimental is missing from raspi-config I tried sudo rpi-update sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install raspi-gpio sudo apt-get ...
dawnslayer's user avatar
0 votes
1 answer
843 views

How to increase the frame rate in Stellarium

I have a freshly installed Raspberry Pi OS on my Raspberry Pi 3 Model B. According to cat /proc/device-tree/model, the OS name is "Raspbian GNU/Linux 10 (buster)". I have installed ...
Flux's user avatar
  • 279
1 vote
1 answer
2k views

Raspberry pi screen rotation with OpenGL

As titled, in raspianLite, if I enable OpenGL (fake KMS) I'm unable to rotate the screen using the /boot/config.txt file i tried: display_hdmi_rotate=1 and display_rotate=1 with no success, any ...
Luigi F's user avatar
  • 11
1 vote
1 answer
189 views

Headless Rpi 4 reboots when changing resolution

I hope someone can help me, I've bought my first Rpi a few months ago and I haven't been able to use it at all because of this issue. Specs: Raspberry Pi 4 - 4GB OS: Raspberry Pi OS with desktop Fully ...
Psycoguana's user avatar
1 vote
0 answers
78 views

Fast way to copy from GPU to CPU

I have made some image processing shaders to reduce the CPU load. But the slow GPU to CPU data copy is something I didn't expect. (It takes around a second to copy a single image) As far as I know, ...
Chanoh Park's user avatar
0 votes
1 answer
2k views

I would like to install blender on my raspberry pi4 [closed]

I am trying to install blender 2.79 from the software packages on my new raspberry pi4. It won’t do it. How do I install and run blender?
Shawn Kaster's user avatar
1 vote
0 answers
796 views

Chromium Embedded and GLESv2

I'm trying to use an app compiled with Chromium Embedded Framework (using the pre-built ARM binaries hosted by Spotify; I don't want to rebuild it myself). I'm having trouble getting hardware ...
Miral's user avatar
  • 211
1 vote
0 answers
73 views

glGenerateMipmap crashes on Raspberry Pi 3

I'm testing a C++ program made with GLFW and it crashes with a segmentation fault on Pi 3 but not on Pi 4. The reason of the crash is the call to glGenerateMipmap(GL_TEXTURE_2D). Systems tested: ...
Ariel Malka's user avatar
0 votes
2 answers
136 views

Capable of building Mesa 20.1 but unable to install

I have successfully built Mesa 20.1 on Raspberry Pi OS 64bit, using burtoogle's patch (https://www.raspberrypi.org/forums/viewtopic.php?f=67&t=276207#p1681901) I followed the instructions from ...
Ariel Malka's user avatar
3 votes
2 answers
3k views

Raspberry Pi 4 GPU math

So there is support for Open GL ES 3.1, but how can I use it on the Raspberry Pi 4? Is there any other way to use the GPU for calculations such as fft and logarithm?
Hneggbrand's user avatar
2 votes
1 answer
2k views

libGL error: failed to load driver: vc4

I'm cross compiling an OpenGL application that I am then trying to run on an rpi4 with Ubuntu 20.04, but I am getting the following error: libGL error: MESA-LOADER: failed to open vc4 (search paths /...
mangafaua's user avatar
  • 121
2 votes
0 answers
856 views

Proper GL Driver configuration on RPi 4

Can someone confirm what I should do on a raspberry pi 4 to access the new DRM based opengl drivers? I expected to see a new option in raspi-config for it, but instead I only see the legacy and fake ...
zacaj's user avatar
  • 121
1 vote
1 answer
234 views

OpenGL 2 slowness

The Raspberry Pi 3b+ runs my OpenGL 2.1 program very slowly, with a frame rate of around 2 fps. How is this possible, when Python/Pyglet can render (using OpenGL, I suppose) much faster than this? And ...
user96931's user avatar
  • 739
2 votes
1 answer
571 views

Getting OpenGL ES Framebuffer back to CPU Memory

I've started learning how to use OpenGL ES, and am trying to do some general purpose computing using the Pi's GPU. I've got it mostly working, but I'm hung up on the last step: getting a framebuffer ...
Henry Bergin's user avatar
0 votes
0 answers
2k views

How to play 720p/1080p videos on Raspberry Pi 3 A+

I bought a Raspberry Pi 3 A+ hoping, among other things, to play HD videos. I have flashed Raspbian Buster on a 64GB microSD card, extended the FS, and, generally, the Pi seems to work fine with light ...
Phoenix87's user avatar
  • 113
1 vote
2 answers
331 views

Can't OpenGL render points and lines on RPi4 (specifically)

How to get OpenGL.glDrawElements(GL_POINTS, ..) (or GL_LINE_LOOP, GL_LINE_STRIP, GL_LINES) to work with the latest Raspberry Pi? I maintain the pi3d module and, though it works on windows, linux and ...
paddyg's user avatar
  • 325
2 votes
0 answers
1k views

Latest Qt5 does not provide EGLFS during cross-compilation

Some time ago I set up a Linux host to cross-compile Qt5. I used this configure command: ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/opt/tools/arm-...
Mark's user avatar
  • 513
1 vote
1 answer
306 views

Qt Userland raspistill/racpicam integration - Unable to find an X11 visual which matches EGL config

I am developing simple gui app for a client on Raspberry pi running Ubuntu(Mate) 16.04 using Qt 5.5.1 and OpenCV for some face recognition (all C++) using 5MP pi camera. The framerate/CPU usage ...
sith's user avatar
  • 223
0 votes
0 answers
317 views

Pi 3 Model B+ can't boot after changing vRAM

I just got the device (Pi 3 Model B+) and am a total beginner. I'm using NOOB/Raspbian. Every time I try to change the video ram (either through the GUI or the config.txt) the device is unable to ...
TooOldToStart123's user avatar
1 vote
0 answers
172 views

Slideshow program to use with Raspbian and OpenGL?

I have a Pi 3 Model B+ which I wanted to use as a device to show a slideshow for images on a screen. I'm using Raspbian and was happy with FEH, but since another program ("redshift", a blue light ...
TooOldToStart's user avatar
0 votes
0 answers
71 views

Which video driver is faster, more stable? Which api makes it easier to write efficient code? Which one should I use on Raspberry 1 B+?

OpenSource Full KMS VC4 + Opengl 2.0 + openbox/some lighter than openbox window manager/lack of thereof + x.org Broadcom VC4 + Opengles 2.0 + native(no x.org) Can I use GLFW library with both? ...
Farelka kek's user avatar
0 votes
1 answer
1k views

Omxplayer doesn't play videos when OpenGL enabled

Today I setup my new RPI3 B+ with raspbian stretch as a desktop (OpenGL enabled 128 mem split). I use RPIs for some time as servers but not as desktop. I tried to play video (with avc codec) with ...
W. Smith's user avatar
0 votes
0 answers
782 views

VC4 — GL setup not working

I am trying to run chromium as weston-client using ArchArm on a RPI 3+ b, but I am unable to make it use GL. Setup: Basic »AArch64« installation as described here Package Installation: wayland ...
philipp's user avatar
  • 191
1 vote
1 answer
3k views

(Error trying to run qjackctl) libEGL warning: DRI2: failed to authenticate qt5ct: using qt5ct plugin

Running Raspbian installed with NOOBS. qjackctl is installed with all its dependencies using Synaptic. Just trying to run Guitarix on my Pi3 B+. I tried following the instructions in this solution, ...
josh's user avatar
  • 11
0 votes
1 answer
2k views

Confusion regarding getting started with OpenGL ES 2 on Raspberry Pi 3 B+

I am developing a 3D application for RPi 3 B+ using OpenGL ES. As I know there are plenty of tutorials and books but they are mostly for either OpenGL-ES 3.0, Android or iOS. I far as I know RPi 3 ...
Ravi Mali's user avatar
  • 144
1 vote
0 answers
33 views

Why do fbedev OGLES Draw Calls takes 30+us each?

When operating with the framebuffer OpenGL Drivers on my HTC Vive, performance is incredibly good on my Raspberry Pi 3B+ EXCEPT that every single draw call takes anywhere from 30-50us, regardless of ...
Charles Lohr's user avatar
1 vote
0 answers
167 views

Raspberry Pi processing power [closed]

I've never worked with Raspberry Pi's, but I want to make some cute interactive shaders to put around the house and I was wondering if I could use a Raspberry Pi. I just wanted to know what one is ...
inzombiak's user avatar
0 votes
2 answers
2k views

glxgears do not work on my brand new Raspberry Pi 3, is that expected?

I got a Raspberry Pi 3 yesterday and installed it with the default Raspbian OS (a.k.a. Debian) and tested the glxgears program to see how good (or bad) the OpenGL/3D support was. For some reasons, I ...
Alexis Wilke's user avatar
1 vote
1 answer
5k views

Where is -lEGL -lGLESv2

I'm trying to install an OpenVG library, but when I start to make it I get the error. ... gcc -L/opt/vc/lib -lEGL -lGLESv2 -ljpeg -shared -o libshapes.so oglinit.o libshapes.o /usr/bin/ld: cannot ...
qwerty asdfgh's user avatar
0 votes
1 answer
1k views

Slow pixel drawing with SDL2 & experimental OpenGL driver

The code bellow just polling mouse events and draw lines between the previous and last mouse coordinates in case of left mouse button pressed down, nothing special and its using only fast integer ...
john_who_is_doe's user avatar
4 votes
1 answer
494 views

GTK Warnings and libGL errors when using x11-Forwarding on SSH

I'm having issues when working on my RaspberryPi via SSH on MobaXterm that I can't resolve by myself. Appearantly there are some driver issues when using SSH and running programs that require the ...
HackXIt's user avatar
  • 153
2 votes
1 answer
9k views

Fixing "failed to add service - already in use?" error programmatically

This is related to an earlier question "eglGetDisplay() fails on RaspBerry 3". On Raspbian Stretch with the full OpenGL driver, running hello_triangle or other GLES examples under /opt/vc/src/hello_pi/...
jdonald's user avatar
  • 2,914
5 votes
1 answer
17k views

Running Modern Opengl on raspberry pi

Is there any way to "enable" modern OpenGL on the Raspberry Pi (specifically the Raspberry Pi3)? I would like to use C++ instead of Python, since I'm a lot more familiar with it. I know there is a ...
user avatar
0 votes
1 answer
216 views

bcm_host_init() fails after using execl

I have a EGL app. After downloading a executable update, I close the app and execute a execl. The new instance crashes when calling bcm_host_init(); I checked, and the call to bcm_host_deinit(); is ...
diego.martinez's user avatar
5 votes
1 answer
2k views

eglGetDisplay failed to add service on the raspberry pi 3

I tried to follow this tutorial. But when I execute it I have this error : > * failed to add service - already in use ? The memory split is equal to 192Mb and the Pi is connected by HDMI to a ...
Vipe's user avatar
  • 51
1 vote
1 answer
4k views

Display goes out of Range

We have a Raspberry Pi 2 running Rasbian Jessie with the OpenGL driver. It is connected to a HDMI to DisplayPort Adaptor and an odd size touch screen display (1280x800). We are running lightdm and ...
tl8's user avatar
  • 111
1 vote
0 answers
714 views

With the new openGL driver, can I make a resolution change permanent?

I am using the new openGL driver to run a WebGL app. It runs a lot smoother if I change resolution to 720p, which I can do with xrandr -s 1280x720 This works perfect, but resets after reboot. I ...
Panda's user avatar
  • 31
1 vote
0 answers
205 views

Opengl use of stencil critically drops fps

I'm developing an all purpose graphic engine for the raspberry Pi and recently I added stencil testing to clip some excess polygons. While the engine normally runs 18216 faces at 60fps, when I set ...
diego.martinez's user avatar
1 vote
1 answer
842 views

WebGL via remote desktop in latest Jessie on Raspberry Pi 3 [duplicate]

Hello Raspberry Pi enthusiasts! I have a problem, I can't seem to get a webgl context running on a chromium browser instance using latest Jessie on a Raspberry pi 3. I have enabled experimental GL ...
GimmeWebGLContext's user avatar
2 votes
2 answers
5k views

Fatal Error: GLES2/gl2.h: No such file or directory

I'm trying to install Urho3D on RPi 3. (GPU = 768 MB) I installed all the essential dependencies. All the steps went fine. Until this error which occurred during the final make step: [ 56%] Building ...
Omid1989's user avatar
  • 662
3 votes
1 answer
977 views

Minimal Kiosk GUI on PI

I'm trying to work out how to build a minimal OpenGL application on Raspian. Once complete, I don't require command line or Window Manager access (outwith the Application itself) however will require ...
Wren's user avatar
  • 131
2 votes
1 answer
6k views

Editing the settings that are available through raspi-config without using raspi-config

I have a Pi 2 and decided to check the new experimental OpenGL driver available in the latest version of Raspbian Jessie. Alas! the thing is really buggy. After enabling it my Pi, (through raspi-...
rbaleksandar's user avatar