
Re: Processing 2.0a5 + OpenGL/ES support
wireman wrote:
I'm trying to get Processing working on a
Raspberry Piand was forwarded to this post. I downloaded your code and I'm very impressed that it works despite it not being the target platform, although I've not tested it completely.
I'm particularly interested in the OpenGL/ES stuff for a project I'm keen to move to the Raspberry Pi and am interested in your opinions regarding optimisations for the RPi hardware. Supposedly the GPU is quite powerful and it would be great to be able to use that and spare the CPU, which is relatively low spec.
This discussion would be better to be hosted on the raspberry pi website. In short Processing and JogAmp JOGL 2 currently work on the Pi using the mesa libGL/libEGL software rendering only. By default processing and JogAmp JOGL 2 require a GLES driver with full xorg support like on the TrimSlice in order to work using hardware acceleration out of the box. You will need to implement a new Pi specific "
NEWT" driver inside JogAmp that support the Broadcom libEGL flavor, actually I am working on this NEWT driver part, OR wait untill Broadcom adds full xorg support to their drivers.
I try to maintain a list of currently supported GLES drivers on the JogAmp wiki:
Is my OpenGL ES driver supported by JogAmp? - OpenGL ES Driver compatibility matrix. You can help me complete this list by running the following on your board:
Code:
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
sh ./etc/test_dbg.sh & sh ./etc/test.sh
and send me the generated test.log and test_dbg.log files.
wireman wrote:
Finally, do you have instructions on how to build the latest processing alpha with GLES support?
The following lines of code should get the latest processing 2.0 alpha 6 running with GLES support on a TrimSlice. This will insert the latest JogAmp JOGL 2 rc8 release with pre-builtin ARM support into the processing modes/java/libraries/opengl folder :
Code:
wget http://processing.googlecode.com/files/processing-2.0a6-linux.tgz
tar zxvf processing-2.0a6-linux.tgz
cd processing-2.0a6/modes/java/libraries/opengl
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
mv jogamp-all-platforms/jar/*.jar library
cd ../../../..
mv java java-x86
./processing
If you want to build processing from source then simply follow the build instructions at:
http://code.google.com/p/processing/wik ... structions you do not need to add any GLES specific bits to the codebase since the latest processing sources already support it, also all GLES driver specific parts used by processing is handled inside JogAmp JOGL 2.