[sharing] Raymarching in jit.gl.pix

Dec 21, 2013 at 5:33pm

[sharing] Raymarching in jit.gl.pix

hello
my first test in Raymarching jit.gl.pix.
There are problems of small ray. I do not control everything but the tracks are there.

If someone cycling74 through here, I’d like help on the Param statement in a function.

In the code box I signal my problem.

I could achieve this by reading and copying bits of code at:

http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm

https://www.shadertoy.com

http://www.pouet.net/topic.php?which=8177&page=1

http://glsl.heroku.com/

I hope to motivate some to do the same :)

Other examples of generative jit.gl.pix here: http://cycling74.com/forums/topic/sharing-small-generative-jit-gl-pix/

enjoy yourself

#276392
Dec 21, 2013 at 5:36pm

The patch

#276393
Dec 22, 2013 at 4:36am

Awesome, Thanks!

#276415
Dec 22, 2013 at 5:12am

woah this kicks ass at 200fps :]

now lets try n figure out what’s going on in there!

#276421
Dec 23, 2013 at 8:30pm

LLT, such good work here, thank you for sharing… did you write this yourself or was it ported from an example? if it’s a port, could you share the example to help me understand how this was accomplished? thank you!

#276613
Dec 26, 2013 at 5:41am

hi, this is a bit of both, I found examples and tips codes at:

http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm

https://www.shadertoy.com

http://www.pouet.net/topic.php?which=8177&page=1

the examples of codes Raymarching was found http://glsl.heroku.com. Unfortunately I do not remember what page of the site exactly.

I mixed everything and try to understand, there are pieces everywhere :)

I have to do something else at the moment. But soon I will try to document more code. I’ve made mistakes in the code, I need to clean. I do not understand everything and we lack examples of cycling74 to help us make the portage.

Please cycling74 We need a very simple example of Raymarching with pricipale functions.

I’ll be back soon.

#276699
Dec 30, 2013 at 8:36am

hello everyone
I’m a little lost in my previous post for well documented :D

so this time I chose to do a port of Raymarching http://glsl.heroku.com
You will find the source code in the jit.gl.pix.

I just added the ITER parameter to relieve my little GPU.

it is difficult for me to run a lot of shader in http://glsl.heroku.com.
for example I have trouble figuring out how to mat2, mat3 in jit.gl.pix

also in the codebox I know declare settings in a function but I can not call it.

an example:

  oa (q)
{
param loop (20.)
  return cos (qx) + cos (qy * (1.0 + sin (2) * 0.5).) + cos (qz) + cos (qy * loop) * .05;
}
if I change the parameter in the codebox loop it works but not if I call with a loop variable $1 in jit.gl.pix.

Team cycling74 here? ;)

#276966
Dec 30, 2013 at 8:40am

the patch

#276967
Dec 30, 2013 at 8:41am

<code>

– Pasted Max Patch, click to expand. –

</code>

#276969
Jan 10, 2014 at 1:27pm

this is amazing!!! thanks a lot for sharing it!!

#277955

You must be logged in to reply to this topic.