View unanswered posts | View active topics It is currently Thu Oct 23, 2014 4:28 pm



Reply to topic  [ 10 posts ] 
 Processing 2.0a5 + OpenGL/ES support 
Author Message

Joined: Thu Aug 11, 2011 10:04 pm
Posts: 46
Post Processing 2.0a5 + OpenGL/ES support
http://processing.org
Processing is an open source programming language and environment for people who want to create images, animations, and interactions. Initially developed to serve as a software sketchbook and to teach fundamentals of computer programming within a visual context

I have helped the processing team to iron out OpenGL/ES bugs and have now compiled a preview build of processing-2.0a5 with working GLES2 support.
This version uses the nvidia-tegra beta opengl-es drivers out of the box for all "P3D" sketches.
The opengl-es support are based on JogAmp JOGL 2.0rc6+git.

Installation:
Quote:
sudo apt-get install openjdk-6-jdk p7zip-full
wget http://labb.zafena.se/processing/processing-2.0a5+svn-GLES2.7z
7z x processing-2.0a5+svn-GLES2.7z
cd processing-2.0a5+svn-GLES2
./processing


known limitations:
video, serial and android mode are not fully included in this preview build, mainly to reduce download size.

Includes a lot of nice examples and documentation.
Cheers
Xerxes


Wed Mar 28, 2012 10:19 pm
Profile

Joined: Wed Jun 06, 2012 3:07 pm
Posts: 1
Post Re: Processing 2.0a5 + OpenGL/ES support
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.

Finally, do you have instructions on how to build the latest processing alpha with GLES support?

Thanks very much for providing this build of processing.


Wed Jun 06, 2012 3:18 pm
Profile

Joined: Thu Aug 11, 2011 10:04 pm
Posts: 46
Post 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.


Last edited by xranby on Thu Jun 28, 2012 8:29 pm, edited 2 times in total.



Thu Jun 07, 2012 9:20 am
Profile

Joined: Thu Jun 21, 2012 8:47 pm
Posts: 2
Post Re: Processing 2.0a5 + OpenGL/ES support
Xerxes, I realize you are providing a community service and if you do not have time to answer my question, I understand.

When I load processing on to the pi using your instructions above, I keep running into snags. I am trying to load processing 2.06a

I think I have the complete processing package extracted and plenty of space( repartitioned the 16GB sd). I run thru the following procedure.

wget http://processing.googlecode.com/files/ ... -linux.tgz
tar zxvf processing-2.0a6-linux.tgz
cd processing-2.0a6/modes/java/libraries/opengl
wget http://jogamp.org/deployment/jogamp-cur ... atforms.7z
7z x jogamp-all-platforms.7z
mv jogamp-all-platforms/jar/*.jar .
cd ../../../..
./processing

When I go to load processsing at the very last step I keep getting a java syntax error with the following path:

/home/pi/processing-2.0a6/java/bin/java: 1: Syntax error: "(" unexpected

any ideas? Done some searching on the processing forums, but not finding much

Thanks!


Thu Jun 21, 2012 8:52 pm
Profile

Joined: Thu Aug 11, 2011 10:04 pm
Posts: 46
Post Re: Processing 2.0a5 + OpenGL/ES support
keendog wrote:
When I go to load processsing at the very last step I keep getting a java syntax error with the following path:

/home/pi/processing-2.0a6/java/bin/java: 1: Syntax error: "(" unexpected

any ideas? Done some searching on the processing forums, but not finding much

Thanks!


I forgot, the prebuilt processing-2.0a6 archive contains a x86 Oracle JDK.
/home/pi/processing-2.0a6/java/bin/java

you need to move this java folder away since its not designed to run on the pi at all.
try:
cd /home/pi/processing-2.0a6/
mv java java-x86
./processing

It should then find and use your system installed openjdk in /usr/lib/jvm/java-6-openjdk-armel automatically.
Hope this helps.


Fri Jun 22, 2012 9:46 pm
Profile

Joined: Thu Jun 21, 2012 8:47 pm
Posts: 2
Post Re: Processing 2.0a5 + OpenGL/ES support
that did it thanks!


Fri Jun 22, 2012 10:35 pm
Profile

Joined: Thu Aug 11, 2011 10:04 pm
Posts: 46
Post Re: Processing 2.0a5 + OpenGL/ES support
technognome wrote:
Well I've run it on my RPi but getting those files to you is another matter - <day 2 of Linux> ^_^

Tried running
Code:
sudo apt-get install openjdk-6-jdk p7zip-full


but I just get 404 errors ?

At least the Rpi is running stable with a different Keyboard.


You need to update the debian apt-get cache.

run
Code:
sudo apt-get update

to let debian download a current list of available .deb packages.
After apt-get update is complete then running
sudo apt-get install openjdk-6-jdk p7zip-full should work fine without hitting any 404 errors.


Fri Jun 29, 2012 12:50 pm
Profile

Joined: Wed Sep 18, 2013 3:43 pm
Posts: 2
Post Re: Processing 2.0a5 + OpenGL/ES support
Hi--
I know I'm enter an old thread but it still seems to be pretty valid --
(Processing did come up with a nasty complaint about Java -- but then I read the later post about the library stuff, and followed that.)

I didn't find the openJDK arm libraries. So I moved them to /modes/java.

After straighening that out, l I tried to run processing. And the errors began-

after ./processing

I get:
Exception in thread "AWT-Event-QUeue-0" java.lang.NullPointerExcept: and then a massive list.

The first few start out with: at processing-app
and then Settings, Editor, etc.

If you are still here -- when you have time, I really need some help.

BUT, I do thank you for working on getting processing onto the R/Pi. It seems like the R/Pi should be a natural home for this language.

Thanks --
Clair


Wed Sep 18, 2013 3:56 pm
Profile

Joined: Thu Aug 11, 2011 10:04 pm
Posts: 46
Post Re: Processing 2.0.3 + OpenGL/ES support
Use Processing 2.0.3 (5 September 2013)
https://processing.org/download/
download the Linux 32bit version, then unpack it
and simply remove the processing/java folder
like this:
Code:
tar zxvf processing-2.0.3-linux32.tgz
cd processing-2.0.3
mv java java-x86


You can then start processing normally:
./processing
Processing will then run out of the box with hardware acceleration on "armhf" hard-float ABI Trimslice and Utilite systems. Processing will then pick up and use your system installed openjdk or oracle jdk version automatically.


If you need to use processing on a "armel" system you need to add two files from the jogamp project into the processing foler that contains pre-compiled native binarys for "armel" soft-float ABI systems.
Code:
cd core/library
wget http://jogamp.org/deployment/jogamp-current/jar/jogl-all-natives-linux-armv6.jar
wget http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt-natives-linux-armv6.jar

With these two files in place, processing will start on "armel" soft-float ABI Trimslice and Utilite systems as well!


Thu Sep 19, 2013 10:48 am
Profile

Joined: Wed Sep 18, 2013 3:43 pm
Posts: 2
Post Re: Processing 2.0a5 + OpenGL/ES support
xranby --
Glad you are still here -- and thanks so much for the quick reply.

I have to go out for most of the day, but will start from scratch when I get home.

Cheers,
Clair


Thu Sep 19, 2013 10:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.