Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Noah45 on 2017-09-28, 18:49:05

Title: Bump Converter
Post by: Noah45 on 2017-09-28, 18:49:05
I may have missed the discussion, and search revealed little.

How and why Bump Converter?

thanks.
Title: Re: Bump Converter
Post by: pokoy on 2017-09-28, 18:59:35
Color and Bump are two different channels in Max (hence the Bump amount parameter in the output rollout which handles bump specifically) and some maps produce different or no bump at all. With this map, you can 'force' bump to render based on color output even if the map doesn't provide any bump channel information (such as AO, for example). Another really useful side effect is that you can use all blending modes of the composite map and color correction on bumps.
Title: Re: Bump Converter
Post by: cecofuli on 2017-09-28, 19:14:27
Try to use Cellular map inside the bump channel with and without CoronaBump ;-)
Without, the bump is inverted.
Title: Re: Bump Converter
Post by: sprayer on 2017-09-29, 14:12:51
cecofuli so coronaBump map only replace invert check box in output rollout?
Title: Re: Bump Converter
Post by: maru on 2017-09-29, 15:00:12
cecofuli so coronaBump map only replace invert check box in output rollout?
No, it takes whatever is plugged into it and treats it like regular black and white RGB information, just as if you plugged a bitmap into the bump slot.
Another example is using the color correction node - it just does not work with bump. If you use the bump converter, it will magically start working as you would expect.
Title: Re: Bump Converter
Post by: Njen on 2017-09-30, 07:51:17
Check out the image in my post about the issue:
https://forum.corona-renderer.com/index.php?topic=13492

Bump Converter fixes this.
Title: Re: Bump Converter
Post by: Nejc Kilar on 2017-09-30, 10:25:14
cecofuli so coronaBump map only replace invert check box in output rollout?
No, it takes whatever is plugged into it and treats it like regular black and white RGB information, just as if you plugged a bitmap into the bump slot.
Another example is using the color correction node - it just does not work with bump. If you use the bump converter, it will magically start working as you would expect.

Could you please explain to us why the color correction node does not work? What kind of sorcery is going on here? :)
Title: Re: Bump Converter
Post by: sprayer on 2017-09-30, 13:52:47
Check out the image in my post about the issue:
https://forum.corona-renderer.com/index.php?topic=13492

Bump Converter fixes this.
It not worked only with empty color slots and with only color maps, if you plugged textures or any maps like noise, cellular etc it will work fine
Title: Re: Bump Converter
Post by: sprayer on 2017-09-30, 13:55:00
cecofuli so coronaBump map only replace invert check box in output rollout?
No, it takes whatever is plugged into it and treats it like regular black and white RGB information, just as if you plugged a bitmap into the bump slot.
Another example is using the color correction node - it just does not work with bump. If you use the bump converter, it will magically start working as you would expect.
i am not sure why we need to use color correction node for bump if we can use output rollout in the same texture and it work with color correction just don't give result for bump
Title: Re: Bump Converter
Post by: maru on 2017-10-03, 11:29:27
Could you please explain to us why the color correction node does not work? What kind of sorcery is going on here? :)
Autodesk Sorcery.

@Sprayer - I think neither color correction will work nor output rollout with bump. The bump converter just makes everything work as expected.
Title: Re: Bump Converter
Post by: PROH on 2017-10-03, 12:35:19
@maru - have you tried to use it with the tiles-map? I can't make it work. Just like it doesn't work very well with greyscale bitmaps. ...or maybe I'm overlooking something?
Title: Re: Bump Converter
Post by: Marijan on 2017-11-10, 15:22:57
Hi, I have a question about using noise map in BumpConverter.

In the attached examples you can see that BumpConverter does something to mapping of noise map.
If I change object XYZ to explicit mapping in noise map coordinates, and map objects with same UVW modifier it works as expected.

Is this normal behavior?
Should we avoid using some procedural maps in bump converter for any reason?
Title: Re: Bump Converter
Post by: pokoy on 2017-11-10, 15:57:26
Good catch. But shouldn't the noise look different anyway? If it was mapped in Object Space I'd expect it too look like what the BumpConverter looks like... If you used World Space then BumpConverter doesn't seem to pick it up properly.
Title: Re: Bump Converter
Post by: Marijan on 2017-11-10, 16:06:25
I see your point but same thing happens regardless of using object space or world space
Title: Re: Bump Converter
Post by: romullus on 2017-11-10, 18:58:53
Could be a bug with bump converter. Could you post it in bug reporting board?
Title: Re: Bump Converter
Post by: Juraj on 2017-11-10, 21:56:19
Odd thought, but why couldn't "Bump Converter" be hard-coded into the Corona shader ? Basically every time you would put shader network into bump slot, Corona would act like there was 'BumpConverter' node on top of it.

I am still confused why Corona shader replicates 3dsMax limitations if it's property of Corona. I mean the bump slot could simply be called "CoronaRelief" or something random whatever, why does it need to share some property of 3dsMax ? Or is there some deeper reason due to integration ?

(And did anyone ever use the 'bump amount' inside 3dsMax bitmap ? I didn't even know what that crap was for, and now when it's explained, it just seems like some stupidity from DOS era that can be safely ignored)
Title: Re: Bump Converter
Post by: romullus on 2017-11-10, 22:25:07
Odd thought, but why couldn't "Bump Converter" be hard-coded into the Corona shader ? Basically every time you would put shader network into bump slot, Corona would act like there was 'BumpConverter' node on top of it.

