Cover image for Voronoi F1 Euclidean & Noise 3D Blender Nodes

Voronoi F1 Euclidean & Noise 3D Blender Nodes

sketchpunk profile image SketchPunk Updated on ・2 min read

More Blender nodes ported to webgl / glsl. This time I was inspired by a Twitter post, i asked the creator if he would translate the nodes into english since it was originally a different language.

I've done Voronoi Node previously but if you go into the blender source, when you switch the drop downs it actually runs different Voronoi functions. So this one is the F1 option with euclidean distance.

Then I had to also port over the Noise Node. After reading the blender manual on the node I learned that its just perlin noise. Code wise though, its actually Fractional Brownian Motion with perlin. The biggest problem with porting this node was that its 3D and 1D Perlin function was built into the OSL core which I can't copy anything over to glsl. Finding a 3D substitute was easy but 1D was a bit of a challenge, but luckly a sample was found on shadertoys.

With all the nodes in place, i tried to replicate as much of the node image as I can, but the lighting calculation just didn't work right. Just multiplying the merged noise by the diffused light was enough to get something decent.

This version doesn't look as good as blender because 1, I dont have any anti-aliasing going on and 2, blender seems to be using emissions/bloom which I dont have working in fungi. But all in all, Its a great sample of some more complex noise mixing and more blender stuff available for the web.

Code is free, Have at it.

[ DEMO ]



I have a patreon for anyone who would like to support my work. Everything I do I release as open source. With a enough support I can do this full time and make more stuff for people to use and learn from. https://www.patreon.com/sketchpunk

Posted on by:

sketchpunk profile



10% luck, 20% skill, 15% concentrated power of will. 5% pleasure, 50% pain, And a 100% reason to remember the name.


markdown guide