Author Topic: displacement issue  (Read 1758 times)

2021-12-05, 13:38:48

elaraisawhale

  • Active Users
  • **
  • Posts: 21
    • View Profile
on the latest daily build (v8 03-12-2021) i noticed this thing and i'm gonna ask you if is a bug or not.
basically on a simple cube i added a noise map (with contrast cranked up) as displacement, cubic projection, and the displaced part close to the edges seems "shifted". shouldn't be straight? i know my english is not good, so i added an image to show you what i'm trying to explain.
if is not a bug, sorry for my stupid question.
thank you
« Last Edit: 2021-12-05, 19:52:32 by elaraisawhale »

2021-12-05, 18:50:14
Reply #1

andeltoz

  • Active Users
  • **
  • Posts: 36
    • View Profile
I confirm what elaraisawhale reported, the displacement seems to propagate from the center of the object outwards. UVW Map and Cubic Map test.
Imac 2020 27 inches, macos Big Sur, Cinema 4D R21
« Last Edit: 2021-12-05, 18:56:44 by andeltoz »

2021-12-05, 20:10:25
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
It's either that, or teared mesh at the sharp edges, pick your poison. At least you can fix this issue quite easily - just add support loops near every edge and you should have much better outcome.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-06, 00:18:17
Reply #3

swiat3d.net

  • Active Users
  • **
  • Posts: 47
    • View Profile
Yep, something is wrong.

Simple cube and editable cube with extra edges.
Projection: Cubic and UVW Mapping (default), same result.
Materials: Physical and Legacy, same result.

Cinema R20.059, Win 10, Corona Version: 8 (DailyBuild Dec  1 2021)

2021-12-06, 10:32:27
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I think at this point you should ask yourself, what result do you really expect to see? From the last examples, i can clearly see that displacement is working as expected - between support loops, it is displacing strictly perpendicular to the surface and between the edges and support loops, displacement direction is gradually leaning towards the edges to flush meet with the other surface. Alternative to this, would be big gaps in mesh at the hard edges, that's how Corona displacement used to work many versions ago and nobody liked it.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-06, 10:52:07
Reply #5

elaraisawhale

  • Active Users
  • **
  • Posts: 21
    • View Profile
ok, i understand now how it works even it would be better if the shifting would starts more close to the edges instead starting from the center of the polygon. many thanks for the answer!!

2021-12-06, 11:02:37
Reply #6

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
It can't start at arbitrary position. If you want it to be closer to the edges, you need to move the support loops closer to those edges, but if the difference between original and displaced surfaces is relatively high, like in the last example, then nothing will help and you will still won't have pretty result near the edges.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-07, 09:46:43
Reply #7

mmarcotic

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 544
  • Jan - C4D QA
    • View Profile
Hello,

can you share a scene with us? I can't seem to reproduce this on my end. Please make sure to include any assets if used.

Thanks,
Jan
Learn how to report bugs for Corona in C4D here.

2021-12-07, 21:42:14
Reply #8

andeltoz

  • Active Users
  • **
  • Posts: 36
    • View Profile
certainly, here it is