Author Topic: Bump map and smooth surface  (Read 6606 times)

2015-05-29, 12:24:17

Alessandro

  • Active Users
  • **
  • Posts: 323
    • View Profile
    • DotLab Srl
I find this problem, also with new corona map, using last build (2015/05/28), don't know with previous.
The scene is too simple, middle gray background and corona sun.
Is it me or it's a bug?
My Ducati or a render with Corona.....mmm, hard question!

2015-05-29, 12:30:14
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Can be shadow terminator problem.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-05-29, 12:35:21
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
Yes, it looks like the old terminator. It will always be more apparent when using bump/normal maps.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-05-29, 12:41:52
Reply #3

Alessandro

  • Active Users
  • **
  • Posts: 323
    • View Profile
    • DotLab Srl


Btw, any solution? Otherwise I'll public in Mantis...
thx
My Ducati or a render with Corona.....mmm, hard question!

2015-05-29, 12:43:39
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models

2015-05-29, 12:51:17
Reply #5

Alessandro

  • Active Users
  • **
  • Posts: 323
    • View Profile
    • DotLab Srl
No, also with 200 subdivisions it does not smooth the shadow, it just move the place of the light limit.
I attach the scene if you want to play ;)
My Ducati or a render with Corona.....mmm, hard question!

2015-05-29, 13:14:03
Reply #6

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
Stronger bump would always intensify this effect. I don't know what's the magic behind this. Ondra could surely explain the technical reason.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-05-29, 14:04:24
Reply #7

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
Oh how I would love to see this resolved, thanks for bringing this one up. There's clearly a limit how much bump you can use on curved surfaces and I constantly run into this issue when using strong bump. Bump looks really nice in Corona so having this issue resolved would be great.

2015-05-30, 01:15:41
Reply #8

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Stronger bump would always intensify this effect. I don't know what's the magic behind this. Ondra could surely explain the technical reason.

Everything with geometry normal facing away from sun will NOT get any lighting because shadow ray would be generated under the surface, travelling through the cylinder object and hitting its backface when resurfacing.
Everything with geometry normal facing towards sun can get lighting. BUT the amount of lighting is dependent solely on shading normal. If it would be dependent on geometry normal, the bump map would have no effect, because it can only modify shading normals.

So: lighting amount depends only on shading normal. Geometry normal only has on/off effect. So there is sharp jump where geometry normal cuts off all lighting. Without the bump mapping, shading and geometry normals are almost identical, so the "amount" and "on/off" effect work together as they are supposed to.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-06-09, 14:58:41
Reply #9

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio

2015-06-09, 16:00:00
Reply #10

Alessandro

  • Active Users
  • **
  • Posts: 323
    • View Profile
    • DotLab Srl
Stronger bump would always intensify this effect. I don't know what's the magic behind this. Ondra could surely explain the technical reason.

Everything with geometry normal facing away from sun will NOT get any lighting because shadow ray would be generated under the surface, travelling through the cylinder object and hitting its backface when resurfacing.
Everything with geometry normal facing towards sun can get lighting. BUT the amount of lighting is dependent solely on shading normal. If it would be dependent on geometry normal, the bump map would have no effect, because it can only modify shading normals.

So: lighting amount depends only on shading normal. Geometry normal only has on/off effect. So there is sharp jump where geometry normal cuts off all lighting. Without the bump mapping, shading and geometry normals are almost identical, so the "amount" and "on/off" effect work together as they are supposed to.

Well, that's a great technical description of who it works. It can be good to understand, but it cant be an answer to a problem. Don't be afraid for this, but one thing is to understand who the software works, one other thing is to work with the software ;)
I can be happy to have your technical description, but if it does not solve the problem I think we can't name it as a "Resolved bug".
I have had some discussion (very interesting technical discussion) with Master Zap about some Mental Ray artifacts, he always have given me amazing technical reason for this, but no practical solutions. One of the reason why I choose Corona is about it's way to solve a lot of situations in a very easy and "natural" way. So, please, with a lot of respect for you, don't give me a technical reason for a defect, give me a solution ;)

Btw, without bump it works good. With bump it works good in surface with no bump effect, but it works wrong (sharp) in bump effect, as you can easily see it on the bottom of the cylinder. If it is known limitation, I'll wait for a solution. If it's me, happy if you will correct and teach me the right way ;)

best regards,
alessandro

Edit: sorry to have this late to give this answer, I've lost your one...
My Ducati or a render with Corona.....mmm, hard question!

2015-06-09, 16:09:06
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Currently the only solution is subdivide your mesh, AFAIK. Yes, i'm aware that's not always possible, but we have to live with it.

As for your example, such prominent effect better be done with displacement anyway.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-06-09, 18:06:41
Reply #12

Alessandro

  • Active Users
  • **
  • Posts: 323
    • View Profile
    • DotLab Srl
Currently the only solution is subdivide your mesh, AFAIK. Yes, i'm aware that's not always possible, but we have to live with it.

As for your example, such prominent effect better be done with displacement anyway.
The cylinder has 200 segments, and this not solve anything. I agree that for a so strong bump is better to use a displace.
I also agree we can live quite fine also with this ;)
My Ducati or a render with Corona.....mmm, hard question!