User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

OpenGL tests

Tue Dec 18, 2018 11:58 am

I have been using Gentoo64 on Pi3B+'s which is using Eric's OpenGL driver.
Most of the Mesa3D demos seem to run.
ftp://ftp.freedesktop.org/pub/mesa/demos/

Comparing Browsers running WebGL was interesting.
Gentoo64 is now good enough to run Firefox and Chromium at the same time.
viewtopic.php?f=63&t=208314&start=250
Benchmarking Browsers does not benchmark OpenGL.

The Mesa demos come with an objviewer :D
Once the missing alpine skybox images are googled and found you end up with a rotating bunny image floating in mountains.
Celeron core duo 60fps, Gentoo64 25fps.

Swapping the GreatLakesBiplaneHP for the bunny starts to chug the PC - 37fps.
But it does horrible things to Gentoo64, fell over the bleeding edge of current Pi capability ;)
So too many vertices 142305, triangles 283266... is the limit 65K?

Testing utilities :D
https://www.mesa3d.org/utilities.html
llvmpipe - uses LLVM for x86 JIT code generation and is multi-threaded
https://www.mesa3d.org/systems.html
I think I saw something about LLVM JIT compiling in the WebGL stuff for Chromium, is that one of the tricks used for WebGL speed on x86?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Sat Dec 29, 2018 8:50 am

Trying to test OpenGL on Raspbian.

Got latest 4.14 lite desktop version of Raspbian and glxgears was very jittery.
Thought I would try 4.19 kernel, did sudo BRANCH=next raspi-update
Enabled OpenGL via raspi-config after it booted, rebooted and got black screen on boot.

Is there a new trick for OpenGL driver enabling or does raspi-config break it?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Mon Jul 22, 2019 9:07 am

Some missing dependencies but lots of the mesa demos are now compiling and working on a Pi4.

The ipers demo is pushing the Pi4.
Think I have found a new benchmark/stress test.
Wonder how it compares to the 3B+?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Sat Jul 27, 2019 11:54 am

A bunch of errors making the objviewer :(
Was hoping it would just work so I could benchmark this Pi4.
With the 3B+ at 25fps I was hoping the Pi4 would do 60fps.

Can I port the objviewer code to Pascal?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Sat Jul 27, 2019 12:13 pm

The demo just worked on a Pi4 :o
http://www.geeks3d.com/geexlab/downloads/

There is enough here to keep me busy for a long time :D
The shadertoy demo slows to 31fps at my full screen window 1280 x 960
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Sun Jul 28, 2019 8:32 am

Wings3D just installed and works.
It could import the mesa demo obj viewer bunny ;)

Time to start modelling stuff for game content.
This Pi4 get more useful everyday.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3641
Joined: Wed Aug 28, 2013 3:31 am

Re: OpenGL tests

Sat Aug 31, 2019 10:59 am

Openscenegraph is working on Gentoo64 :D
This is the oscviewer running 60fps, the fire and smoke is animated.

Openscenegraph is a prerequisite for Flightgear.
Flightgear is becoming a real pain to compile on an Gentoo64 aarch64 Pi4.
FG is probably the biggest stress test I can think of for the Pi4.

But there are other uses for Openscenegraph.
http://www.openscenegraph.org/index.php ... /use-cases

Unity and Unreal etc are used for stuff like this, not just games.
But they don't run on Pi's.

There is a Vulkanscenegraph so I imagine learning Openscenegraph will help with learning Vulkanscenegraph if it one day makes it to Pi's.
More learning on Pi's.
Attachments
Openscenegraph_2019-08-31_11-33-43.png
Openscenegraph_2019-08-31_11-33-43.png (99.97 KiB) Viewed 789 times
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Graphics programming”