Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: dj_buckley on 2019-01-17, 09:34:16

Title: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 09:34:16
Confusing subject title I know, because I'm confused.

I'm trying to get a bump map working correctly.  It's a very fine grain pattern.

I'm finding if I leave the strength of the bump at 0.5 for example, I can increase/decrease the effect or how 'aggressive' it is just by adjusting the filter blur value.  So I find myself constantly tweaking bump strength and filter blur to achieve the desired look.  Admittedly the standard bump isn't great and I'm struggling to achieve what I want.  If I make the bump to strong it just scatters the light so much that the whole object just gets brighter.

If I use the Corona Bitmap blur, it seems quite unpredicatable.  I'm finding if I use the Corona Bitmap I have to increase the strength of the bump to get the same effect as not using the Corona Bitmap and a lower strength.

I'm going to render off some examples, but if anyone has a similar experiences or 'best practices' i'd be keen to hear them

Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 09:46:55
I've also attached the bump map I'm using
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 10:07:12
First Test.

Bump Strength Remains the same at 1, all I'm adjusting is the Filter Blur inside the Corona Bitmap.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 10:17:51
Exhibit B

This time keeping Filter Blur at 0.01 and just adjusting bump strength.  Effectively gives me the reverse pattern
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 10:39:22
And now exactly the same two test again but compared with the Standard Bitmap Loader
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 10:41:48
So I guess my question is which way to go?  Standard or Corona Bitmaps?  Higher Strength Lower Filter Blur? Lower Strength Higher Filter Blur?  Will any of the combos adversely affect render times?

Which one is correct, in terms of how that light scatter is changing as it's wildly different between Standard and Corona Bitmap etc?
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: romullus on 2019-01-17, 10:57:09
Ahhh, bitmap filtering... you got not even close to the bottom of this rabbit hole yet :] Add to the equation cBitmap's filterring interpolation, CoronaBumpConverter node with its own blurring and the fact that filterring stregth depends from surface's distance from the camera and your head will explode. Personally i try not to touch bitmap filterring and leave it at default size. Use bump strength if you can - that is the safer option.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 11:04:33
I guess so, but more importantly does one have a detrimental effect to rendertime? i.e. does a higher strength, lower blur take longer to sample than a lower strength and higher blur etc
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: romullus on 2019-01-17, 11:24:19
Probably yes, but you have to ask yourself, what's more important - overall look of your shaders or few minutes saved from rendertime?
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-17, 11:31:28
Both haha
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: steyin on 2019-01-18, 18:08:19
I remember that back in the MR days, Ludvik always suggested setting blur to default lowest value of .01 for all maps.

I've stuck by that since and just adjust bump values.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: sprayer on 2019-01-18, 20:37:50
keeping always  0.01 will be wrong as it is good for close view renders - more details, but it will be completely wrong looking at distant view as it will looks too matte, also it will be longer to render and may produce noise

here similar discussion https://forum.corona-renderer.com/index.php?topic=22641.0
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: Fluss on 2019-01-19, 18:14:06
The best solution so far is to leave the blur value at 1 and wait for something like the Pixar's bump to roughness solution to retrieve information loss by filtering.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: steyin on 2019-01-19, 21:16:46
keeping always  0.01 will be wrong as it is good for close view renders - more details, but it will be completely wrong looking at distant view as it will looks too matte, also it will be longer to render and may produce noise

here similar discussion https://forum.corona-renderer.com/index.php?topic=22641.0 (https://forum.corona-renderer.com/index.php?topic=22641.0)
Never really had any visual/noticeable troubles using this method. I never do animations, so it wasn't a concern. Usually seems like the best approach was also using summed area versus pyramidal, but also to retain some blurring for bump. I rarely use the coronabitmap, so perhaps it's time to do some new testing.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: Fluss on 2019-01-20, 02:06:57
I just checked the roadmap and filtering will be improved with V4, really good news! The next release will be freaking awesome!
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: Njen on 2019-01-20, 03:51:31
keeping always  0.01 will be wrong as it is good for close view renders - more details, but it will be completely wrong looking at distant view as it will looks too matte, also it will be longer to render and may produce noise

here similar discussion https://forum.corona-renderer.com/index.php?topic=22641.0 (https://forum.corona-renderer.com/index.php?topic=22641.0)
Never really had any visual/noticeable troubles using this method. I never do animations, so it wasn't a concern. Usually seems like the best approach was also using summed area versus pyramidal, but also to retain some blurring for bump. I rarely use the coronabitmap, so perhaps it's time to do some new testing.

This is not just a Corona thing, any renderer that doesn't properly account for distance filtering in the roughness channel will react with the same visual artifact.

I was present for the Bump to Roughness talk by Pixar this year at Siggraph, very informative.
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: romullus on 2019-01-20, 10:45:34
I just checked the roadmap and filtering will be improved with V4, really good news! The next release will be freaking awesome!

In the roadmap only image filtering is mentioned, but not the bitmap filtering. That is slightly different thing, no?
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: Fluss on 2019-01-20, 12:28:58
I just checked the roadmap and filtering will be improved with V4, really good news! The next release will be freaking awesome!

In the roadmap only image filtering is mentioned, but not the bitmap filtering. That is slightly different thing, no?

You're right, I read it too quickly...
Title: Re: Bump Map, Filter Blur, Bump Strength, Corona Bitmap
Post by: dj_buckley on 2019-01-21, 11:14:06
Well I ended up finding a balance between bump strength and filter blur.  As the bump was quite finely detailed, it did make a huge difference.  Setting it to 0.01 was massively increasing render time and affecting the light scatter too much almost giving a completely matte appearance.  I ended up testing a small patch of the render to get the blur right first so that the bump in render looked like the bump map itself (not too sharp etc), then I adjusted the strength to suit so the physical properties and how it interacted with the scene lighting behaved the same as the physical product I had in my hand, by testing under the same lighting conditions.  Admittedly, I've always just set everything to 0.01 until now and assumed I was getting the best possible appearance of the map and I won't be doing again