[my blog] [my software] [contacts]

back to today
 

25 march 2012

Ray Marching shader improvements

Improved my Ray Marching shader :) faster and with two lights.
You can play with the code on GLSL Sandbox http://glsl.heroku.com/e#2012.0
 
2012-09-24 08:04:29
Joshua Batty wrote:
Hi h3r3, Have been playing with this shader on shaderSandbox and its fantastic!

I am a little confused though, usually once i make a few tweaks to a shader on shaderSandbox I can copy the code and have it run inside openFrameworks. With this shader though it only seems to render inside the browser. Do you know why?

Are you able to get this frag shader rendering on your comp outside of the browser?

Thanks mate.

2012-09-24 08:08:36
Joshua Batty wrote:
Oh my email is joshua.batty(at)hotmail(dot)com
if ya get a chance to let me know would appreciate it greatly.

2012-09-24 09:52:40
H3r3 wrote:
Hi Joshua,
I haven't tried using this shader outside the browser but there's no reason why it shouldn't work.

Does it fail to compile? In this case you should call glGetShaderInfoLog and/or glGetProgramInfoLog to get the error message from the OpenGL driver

2012-09-24 14:25:41
Joshua Batty wrote:
Na it doesn't fail to compile, im able to print out the attributes and uniforms in the shader to the console and im not getting any failed to compile errors.

Just a black screen...pretty confused.

2012-09-24 23:02:50
H3r3 wrote:
Are you sure the uniforms have the correct values? and are you running it on the same PC/Mac?

2012-09-27 04:14:27
Joshua Batty wrote:
YES!! sorry was being stupid and passing in my mouse position data wrong. scaled it back to be between 0.0 - 1.0 and now im seeing it. Thanks heaps for helping. Keep up the awesome work!!

Comments disabled