Author Topic: Add 'faked' chromatic aberration on metals  (Read 3413 times)

2018-06-05, 09:20:18

OccultMonk

  • Active Users
  • **
  • Posts: 94
    • View Profile
I would like to add a chromatic aberration effect on metals (a bit of rainbow effect in high reflective areas). I image it is possible with a few shader falloff maps/channel shift? Does anyone know how to 'fake' chromatic for a certain material. I believe I have seen something like that an other renderer.

2018-06-05, 09:53:23
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Take a look at this topic: https://forum.corona-renderer.com/index.php?topic=18856.0 You may find your answer over there.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-06-05, 10:09:30
Reply #2

OccultMonk

  • Active Users
  • **
  • Posts: 94
    • View Profile
Thanks but not really what I meant. I mean chromatic aberration like you get with lens distortion, but only on certain materials.

2018-06-05, 11:05:21
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Maybe you could render image with masks, load it in photoshop, duplicate layers, apply CA effect on one of them and combine both layers using masks?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-06-05, 12:42:12
Reply #4

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
Here's how to get this, assuming you want abberation in reflections. In order to introduce some sort of deviation in R/G/B channels (or whatever colors you want) you need to split the reflection channel into separate components, use different values on e.g. bump, glossiness, reflection strength etc and compose them. Best done with a LayerMtl.
See image below, scene attached (max 2016). This is an extreme example with different glossiness values, for a less visible effect make the reflection glossiness values differ only a tiny bit, or use a separate bump that'll shift the reflections on each reflective material. If you want a white reflection on top, add another Mtl with white reflection on top and blend over the other layers to your liking.
Hope this helps.
« Last Edit: 2018-06-05, 12:50:51 by pokoy »

2018-06-05, 19:28:54
Reply #5

mferster

  • Active Users
  • **
  • Posts: 523
    • View Profile
Is this kinda what you are looking for?

 it uses a kind of goofy map in the light's texmap slot, then you only include the metal in your light's include list.

Here is the scene.
« Last Edit: 2018-06-05, 19:32:51 by mferster »

2018-06-05, 21:02:00
Reply #6

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
That's a pretty cool effect.

2018-06-07, 17:53:36
Reply #7

OccultMonk

  • Active Users
  • **
  • Posts: 94
    • View Profile
Thanks for the answers! I think these might work and I hope I can test them soon.

2018-12-16, 11:50:34
Reply #8

OccultMonk

  • Active Users
  • **
  • Posts: 94
    • View Profile
@mferster I tried to replicate it, because the 3dsmax file does not contain the map settings, but it won't work. Do you have a 3dsmax file that does include the map settings too? Thanks!

2018-12-17, 17:11:51
Reply #9

mferster

  • Active Users
  • **
  • Posts: 523
    • View Profile
Hey Occultmonk,

I just checked the max file and the map is definitely there and still working.

The map that generates the chromatic effect is in the color texmap slot in the light's modifier panel.

Click on the light and drag the map instance it into your material editor.

2018-12-19, 08:10:56
Reply #10

OccultMonk

  • Active Users
  • **
  • Posts: 94
    • View Profile
@mferster Thanks!

But isn't there a way to make it material based instead of light based. I only want to add it to certain metal parts, not every rendered object.


2018-12-19, 17:12:37
Reply #11

mferster

  • Active Users
  • **
  • Posts: 523
    • View Profile
Yep, it's a hack. That's what the include list is for, you only add the light to it to the metal objects.

Do you have an image of the effect you are trying to reproduce?