Author Topic: CoronaAO issues  (Read 5627 times)

2015-02-14, 15:25:38

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
What can cause such CoronaAO artefacts and how to fight them? Further subdivision of mesh doesn't help - triangles simply get smaller. Reseting x-form or normals doesn't has any effect.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-14, 15:30:12
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
are normals ok? Show the normals discrepancy render pass and AO settings. Are you using extreme AO spread values?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-14, 16:43:58
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
No, nothing extreme. "Normals discrepancy mask" - cannot find such in RE. Could you poke more specifically, please.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-14, 17:20:48
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
maybe the element is not shown in non-debug versions. Try using the normals and dotproductshading elements instead
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-14, 17:55:37
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Here it is, AO settings and some render elements. I hope i managed to pick the right ones - those RE is still like a chinese arithmetics to me.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-14, 21:49:18
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
The Z direction offset is almost surely causing the problem
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-15, 11:30:27
Reply #6

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I can easily get those triangles without directional offsets.
Will try to play with other models and see if it's general behaviour or just this model specific.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-15, 12:13:31
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Looks like it has nothing to do with this model. I get same errors even with teapot primitive.
Tried to get something similar with Menta Ray, but without luck - its AO behaves more predictable. I think i'll move it to bug section.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-15, 12:16:37
Reply #8

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
in that case give me scene ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-15, 12:54:50
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Sure.
1424001254_AO_issue_02-15.7z
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-15, 17:09:13
Reply #10

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
ok, I took a look at the scene and the problem is caused by the object's geometry. It is actually concave, leading to self-shadowing (made visible due to big color spread value). It is tricky to see, since the non-convex objects are the individual quads.

This is one of the problematic polygons. I created a lines connecting its opposing pairs of vertices:


This is the same polygon from angle - you can see it is concave:


This is the render with default non-convex tesselation:


And here I manually change the tesselation of the quad to produce convex result:
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-15, 18:30:30
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Oh, i see. Now i was able to reproduce it with MR and Vray demo too. But still, it looks like Corona is somehow more sensitive to these artefacts.

Curious if there's a medicine for this. I tried to manually turn those edges, but looks like it lost job - if one face gets better, other turns worse. Automatic retriangulate didn't work neither.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-15, 20:20:39
Reply #12

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I can easily imagine a script that would do it. But I dont know if anyone made it
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-02-16, 11:25:58
Reply #13

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Just a thought: if there were Min distance spinner in CoronaAO map, could it help in such situations?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-02-16, 12:04:11
Reply #14

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
yes, but it would create more artifacts than it would prevent
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)