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

Older Revisions

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

~2d ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~2d ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~9d ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~11d ago

~13d ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~16d ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~16d ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~23d ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~30d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~30d ago