Richgreen
Posts: 3
Joined: Fri Jun 05, 2020 8:11 pm

Open GL ES rendering goes over My Head

Sun Jun 21, 2020 5:41 pm

With a little extra time on my hands today I decided to try to get the videos for the teapot, the tiger, the triangle, etc. I've been able to get the h264 test and hello world to work, but everything else is just a mystery to me.

This is just for fun and I wouldn't expect anyone to spend any time with it, but thanks in advance for any help.

Rich Green

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Open GL ES rendering goes over My Head

Sun Jun 21, 2020 10:27 pm

It would be worthwhile finding some tutorials on OpenGL/ES. Not easy stuff to get across in forum posts.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Richgreen
Posts: 3
Joined: Fri Jun 05, 2020 8:11 pm

Re: Open GL ES rendering goes over My Head

Mon Jun 22, 2020 12:13 am

Thank you. I finally got some results that showed me why I was unable to see the pictures. The sentence "This demo application is not available on the Pi 4." answers my questions.

Once again thank you very much

Rich Green

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

Re: Open GL ES rendering goes over My Head

Mon Jun 22, 2020 12:26 am

Tested all these on Pi4

I found this the easiest place to start.
https://github.com/Blakkis/GLSL_Python

Depends on which language you prefer.
I have used C, C++, Pascal, Rust, Basic, Go, Python...

Various libraries help, I like FreeGLUT for it's primitive shapes like sphere etc
I made a simple airship with a dozen lines of code.
Had not learned rendering back then.

The sea example in BBC Basic is one of the most impressive
https://www.youtube.com/watch?v=5GPfWg0nAY4
viewtopic.php?f=34&t=238187

The mesa demos are great single file simple C demos including the Red book examples
https://github.com/freedesktop/mesa-demos

Have yet to find usable OpenGLES 3.1 compute shader rendering examples.

Web2.0 examples inside a browser can be impressive.
I use these as Pi benchmarks.
https://webglsamples.org/

Blender 2.79 and Blender for Artists 1.0 can be used for making and shading 3D stuff.
Pretty serious learning curves I have yet to climb.
I do prefer B4A, took a few minutes only to make my fav twin hull airship.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Open GL ES rendering goes over My Head

Mon Jun 22, 2020 9:29 am

Richgreen wrote:
Mon Jun 22, 2020 12:13 am
Thank you. I finally got some results that showed me why I was unable to see the pictures. The sentence "This demo application is not available on the Pi 4." answers my questions.

Once again thank you very much

Rich Green
On the Pi4 we now use a much more standard graphics stack, previously there was Pi specific stuff required. Now you can run any OpenGL code and it should just work without any Pi specific extensions. The demo apps have those extension, so don't work on the Pi4.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: Open GL ES rendering goes over My Head

Mon Jun 22, 2020 10:13 am

As James says there is now need for Pi specific versions of tutorials or examples...

For example, the examples from OpenGL Es 3.0 Programming Guide now work without modification.

https://github.com/danginsburg/opengles-book-samples/

It's a good book, but it does assume you already understand basic 3D graphiics.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

tombsar
Posts: 40
Joined: Wed May 13, 2020 12:40 am

Re: Open GL ES rendering goes over My Head

Mon Jun 22, 2020 11:57 am

PeterO wrote:
Mon Jun 22, 2020 10:13 am
As James says there is now need for Pi specific versions of tutorials or examples...
I'm sure PeterO meant to write that there is no need for pi-specific OpenGL ES tutorials.

Return to “OpenGLES”