» Candy Layers
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Candy Layers

effect
Credits: code based on wood shader by vux. many thanks to joreg and tonfilm for effects workshop at node10!

about

Takes colors from 1D-texture and creates 3D layers of spherical shape (in world space) that go through the objects.
Any feedback or ideas how to improve are appreciated *~*

download

CandyLayers.zip
09.12.10 [14:59 UTC] by ain | 937 downloads
with offset
Show 1 older revisions

Older Revisions

CandyLayers.zip
06.12.10 [20:09 UTC] by ain | 719 downloads

bo27 07/12/2010 - 15:50

круто!

flateric 08/12/2010 - 09:06

Hey, like this shader very much.

Found one little problem, if the object is in the center then we lose the layers, so couldn't use it initially with a skybox (Sphere+WithinView). Also stripes doesn't move on a static object.

Simple way to get around it (and nice feature) is just to add an offset for the Pixel Pos.

float3 Offset;

Then in the pixel shader part, replace:

float3 PP = In.PixPos;

by

float3 PP = In.PixPos + Offset;

Then you can change stripes without the need to move the object.

Thanks for the contrib :)

ain 09/12/2010 - 15:57

thanks bo )

hi flateric,
i thought about transformation of the layers structure
and wanted to do it with transform, to suppot rotation also (when i tryed other shapes besides the sphere), but i can't use these matrices so easily yet...

As rotation really doesn't make sense with a sphere, your solution is better,
so i'll update it as you suggested,
thank you *

anonymous user login

Shoutbox

~9d ago

joreg: Postponed: Next vvvv beginner course starting April 29: https://thenodeinstitute.org/courses/vvvv-beginner-class-summer-2024/

~1mth ago

~1mth ago

joreg: The Winter Season of vvvv workshops is now over but all recordings are still available for purchase: https://thenodeinstitute.org/ws23-vvvv-intermediates/

~2mth ago

schlonzo: Love the new drag and drop functionality for links in latest previews!

~2mth ago

joreg: Workshop on 29 02: Create Sequencers and Precise Clock Based Tools. Signup here: https://thenodeinstitute.org/courses/ws23-vvvv-08-create-sequencers-and-precise-clock-based-tools-in-vvvv-gamma/