Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Converting ofxFX Ripples example for Raspi 2

$
0
0

@bendylegs wrote:

I'm trying to get ripples to work on the GPU on the raspi2, I have done it on the cpu using info from this site.

http://freespace.virgin.net/hugo.elias/graphics/x_water.htm

And I tried to understand how it's been done in the ofxFX ripple example and since it wouldn't compile for raspi I tried to port it and simplify it. My problem is that the GLSL fragment shader never seems to be applied to my texture, it never seems to average anything and subtract from the previous frame to find the next. I'm just left with the circles drawn under the mouse pointer.

rippleShaderOSX.zip (30.3 KB)

It's in xcode btw, I'm developing it there first, just trying to replicate and understand the ofxFX ofxRipples example and then taking it across to the pi.

Can anyone help?

Posts: 6

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles