Author Topic: [RESOLVED] Corona Bump Converter - Theory?  (Read 3596 times)

2020-06-23, 07:25:45

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
What exactly is the Corona Bump Converter doing under the hood? I'm curious if there are ways to arbitrage the CBC for other purposes, maybe even gloss / roughness adjustment.
« Last Edit: 2020-06-30, 04:23:33 by cjwidd »

2020-06-23, 14:08:27
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9283
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I don't know what do you expect from bump converter, but i doubt it would be useful for anything else than for bump mapping. Thing is that bump maps in 3ds max are treated differently than most other maps and they has some serious limitations. For example, you can't modify bump maps with standard tools, you mostly can't combine several bitmaps and procedurals, also procedural maps tend to give incorrect results when using them as bump maps. Unfortunatelly autodesk doesn't give a damn about this problem, so Corona had to introduce special map which makes bump mapping much more useable.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2020-06-23, 22:40:54
Reply #2

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
So does it apply a LUT or do some sort of contrast enhance, or what is it doing?

2020-06-25, 05:02:11
Reply #3

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
It essentially converts the input colour to the native Max bump delta. If you are doing anything more complicated that using the Output node to affect the scale of the bump, you need the bump converter, otherwise your input maps will have no effect in the bump slot. The bump converter will slow down the render just a tiny bit because it is performing a shader evaluation, but there is really no other way to get around it, so it is necessary.

The issue is with Max itself, not Corona, for treating the bump data differently to every other slot.

2020-06-25, 16:56:24
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13711
  • Marcin
    • View Profile
The not-so-technical explanation is that 3ds Max treats bump differently than other mappable material properties. You can easily observe that by plugging a procedural Cellular map into diffuse and bump and observing how it works fine in the diffuse channel, but bump does not react to things like color changes in the Cellular map. Corona "fixes" that by turning the input map into standard black-and-white information. This also relies on UVW mapping, so if your object has incorrect UVWs, it might glitch.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-06-27, 11:13:27
Reply #5

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
I might be asking an overly technical question, but it was borne out of the fact that after using the bump converter with a variety of grayscale maps, it seems like the bump converter enhances the bump effect. I naively thought maybe there was some sort of S-curve, or LUT, or something happening under the hood that would explain that.

2020-07-08, 15:18:43
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13711
  • Marcin
    • View Profile
Here is the answer from the dev team:
The bump vector is computed from the input map derivatives/local difference. It evaluates the map in several places and computes the difference of the values. Larger difference in given direction (e.g. along X-axis) means stronger bump in the same direction.
It is a standard approach when computing bump from texture/height map.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-07-08, 23:20:49
Reply #7

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Very good, thank you!