Author Topic: Discrepancy betwen Corona and native displacement  (Read 2811 times)

2017-10-26, 12:00:34

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I noticed that there is quite big discrepancy between Corona displacement and native displace modifier. If i take two identical flat planes, assign Corona material with displacement to one of them, and subdivide and add displace modifier to another, then on render they both gives almost identical result. But now, if i add noise modifier to both planes or do arbitrary geometry changes, so the planes won't be flat anymore, then on render they both gives significantly different results. Am i right, that Corona calculates displacement from mesh normals differently than native displacement does? And more importantly, is there a way to make those results to match?

In attached renders, green plane is with Corona displacement and red one is with native displacement.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-10-31, 22:42:35
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
BUMP! I think this is pretty serious issue, unless there's other simple way to scatter objects over displaced surface, than to make a copy of that surface with native displace modifier on top. For now, i'm baking Corona displacement in to mesh and use it as scatter surface, but that is a big pain in da ass.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-01, 11:06:54
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12777
  • Marcin
    • View Profile
Can you explain your setup? The noise modifier (or other deformation) is below the 3ds max displacement modifier? So the geometry is deformed first, and then 3ds max displacement is added?

Have you tried with the corona displacement modifier?

Also, are you using "use existing mapping" option in the 3ds max displacement modifier?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-11-01, 11:21:40
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12777
  • Marcin
    • View Profile
Here is what I am getting.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-11-01, 14:30:30
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Can you explain your setup? The noise modifier (or other deformation) is below the 3ds max displacement modifier? So the geometry is deformed first, and then 3ds max displacement is added?

Have you tried with the corona displacement modifier?

Also, are you using "use existing mapping" option in the 3ds max displacement modifier?

Yes to all of that. I'm attaching scene, so you could test it for yourself.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-01, 14:49:29
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Ups, i found where problem is. It's my mistake in scene setup. Thanks for test scene maru, by analyzing it, i was able to understand where my mistake was! :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-01, 14:58:40
Reply #6

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Glad you got it solved, but you did mention two other things t hat definitely could use some attention:

- Baking Corona displacement to mesh. This should be an easy 1 click operation, instead of the present PITA

- C-Scatter following displacement. This would be great to have :)

Regards

2017-11-01, 15:07:14
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
First one is not interesting for me, but i would definitely vote for the second one :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-01, 16:58:46
Reply #8

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12777
  • Marcin
    • View Profile
- Baking Corona displacement to mesh. This should be an easy 1 click operation, instead of the present PITA
This means that you are aware of the current solution with exporting scene?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-11-01, 18:36:04
Reply #9

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Yes. And I think this could all easily be done under the hood with just one click. So why not?

2017-11-01, 19:13:41
Reply #10

Juraj

  • Active Users
  • **
  • Posts: 4765
    • View Profile
    • studio website
First one is not interesting for me, but i would definitely vote for the second one :]

Interestingly the only scatter that does this (ForestPack) can't do it directly either (render-time), but it has sort of 'precompute' button that will simulate the disp.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2017-11-01, 20:22:53
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8864
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Ah, that would be acceptable solution. Someone should register that as feature request :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures