09-19-2019, 10:32 PM
(This post was last modified: 09-19-2019, 11:01 PM by jomoengineer.)
I was able to get the OpenGL ES 3.0 book examples to work on the RasPi 4:
First, install the mesa libs:
Then, download the code from Dan Ginsburg's github:
Then cd into the downloaded code
I found I had to set the following Environment variables to get the code to build:
Then build the code:
From here you can run one of the examples:
Another cool item to test the Shader capability of the RasPi 4 is to down load and run ShaderToy from the following:
https://lb.raspberrypi.org/forums/viewto...p?t=247036
There are 100 shader examples that you can run through by pressing the "Esc" key.
Okay, one more. Due to a conversation I had on another forum regarding a new BeagleBoard AI board, I went ahead and installed Quake 3 on the RasPi 4 following the instructions from the link below. It seems to run pretty smooth on this board and I am quite impressed.
https://raspberrytips.com/install-play-quake-3-raspberry-pi/
First, install the mesa libs:
Code:
sudo apt-get update
sudo apt-get -y install mesa-utils
Then, download the code from Dan Ginsburg's github:
Code:
git clone https://github.com/danginsburg/opengles3-book.git
Then cd into the downloaded code
Code:
cd opengles3-book/
I found I had to set the following Environment variables to get the code to build:
Code:
set OPENGLES3_LIBRARY="/opt/vc/include/GLES3"
set EGL_LIBRARY="/opt/vc/include/EGL"
Then build the code:
Code:
cmake .
make
From here you can run one of the examples:
Code:
cd Chapter_2/Hello_Triangle/
./Hello_Triangle
Another cool item to test the Shader capability of the RasPi 4 is to down load and run ShaderToy from the following:
https://lb.raspberrypi.org/forums/viewto...p?t=247036
There are 100 shader examples that you can run through by pressing the "Esc" key.
Okay, one more. Due to a conversation I had on another forum regarding a new BeagleBoard AI board, I went ahead and installed Quake 3 on the RasPi 4 following the instructions from the link below. It seems to run pretty smooth on this board and I am quite impressed.
https://raspberrytips.com/install-play-quake-3-raspberry-pi/