We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › shaders page
Page Index Toggle Pages: 1
shaders page (Read 1898 times)
shaders page
Jan 8th, 2007, 4:54am
 
Hi,

I just put online a page about GPU shaders, with particular emphasis on making them run inside Processing:

http://shaders.computaciongrafica.com/

So far there are a couple of simple demos about using glsl and cg, including off-screen rendering. I also uploaded a test program for a painterly rendering effect based on a particle system that runs on the GPU. I plan to keep adding enhanced versions of this effect, as well as other GPU-based programs.

I don't have access to ATI cards right now, so I'm not quite sure how well these programs would run on them.
Re: shaders page
Reply #1 - Jan 8th, 2007, 9:47am
 
On a MacBook Pro with an ATI Radeon card.  Doesnt seem to like to play.  Here is a grab of the result.

http://www.flight404.com/_images/painterGrab.gif

Curious to know if this will ever work on ATI.  Seems pretty intriguing.
Re: shaders page
Reply #2 - Jan 9th, 2007, 4:42am
 
I'm using a laptop PC with a Nvidia geforce 6400Go, but I kept the code as "vendor independent" as much as I know. I'll try to fix the problem as soon as possible. The ATI X1600 that comes with the MacBook pro has all the features needed to run the program... it is probably some little thingy that works differently in ATI cards. Or perhaps something with the OpenGL drivers on the Mac Sad

As a side note, I just loaded it on the MacBook (not pro) of a friend, and it didn't work either. This model has the integrated Intel graphics, so in this case I'm not quite sure that the card supports all the extensions I'm using in the shaders... Guess I have plenty of work to do with the Macs...
Re: shaders page
Reply #3 - Jan 11th, 2007, 2:36pm
 
Intel Graphics doesn't do anything fancy like that unfortunately.
Re: shaders page
Reply #4 - Jan 13th, 2007, 5:16pm
 
The program checks for shader support, multitexturing, off-screen rendering, etc. and the GMA 950 passes all these tests, but...

> Intel Graphics doesn't do anything fancy like that unfortunately.

Seems that you are right Sad After reading the tech specs of the GMA 950 on the intel website, I learned that it only supports the 2.0 shader model. This means it won't run the shaders in the painter example.

Re: shaders page
Reply #5 - Mar 2nd, 2007, 12:37pm
 
I fixed the shaders in the painter demo so now it should work on the Macbook Pro:

http://shaders.computaciongrafica.com/painterly/painterTest3.applet/index.html

I also have a new demo that uses the input from the webcam:

http://shaders.computaciongrafica.com/painterly/painterWebcam.applet/index.html

It seems that the applet doesn't work (at least on PC), so you can download the source and run it from within Processing.
Re: shaders page
Reply #6 - Mar 3rd, 2007, 1:22am
 
Lovely!  Works like a charm.  Nice to see it.  Code is a bit dense but I am just glad to know it can work.

Thanks for posting.
Re: shaders page
Reply #7 - Mar 17th, 2007, 9:56pm
 
I made some more changes in the painter shader that should make it compatible with ATI cards on PCs (before it worked on ATI but only for the Macbook Pro):

http://shaders.computaciongrafica.com/painterly/painterTest4.applet/index.html

http://shaders.computaciongrafica.com/painterly/painterWebcam2.applet/index.html
Page Index Toggle Pages: 1