Holes that randomly disappear with OSL

Holes that randomly disappear with OSL

pproestos
Collaborator Collaborator
1,333 Views
6 Replies
Message 1 of 7

Holes that randomly disappear with OSL

pproestos
Collaborator
Collaborator

I don't know how to describe it...

I want to have an effect like this:

4678-ramprage-1.jpg

I mean i want the holes that randomly disappear from the top to the bottom...

I am using Mad's shape OSL shader and a gradient map, but of course

I cannot archive the effect I want...

Any help I appreciate a lot. thx.

**My solution that is...not a solution:

4679-osl.jpg

0 Likes
Accepted solutions (1)
1,334 Views
6 Replies
Replies (6)
Message 2 of 7

madsd
Advisor
Advisor

You want to utilize the simple tiles instead, that has ID.
Then let a ramp over v dictate probability to print a hole.

0 Likes
Message 3 of 7

pproestos
Collaborator
Collaborator

not being able to do it... 🙂

0 Likes
Message 4 of 7

madsd
Advisor
Advisor
Accepted solution

One way of doing it.

Update: added 2020 file.

4682-ee.png

4683-qq.jpg

0 Likes
Message 5 of 7

madsd
Advisor
Advisor

It can be improved to be fail safe from the curve, you need to handle the float values delecatly.
Implementing a step curve will fix this. Also known as posterize.

4685-cc.png

0 Likes
Message 6 of 7

madsd
Advisor
Advisor

Like this, open gif full to inspect details.

Change the defaul Catmul rom interpolation to linear for point 0 and 1.

4686-qwe.gif

0 Likes
Message 7 of 7

pproestos
Collaborator
Collaborator

@Mads... how many THANKS again... Every time I have a shader challenge to do, seems impossible till you answer... 🙂

I will try to understand the mecchanism later on... 🙂

0 Likes