Wiki

Implementing OPENGL ES on RPI 4

Brief Background:

OpenGL is a programming library for writing interactive 3D applications.OpenGL ES is a cross-platform API for rendering advanced 2D and 3D graphics on embedded and mobile systems - including consoles, phones, appliances and vehicles. It consists of a well-defined subset of desktop OpenGL suitable for low-power devices, and provides a flexible and powerful interface between software and graphics acceleration hardware. Raspberry pi 4 provides OpenGL ES version 3.2 support.

1)Running OpenGL ES on RPI:

The program was run by simply installing the mesa-util library.Mesa is an open source 3D computer graphics library that provides a generic OpenGL implementation for rendering three-dimensional graphics on multiple platforms.I ran glxgears which is a GLX demo that draws three rotating gears, and prints out frame rate information to stdout.

Gears Image Implementation

2)Implementing OPENGL ES on RPI:

Firstly I installed the OPENGL using sudo apt-get install freeglut3 and sudo apt-get install greeglut3-dev. FreeGLUT is an open-source alternative to the OpenGL Utility Toolkit library. GLUT allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms. I ran the two programs based on sample examples from the Khronos Group.

a) https://drive.google.com/drive/u/0/my-drive

b) https://drive.google.com/drive/u/0/my-drive

Working Video of the following example : https://www.youtube.com/watch?v=mo7RZeBdWJw