Announcement: GLSL live coder(yet another


4 posts
by sharow » Thu Jan 17, 2013 1:25 pm
Hi.

I uploaded http://glsl.heroku.com/ compatible GLSL live coder.
uniform value supported mouse, time, backbuffer(require --backbuffer option or 'b'), resolution.

https://bitbucket.org/sharow/pijockey

features:
- multiple layer(effect): uniform sampler2D prev_layer
- layout change: '<' or '>' key ('f' key to switch fullscreen)
- offscreen scaling: '[' or ']' key to change scaling factor
- of course! live code editing in your favorite editor(vi/emacs + ssh/tmux/screen): save to update.
- OS: Raspbian, ArchLinuxARM

examples:
Code: Select all
$ ./pj shaders/raytrace.glsl    # 1 layer
$ ./pj --backbuffer shaders/raytrace.glsl effects/delay.glsl  # 2 layers+backbuffer
$ ./pj --backbuffer shaders/kaliset.glsl effects/delay.glsl effects/slide_rgb.glsl  # 3 layers+backbuffer


playing http://glsl.heroku.com/e#3259.0
rpi_pj_ss02.jpg
rpi_pj_ss02.jpg (62.13 KiB) Viewed 1379 times



shader sample from GLSL sandbox(thanks to authors!)
enjoy! :D
ArchLinuxARM@RaspberryPi
User avatar
Posts: 9
Joined: Wed Oct 17, 2012 7:24 am
Location: Tokyo
by rebb » Thu Jan 17, 2013 8:51 pm
I needed to do this to make it compile in raspbian:
cd /opt/vc/include/interface/vmcs_host/
sudo mkdir linux
sudo cp *.h linux/

i tried to make the change to src/makefile too, change /opt/vc/include/interface/vmcs_host/linux to one with no linux folder but it did not work?

So maybe you need to change it elsewhere too?

Anyway, marvelous tool. I love it.

br, Rebb/TRSi^Paradise
Posts: 12
Joined: Wed Jan 09, 2013 10:24 am
Location: Finland
by sharow » Fri Jan 18, 2013 1:28 am
@rebb

Oh sorry.
Newest firmware have vmcs_host/linux, old firmware is maybe not.
https://github.com/raspberrypi/firmware ... host/linux

Need update dependency use 'make depend'. (sorry I forgot this)
This just update ./depend.inc .
I veryfied in Raspbian.
Code: Select all
$ wget "https://bitbucket.org/sharow/pijockey/downloads/pj-0.2-src.tar.gz"
$ tar -xzf pj-0.2-src.tar.gz
$ cd pj-0.2-src
$ make depend
$ make
$ ./pj shaders/kaliset.glsl


thanks!
ArchLinuxARM@RaspberryPi
User avatar
Posts: 9
Joined: Wed Oct 17, 2012 7:24 am
Location: Tokyo
by blu » Fri Jan 25, 2013 11:16 am
Great job! Thank you for sharing. I've been meaning to do something similar for ages, but never got to it.
Posts: 55
Joined: Tue Jul 17, 2012 9:57 pm