altella
Posts: 62
Joined: Wed Feb 13, 2013 11:58 am
Location: Bilbao, Basque Country, Spain

How to install Open GL ES 2.0

Mon Mar 11, 2013 10:32 pm

First of all, sorry for this maybe silly question...
To have OpenGl 2.0 and be able to test all the example programs, code ,etc.
Which are the packages to install to have Open GL 2.0 ES in the Raspberry Pi?.

Thank you very much in advance,

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: How to install Open GL ES 2.0

Mon Mar 11, 2013 10:50 pm

It's already there on a raspbian image. There's an example installed that uses openGL ES 2.0.

Code: Select all

cd /opt/vc/src/hello_pi
./rebuild.sh
cd hello_triangle2
./hello_triangle2.bin
and that is running Open GL ES 2.0.

altella
Posts: 62
Joined: Wed Feb 13, 2013 11:58 am
Location: Bilbao, Basque Country, Spain

Re: How to install Open GL ES 2.0

Mon Mar 11, 2013 10:59 pm

thank you for your fast response !!!
I have executed what you say, via VNC and SSH without the X's .
In both cases I obtain nothing. I can not see anything and the console cursor is busy until I hit Ctrl + C.
Is this normal?

As always, thanks a lot !

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: How to install Open GL ES 2.0

Mon Mar 11, 2013 11:43 pm

altella wrote:thank you for your fast response !!!
I have executed what you say, via VNC and SSH without the X's .
In both cases I obtain nothing. I can not see anything and the console cursor is busy until I hit Ctrl + C.
Is this normal?

As always, thanks a lot !
You won't get any opengl e2 though vnc I'm afraid (it'd rendered by the GPU and the ARM/X doesn't have any involvement).
You need to look at a directly connected TV.

altella
Posts: 62
Joined: Wed Feb 13, 2013 11:58 am
Location: Bilbao, Basque Country, Spain

Re: How to install Open GL ES 2.0

Mon Mar 25, 2013 1:42 pm

Hello again after some days....
I finally managed to get a monitor and a HDMI to VGA converter.
I have two more simple questions:
1.- How much memory is recommended to be assigned to the GPU? I would like to modify it usong raspi-config. The default, I think is 64MB.
2.- I know OpenGL ES is in Raspbian, but I usually use cross compiling tools and Eclpse in my box with Xubuntu.
Which files should I hace to take from Raspbian to be able to program Open GL ES in the desktop PC and the execute it all in the Pi?

Thank you all very much in advance ,

Regards,

Alberto

Return to “OpenGLES”