Author Topic: Displacement issues  (Read 3450 times)

2018-05-24, 12:08:42

james_g_brown

  • Active Users
  • **
  • Posts: 35
    • View Profile
Hi,

On various external images we have been creating lately we have been using displacement for bricks and have experimented with numerous settings but always run in to some trouble.

If you look at the attached image you will see that in the render on the left, the brick isn't 'sharp' and the edges all look a bit crumbled and are not nice and sharp, even though the b&w map we are using (top right of the image is nice and neat and sharp.

Has anyone else had this issue? Its the only thing in Corona that is holding us back at the moment and if we can rectify this we will be super happy!

Any help would be great.

Cheers,

James

2018-05-24, 12:36:34
Reply #1

James

  • Active Users
  • **
  • Posts: 40
    • View Profile
    • Jamesmadethis.com
You could lower the screen size in Displacement under Performance in the render settings.

2018-05-24, 12:42:14
Reply #2

james_g_brown

  • Active Users
  • **
  • Posts: 35
    • View Profile
Hi. Yeah we have tried that. It helped a little but when we have brick taking up such a large part of a 5k image it didn't really do much and would often crash our scene if we lowered it too much.

Thanks

2018-05-24, 12:46:05
Reply #3

James

  • Active Users
  • **
  • Posts: 40
    • View Profile
    • Jamesmadethis.com
What res are the brick maps?

2018-05-24, 12:47:36
Reply #4

james_g_brown

  • Active Users
  • **
  • Posts: 35
    • View Profile

2018-05-24, 13:17:56
Reply #5

James

  • Active Users
  • **
  • Posts: 40
    • View Profile
    • Jamesmadethis.com
Even though 8k is big, its divided up by alot of bricks. Looks like 24 bricks wide, so thats only 333px per brick - which when you look at it that way, its not very high res for those fine joint lines.

Also have you got them as Coronbitmaps or normal bitmaps? The different filtering opts shown here might help you out.  https://coronarenderer.freshdesk.com/support/solutions/articles/12000033420-what-is-the-difference-between-corona-bitmap-and-3ds-max-bitmap-node-

2018-05-24, 13:23:50
Reply #6

james_g_brown

  • Active Users
  • **
  • Posts: 35
    • View Profile
We have tried using max's 'tiles' for displacement as well to get rid of any maps and texture sizes and still had the same results.

thanks for the info about filtering. We will have a play with those and see if it helps.

Cheers.

2018-05-24, 13:36:01
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Try blurring the displacement texture a bit. It may sound counter-intuitive, but it will be actually easier for Corona to render without edge artifacts, and with low blurring, the edges should still stay quite sharp.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-05-24, 13:37:57
Reply #8

james_g_brown

  • Active Users
  • **
  • Posts: 35
    • View Profile
Thanks Maru, will give that a try as well.

2018-05-24, 16:19:52
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
That should be quite easy to test. Move your camera closer to the brick wall and render small crop. If bricks still looks bad and jaggy, then it's probably due to low quality/resolution of displacement texture. However if it looks much better at close up, then most likely that means that displacement screen size is too big. If i'd have to guess, i would say it's latter. In your attached example, gaps between the bricks are about 2-4 px size, that means at default settings they are subdivided just in 1-2 triangles - that's nowhere near enough for good looking displacement.

I would probably leave displacement for close-up shots and for distant ones i would use normal map. The gaps would look much cleaner.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures