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

Older Revisions

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

~24d ago

mediadog: @ggml Yup, lots. Only used in 4.x, haven't tried in 5.x yet: https://www.unrealengine.com/marketplace/en-US/product/simple-udp-tcp-socket-client

~25d ago

ggml: someone has sent udp bytes to unreal ?

~2mth ago

micha_nismus: worked out, thank you very much ! :-)

~2mth ago

joreg: @micha_nismus does this help? https://youtu.be/xkrbT45BgOQ

~2mth ago

micha_nismus: thx joerg. Can anybody help me why i can't see any renderer in gamma? thx :-)

~2mth ago

joreg: @micha_nismus instead of discord, we're using matrix, see: chat

~2mth ago

micha_nismus: searching for a public discord server for vvvv

~2mth ago

joreg: Join us for the 20th #vvvv meetup on January 19th: https://thenodeinstitute.org/event/20-worldwide-vvvv-meetup/

~2mth ago

joreg: @schlonzo re "SDSL support" did you see the Shader wizard? or do you mean something different?