I am still confused why Corona shader replicates 3dsMax limitations if it's property of Corona. I mean the bump slot could simply be called "CoronaRelief" or something random whatever, why does it need to share some property of 3dsMax ? Or is there some deeper reason due to integration ?

Dunno if that's good idea. I rarely use bump converter, because more often than not, i like max's native bump result more, even if it's not correct. Of course there are instances where bump without converter simply won't work and then it is like gift from gods :]

(And did anyone ever use the 'bump amount' inside 3dsMax bitmap ? I didn't even know what that crap was for, and now when it's explained, it just seems like some stupidity from DOS era that can be safely ignored)

It can be useful when bitmap is instanced into several materials' bump slots and you want to adjust bump strength for all affected materials at once.
Title: Re: Bump Converter
Post by: Juraj on 2017-11-10, 22:44:36
If one produces incorrect result than that's not very good argument for keeping it :- ).
One of reasons I stick almost 100perc. to normal maps these days.

The other argument is quite weird solution too to be honest :- ). Seems like out-of-the box way to do something that can be done much easier with more commonly accepted workflow. Even though that's currently CoronaNormal map loader.

But I am not negating the need for a useful node...I love nodes, options are options, flexibility is good.
Just not sure why "problematic" scenarios cannot be solved through hard-coding inside shader and instead introducing band-aid stemming from adhering too close to every quirkiness of host app. I would definitely ignore some outdated concepts from 3dsMax.


Title: Re: Bump Converter
Post by: Marijan on 2017-11-11, 08:27:19
Odd thought, but why couldn't "Bump Converter" be hard-coded into the Corona shader ?

I was thinking the same thing. If Bump Converter function is to adjust any map to be used as an input to the bump map channel why not just integrate it into bump channel.
Maybe I'm getting something wrong here. Is there a reason why some maps shouldn't be used through Bump Converter but only through regular bump channel?
Title: Re: Bump Converter
Post by: Ondra on 2017-11-11, 13:45:25
it might make sense to use it internally to replace known problematic shaders, but generally it is bad idea to use this as blanket solution, because bump convertor for example interferes with normal maps (normal map plugged in bump convertor should not work normally), is inefficient for bitmaps (regular bitmap should have better performance there), and generally it is violating conventions of 3ds max. 3dsmax offers every shader to do its own bump mapping, and some do it correctly, those should not be overriden automatically. Overriding those that are deemed to do bump incorrectly is fair game though.
Title: Re: Bump Converter
Post by: romullus on 2017-11-11, 16:00:57
But wouldn't that make even more confusion? I can imagine how Corona would recognize those malicious node if plugged directly, but what would happen if for example, bitmap and cellular map would be mixed in composite node and fed to CoronaMtl's bump slot. Would Corona inject converter code in case mix, composite, CoronaMix nodes are plugged and if so, would output be always correct and optimal?
Title: Re: Bump Converter
Post by: romullus on 2017-11-12, 21:48:34
The other argument is quite weird solution too to be honest :- ). Seems like out-of-the box way to do something that can be done much easier with more commonly accepted workflow.

Here's even better example: bump amount contol directly in texmap, is irreplaceable (was irreplaceable before bump converter), when one wants to mix several bump maps and retain bump amount control on each of them :]
Title: Re: Bump Converter
Post by: dj_buckley on 2018-07-11, 01:01:54
Just to reignite this as this is something that’s completely slipped me by.  But is there a list anywhere of nodes that don’t work without the bumpConverter?  I’ve been fighting for weeks with multiple bitmaps in a composite node and never knew it needed the bumpconverter
Title: Re: Bump Converter
Post by: Njen on 2018-07-11, 04:03:58
Generally, if you are doing anything more than loading in a straight height/bump bitmap into the Bump slot, then you should use a CoronaBumpConverter, or most likely experience incorrect results.

If using a normal and a bump/height bitmap together, then use your normal map as you would normally do (pun intended) by plugging it into the 'Normal' slot, then same as above, you are doing anything more than loading in a straight height/bump map into the 'Additional Bump' slot, then you should use a CoronaBumpConverter, or most likely experience incorrect results.
Title: Re: Bump Converter
Post by: Njen on 2018-07-11, 04:07:55
Something to add: when I use a normal and bump/height bitmap together, it seems that the CoronaBumpConverter multiplies the intended result by 10x of the expected result, and I usually find that most of the time I am setting the 'Additional Bump' to '0.1' to get the desired look.
Title: Re: Bump Converter
Post by: dj_buckley on 2018-07-11, 09:27:03
Aweseome thanks for the response Njen
Title: Re: Bump Converter
Post by: steyin on 2018-07-11, 16:43:34
Something to add: when I use a normal and bump/height bitmap together, it seems that the CoronaBumpConverter multiplies the intended result by 10x of the expected result, and I usually find that most of the time I am setting the 'Additional Bump' to '0.1' to get the desired look.

I think this is a point that needs clarification as I've noticed similar things without even using the bumpconverter. When I use the normal map combined with a bump map I usually increase the bump amount in the CoronaMTL settings and have the additional bump value within the Normal map at a very low number. Normally with just the bump bitmap alone, that value within the CoronaMTL would be much higher, so I feel the normal map does some odd multiplication effect also that I was completely unaware of until I started fiddling with it more.

So I guess the question is: is this the intended effect? And what values should be used/are safe for the normal map value/additional bump value within the normal map, and for the CoronaMTL bump value when using these in combination.