• Home
  • Documentation
  • Forum
  • Blog
  • Users
    • Map
    • Userlist
    • Businesses
    • Userpages
    • Connections
  • Contributions
    • All
    • Store
  • Downloads
    • vvvv beta
    • vvvv beta previews
  • Store
Show / Hide Table of Contents

Candy Layers

Author: ain
Date: 06 Dec, 2010
Category: effect
Credits:

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

Download

64bit

1-CandyLayers.zip
09 Dec, 2010 - 13:59
with offset
0-CandyLayers.zip
06 Dec, 2010 - 19:09

Description

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 ~

Comments

Comments are no longer accepted.
Please create a new topic in the vvvv beta forum to discuss this contribution.
bo27
07 Dec, 2010 - 13:50

круто!

flateric
08 Dec, 2010 - 07: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 Dec, 2010 - 13: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 *

  • Improve this Doc

© 2020 by vvvv group. Imprint | Privacy Policy.
Thanks to DocFX for building this website. Analytics by Plausible.

Back to top