Author Topic: Aliasing problem when rendering lights...  (Read 8934 times)

2016-08-02, 08:59:16

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
(Lot's of questions from me today as I ramp up in the lighting/lookdev portion of my animated short film - www.cyan-eyed.com)

I am experiencing aliasing issues when I produce a render that has a Corona light in it (or a material with a bright Corona Light material). If I expose the image down so that the light has a value of less than 1, I see nice looking anti-aliasing, but at an EV of 0, I get the telltale 'jaggies'. It almost seems to me when doing my own tests that the current order of math is to sample the light colour then multipliy by the alpha of the light, then multiply the result by the intensity of the light. Or am I making completely wrong assumptions?
« Last Edit: 2016-08-02, 09:27:01 by Njen »

2016-08-02, 13:00:56
Reply #1

erkuttaner

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 35
    • View Profile

2016-08-02, 14:33:05
Reply #2

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Nope, it's not the same issue, there isn't any geometry too close to each other, it's just a light.

2016-08-02, 14:36:55
Reply #3

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
FYI for reference, this is the same image as above, but exposed down 10 stops. Nice beautiful anti-aliasing.

2016-08-02, 14:53:27
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12758
  • Marcin
    • View Profile
Nope, it's not the same issue, there isn't any geometry too close to each other, it's just a light.
It seems to be the same issue - neighboring pixels with huge contrast difference. The solutions suggested in that video should work here too.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-08-02, 15:16:35
Reply #5

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Yes it's high contrast pixels, but that video doesn't help. The image I posted was rendered with over 250 samples. Plus I don't want to clamp the light, or else I would lose information I need to be able to properly comp the image. I've used other renderers where this isn't a problem.

2016-08-02, 15:57:26
Reply #6

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
I just did a test using the ART renderer (which I have never used before until now), and the aliasing is much better than Corona when rendering a light. The pixel spread of the anti-aliasing of the right edge of the ART light is more than twice as wide as the Corona light.

2016-08-02, 16:14:12
Reply #7

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Followup note: to be fair to the above test, ART is using a pixel filter of 3, where as Corona was using a value of 2, so I did another test, with a value of 3 in Corona, and it still didn't look as anti-aliased as ART, but a little more than in the above image..

2016-08-02, 16:18:19
Reply #8

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12758
  • Marcin
    • View Profile
One more solution (although not always possible...) is rendering an image in higher resolution, and then reducing it in post.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2016-08-02, 17:12:47
Reply #9

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
Unfortunately, I am rendering an animated short film, and at this point am unable to spare much more of my meagre resources :(

2016-08-02, 22:49:56
Reply #10

sebastian___

  • Active Users
  • **
  • Posts: 197
    • View Profile
A potential solution would be to add glow/bloom. Since a strong light source or a very white surface should have bloom anyway.
On a black background maybe it looks too strong, but in the second pic I added you can see that on a normal background the bloom would not be as noticeable (in case you don't like bloom).

2016-08-03, 07:23:33
Reply #11

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
For the greatest level of control, I do all comp in comp, not in the render (I have no use for Corona's post effects). I will test to see if I can get a tight glow to look any good with the aliased light in comp, though obviously even if this works, it's just a temporary bandaid fix :D

2016-08-03, 11:07:22
Reply #12

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Glare in latest corona (daily) version resolves exactly this problem. It has that exponential falloff that will give you smooth edges without need to have lots of visible glow/bloom around your light source. In the regular scene without black BG, you will barely notice it. (Just make sure not to leave ray blur at 0)
« Last Edit: 2016-08-03, 11:17:36 by Rawalanche »

2016-08-03, 12:30:44
Reply #13

alexyork

  • Active Users
  • **
  • Posts: 701
  • Partner at Recent Spaces
    • View Profile
    • RECENT SPACES
Maybe the blur value should not be able to be kept at 0, to avoid problems.
Alex York
Partner
RECENT SPACES
recentspaces.com

2016-08-03, 13:36:58
Reply #14

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Maybe the blur value should not be able to be kept at 0, to avoid problems.

It doesn't really cause any problems. Sometimes, under certain conditions, you can indeed get quite sharp glare. It's just that if you want to use glare primarily to cover up aliasing around bright spots, but don't really want to have obvious glares on your image, then you just crank up blur to make sort of bloom out of that :) And such a bloom then gets quite unnoticeable.