Welcome to Fractal Forums

Fractal Software => 3D Fractal Generation => Topic started by: DarkBeam on March 05, 2015, 11:19:42 PM




Title: shadertoy 3d peano?
Post by: DarkBeam on March 05, 2015, 11:19:42 PM
I always dreamed about this
http://demonstrations.wolfram.com/PeanoCurveIn3D/
Is this possible to reproduce in a simple shadertoy?
Without using an array! :)


Title: Re: shadertoy 3d peano?
Post by: eiffie on March 06, 2015, 05:23:39 PM
Knighty did the 2d version and it looks like it could work similarly in 3d but beyond me. :)
https://www.shadertoy.com/view/lss3Ds (https://www.shadertoy.com/view/lss3Ds)


Title: Re: shadertoy 3d peano?
Post by: DarkBeam on March 07, 2015, 11:34:07 AM
Ohhh thanks... I hope that he does know how to perform miracles :)
Still convert those script to raw assembly seems to be hard :'(

An interesting variation; http://demonstrations.wolfram.com/Lebesgue3DCurves/


Title: Re: shadertoy 3d peano?
Post by: knighty on March 07, 2015, 07:47:47 PM
I think it would be simpler in assembly (for you though). All that apparent complexity is due to trying to do bitwise operations with floats. The simplest is to use tables but they are so tiny they would fit in a single word.


Title: Re: shadertoy 3d peano?
Post by: DarkBeam on March 07, 2015, 08:28:43 PM
I think it would be simpler in assembly (for you though). All that apparent complexity is due to trying to do bitwise operations with floats. The simplest is to use tables but they are so tiny they would fit in a single word.

Explain please? :embarrass:


Title: Re: shadertoy 3d peano?
Post by: knighty on March 08, 2015, 01:04:56 PM
Oops! that's what I was afraid of.  :hurt:
That have been a long time and I forgot the details. See the attached (and commented) fragmentarium shaders (with and without tables). See also this wiki (http://en.wikipedia.org/wiki/Hilbert_curve#Applications_and_mapping_algorithms).


Title: Re: shadertoy 3d peano?
Post by: DarkBeam on March 08, 2015, 04:31:44 PM
Thank you :D