Groovanomalism

↝      Year

2021

↝      Description

Inspired by @anomalitkate's trippy work, I delved into Cinema 4D and played around a ton. The very colorful material is OSL code I've written, which can be found in Redshift's official OSL shader library!

↝      Tools used

Cinema 4D     
OpenShadingLanguage     
Redshift     
Photoshop
Final looping video

 

Groove is in the heart

Every now and then, I like to make something just for the fun of it. No story, no client, just playing around with colors, shapes and materials until it feels right. @anomalitkate's work was the spark this time, and I wanted to see where I'd end up if I just played around.

So I started piling things up in Cinema 4D: a big glossy black ring, pink and yellow blobs, a checkerboard floor that can't quite keep its lines straight, some fluff, a few bubbles and an iridescent ribbon floating through it all. Everything moves and loops, while the colorful rings on the disc keep shifting around.

 

Sugar-coated code

The colorful material on that disc is where the code comes in. A jawbreaker, if you've never had one, is a rock-hard candy made of dozens of thin, colorful layers - bite through it (not recommended for your teeth) and you'll see all those rings. I wanted a shader that does exactly that, so I wrote one in OSL, the Open Shading Language, which lets you program your own materials and textures right in the render engine.

The basic idea is pretty simple. If you measure how far each point is from a center, you get a smooth gradient; round that distance down to whole steps, and the gradient turns into sharp rings - the layers of the candy. Before measuring, the shader pushes the points around with a few layers of turbulent noise, so the rings wobble and swirl instead of being perfect circles. Lastly, the value of each ring runs through a loop of sine waves which decides its color, so every layer gets its own shade. A few parameters let you control the number of layers, how much noise there is and the colors, and animating the two time values gets everything moving.

 

Jawbreaker NoiseStylized OSL code of the material

 

Candy for everyone

The shader is part of Redshift's official OSL shader library (Saul Espinosa later added color management to it), which now lives on Maxon's GitHub. So if you're using Redshift, you can grab Jawbreaker Noise there → and use it in your own scenes!

Final still
Raw render
WireframeUnder the candy coating

 

Projects like this are a great kind of practice for me: no pressure, lots of experimenting, and every now and then something useful comes out of it. In this case, a shader that other artists get to play with too!

     Go Back