Forums > Jitter

[sharing] Raymarching in jit.gl.pix


LLT
December 21, 2013 | 5:33 pm

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



LLT
December 21, 2013 | 5:36 pm

The patch



Ste
December 22, 2013 | 4:36 am

Awesome, Thanks!



dtr
December 22, 2013 | 5:12 am

woah this kicks ass at 200fps :]

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


December 23, 2013 | 8:30 pm

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!



LLT
December 26, 2013 | 5:41 am

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.



LLT
December 30, 2013 | 8:36 am

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? ;)



LLT
December 30, 2013 | 8:40 am

the patch



LLT
December 30, 2013 | 8:41 am

<code>

– Pasted Max Patch, click to expand. –

</code>


January 10, 2014 | 1:27 pm

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


Viewing 10 posts - 1 through 10 (of 10 total)