Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Raspberry Pi 4
#9
I was able to get the OpenGL ES 3.0 book examples to work on the RasPi 4:

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/
Reply


Messages In This Thread
New Raspberry Pi 4 - by Brian Beuken - 06-24-2019, 08:29 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 07-01-2019, 05:21 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 07-02-2019, 10:03 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 07-12-2019, 12:55 PM
RE: New Raspberry Pi 4 - by jomoengineer - 07-13-2019, 01:27 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 07-13-2019, 11:28 AM
RE: New Raspberry Pi 4 - by jomoengineer - 08-14-2019, 04:24 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 08-14-2019, 09:24 AM
RE: New Raspberry Pi 4 - by jomoengineer - 09-19-2019, 10:32 PM
RE: New Raspberry Pi 4 - by Brian Beuken - 09-20-2019, 02:01 PM
RE: New Raspberry Pi 4 - by jomoengineer - 11-02-2019, 07:05 PM
RE: New Raspberry Pi 4 - by Brian Beuken - 11-03-2019, 12:38 AM
RE: New Raspberry Pi 4 - by jomoengineer - 02-12-2020, 09:00 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 02-12-2020, 09:46 AM
RE: New Raspberry Pi 4 - by Brian Beuken - 03-28-2020, 03:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)