» 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 | 955 downloads
with offset
Show 1 older revisions

Older Revisions

CandyLayers.zip
06.12.10 [20:09 UTC] by ain | 735 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

~8d ago

~17d ago

joreg: Webinar on October 2nd: Rhino meets Realtime with vvvv https://visualprogramming.net/blog/2024/webinar-rhino-meets-realtime-with-vvvv/

~17d ago

joreg: 12-session online vvvv beginner course starting October 7th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-class/

~22d ago

joreg: Introducing: Support for latest Ultraleap hand-tracking devices: https://visualprogramming.net/blog/2024/introducing-support-for-new-ultraleap-devices/

~25d ago

joreg: 2 day vvvv/fuse workshop in Vienna as part of NOISE festival on Sept. 13 and 14: https://www.noise.ist/vienna

~1mth ago

joreg: New beginner video tutorial: World Cities https://youtu.be/ymzrK7tZLBI

~1mth ago

catweasel: https://colour-burst.com/2023/01/26/macroscopic/ yeah, ' is there anyone who cares about slides anymore...' Well me for a start! :D

~2mth ago

ventolinmono: The ELMO TRV-35 slides into your video feed > https://youtu.be/pcIM9mh1c9k?si=iB4FOfI2D6y0iETy

~2mth ago

joreg: The summer season of vvvv workshops is now complete, but you can still get access to all the recordings: https://thenodeinstitute.org/ss24-vvvv-intermediates/

~2mth ago