## Too Smooth voronoi 3D cell scalar

Started by cyphyr, January 17, 2018, 04:50:11 am

#### cyphyr

##### January 17, 2018, 04:50:11 am
Is there any way to alter the sharpness of a "Smooth voronoi 3D cell scalar"?
It's very useful to have the soft change between voroni cells but sometimes (often) it is too soft.
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### Hetzen

##### January 17, 2018, 08:21:02 am #1
Yes I think there is. I was playing with this a while back. I need to get on a machine when I get in the office to check a few things before I give out a clip file. I just need to confirm that cell noise and smooth cell share the same base pattern.

The principle is to extract the difference between the two noises, apply a gain curve then apply that to the hard edged cell noise.

#### cyphyr

##### January 17, 2018, 09:17:43 am #2
Excellent, thankyou.
Yes, cell noise and smooth cell noise do indeed share the same base pattern.
I was trying to "tighten" up the smooth noise and getting nowhere lol
The reverse looks a better way to go.
I've extracted the difference (twice!)
Subtracting the cell noise from the smooth cell noise gives a different result from subtracting the smooth cell noise from the cell noise. So I did both and combined the result ... that's where it all starts to go wrong ... I can't seem to find a way of properly combing them that gives a result I can work with further.
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### Dune

##### January 17, 2018, 10:25:12 am #3
That would be cool, Jon! I asked for this a while ago, but never really got any reply. I thought softness was baked in.

Mixing stuff is always hard as you very soon get very narrow differences and thus strange displacements.

#### Hetzen

##### January 17, 2018, 10:28:59 am #4
Well here is the clip file. I wouldn't say it's a success, we still get some horrible stretching at the mid point of the transition. There maybe a better method other than using the Gain scaler.

Tightness of 0.45
[attachimg=1]

Tightness of 0.2
[attachimg=2]

#### Hetzen

##### January 17, 2018, 10:44:19 am #5
This version uses a Bias curve instead. Still getting stretching at the mid point, plus some displacement naughties.

[attachimg=1]

It maybe a case of applying the difference to the Smooth cell, but not as it's set up in these clip files. Needs more thought if it is indeed possible.

#### cyphyr

##### January 17, 2018, 10:48:17 am #6
Thanks, this looks useful, I shall experiment
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### cyphyr

##### January 17, 2018, 10:54:50 am #7
I think the sharp edges/stretches may be because of the difference between subtracting the cell noise from the smooth cell noise and subtracting the smooth cell noise from the cell noise.
See below.
I'm trying to combing the result of the two so I can fed it into the Add scalar but all I get is BLACK.
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### Dune

##### January 17, 2018, 12:06:56 pm #8
I think Matt needs to take a look at the functions, maybe he can change the whole thing from the start to a smoother voro.

#### cyphyr

##### January 20, 2018, 05:26:17 am #9
... or I could just subtract a Voroni 3D diff scalar ... achieved pretty much the same effect ...
Sometimes I miss the obvious solution hehe
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### Hetzen

##### January 20, 2018, 10:13:59 pm #10
The problem with difference voronoi is that the edges always resort to black, so you don't get transitions from neighbour cell grey values. Ie you don't get a slope from one cell's grey value to the next cell's which smooth voronoi does.

Ideally Ulco is right, it would be great to have an extra input on the smooth voronoi to control the steepness between cell grey values. It's a nice noise to use as is, but can look soft as you've found.

I'd be interested to see some of your test renders of the plain noise to see what you've done.

#### cyphyr

##### January 21, 2018, 05:25:38 am #11
Yes you're right, this way each cell comes from a black (zero) base line but you can control the falloff to the baseline very easily with a colour adjust shader.
As Ulco mentions, yes more control within the Voronoi shader would be ideal (as would more noise flavours ... very old request )

I imagine there should be a way of combining the falloff to black with a variable falloff to grey but I can't figure that out but this is good enough (just) for my current needs.
www.richardfraser.co.uk
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

#### KlausK

##### January 21, 2018, 08:36:32 am #12
Thank you for this.
Cheers, Klaus.
/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 1070 TI / Win7 Ultimate

#### bobbystahr

##### January 22, 2018, 10:12:36 am #13
Great thread, off to study the results; thanks very much Jon and Richard.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist