I’m learning GLSL, and of course GLSL in Touchdesigner.
I’m learning by porting shaders from Shadertoy, and it’s very interesting!
I managed to port some of them, but I’m stuck with this one…
I managed to make it work, but I have some weird results. The clouds are compressed and there are circle artifacts.I think the problem comes from a resolution ratio somewhere, but I can’t understand where my error is. Any idea?
I’m seeing the same behavior, and am interested in this same shadertoy so I started to dive in.
Replacing the noise with Perlin instead of random, and playing with all of the noise parameters helps dial in the cloud aesthetic a bit more. Bumping up the number of MARCH steps around lines 92-95 helps too. However, I see at least two major issues that I can’t nail down. It seems like there’s no(or too little) smoothing in between the voxels, so the clouds are quantized to a 3d grid, and then second is the circle artifacts that seem to be pixel / viewport based. They could be two aspects of the same problem. I found that if you rotate the scene to the side, you see slices of clouds, when in the original the noise is truly 3d volumetric - so I think something’s happening where the 3rd dimension of the noise isn’t being respected? Let us know if you figure it out!
Thanks for the reply, glad to know I’m not the only one struggling with this shader
I have the same problem of slices of clouds instead of volumetric + circle artifacts.
Yes for me the problem might comes from resolution / viewport, bur for now no luck…
When I port it to Touchdesigner, this time no circle artifacts, but I have the same problem that display “slices” of clouds instead of truly 3d volumetric… (see attached file). Any idea on how to solve this?
I see the artifacts too but don’t know what’s causing them. I saw this comment on shadertoy. It would replace the noise function and then you don’t need a texture. It fixed it for me.
Pretty interesting! Thanks for the answer, with your noise function there is no more “slices of clouds”. But with it my framerate falls from 60fps to 20fps… Is that the case for you also?