GeeXLab released

Started by JeGX, December 04, 2015, 07:44:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


GeeXLab for Windows is available:

Versions for other OSes will be available very soon.


Quote from: JeGX on December 07, 2015, 10:18:38 AM
The Raspberry Pi version of GeeXLab is available:

Coincidentiially someone made a raspberry shader the other day.
So if you to want to see a raspberry on your Raspberry, download it here

Another thing:
Will you make a shadertoy_prog, "iDate" sometime?
I tried to port a clock shader which stalled in GeeXLab.

I didn't find cubemap/texturecube support in gfx02.lua. How to do that?


I just published a post that should help you to get iDate in your demos:

For the cubemap, you can do it yourself  directly in the demo. To load a cubemap (6 images) use this code:

local pf = 3
local abs_path = 0
cubemap = gh_texture.create_cube_from_file("./data/skybox08_posx.jpg", "./data/skybox08_negx.jpg", "./data/skybox08_posy.jpg", "./data/skybox08_negy.jpg", "./data/skybox08_posz.jpg", "./data/skybox08_negz.jpg", pf, abs_path, 0)

To use a cube map in a Shadertoy demo (the cubemap is bound to the sampler iChannel1 in the Shadertoy pixel shader):

gh_texture.bind(tex0, 0)
gh_texture.bind(cubemap, 1)
gh_texture.bind(tex2, 2)

gh_gpu_program.uniform1f(shadertoy_prog, "iGlobalTime", elapsed_time)
gh_gpu_program.uniform1i(shadertoy_prog, "iChannel0", 0);
gh_gpu_program.uniform1i(shadertoy_prog, "iChannel1", 1);
gh_gpu_program.uniform1i(shadertoy_prog, "iChannel3", 2);

The cubemap is defined as follows in a shadertoy demo:

uniform sampler2D iChannel0;
uniform samplerCube iChannel1;
uniform sampler2D iChannel3;

There is a shadertoy demo in the code sample pack that uses cubemaps:


Quote from: JeGX on December 11, 2015, 01:59:54 PM
I just published a post that should help you to get iDate in your demos

Thanks, there is a typo in line 5, it must read:

gh_gpu_program.uniform4f(shadertoy_prog, "iDate", tmp.year, tmp.month,, time_seconds)

Here is the ported clock shader


Just tried the 32 bit version under Windows XP

leap.dll refuses to load because procedure entry point "GetNamedPipeClientProcessId" is missing in KERNEL32.dll

As a workaround i deleted leap.dll


Another tidbit with the 32 bit version: overlay reads 64 bit

FYI: users with antiquated GPUs can run GeeXLab with MESA, using pre-compiled binary from here