Author Topic: Bump converter issue with 3D procedural maps  (Read 4152 times)

2019-06-12, 11:24:47

romullus

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

Bump converter works incorrectly with 3D procedural maps set to either object XYZ or world XYZ coordinates. As if it requires UV coordinates to render 3D maps. Attaching examples of procedural map plugged into bump directly and through bump converter.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-12, 11:37:04
Reply #1

pokoy

  • Active Users
  • **
  • Posts: 1861
    • View Profile
Good catch, I saw something similar a few times but wasn't sure if it's just a case of 'that's how it is'...

2019-06-12, 14:58:40
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
As if it requires UV coordinates to render 3D maps

It does.
Quote
Note: the CoronaBumpConverter relies on UVW mapping, so if an object does not use UVW maps, or if they are incorrect, it may produce artifacts, or may not work at all.
Sauce: https://coronarenderer.freshdesk.com/support/solutions/articles/12000039641
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-12, 15:17:05
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I see, so it's probably not a bug, but rather limitation? Well, at least now i know.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-12, 15:46:16
Reply #4

Juraj

  • Active Users
  • **
  • Posts: 4762
    • View Profile
    • studio website
Whoa, good I read this in time. I was also wondering why my BumpConverted Noise Maps (WorldXYZ) suddenly look only correct on half the objects in scene, I only recently upgraded those materials to BumpConverter as the result from procedurals is superior but...this is big trouble.

So is it necessary technical limitation ? Maybe it should come with warning or something. Can this be improved ?
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!

2019-06-12, 17:18:55
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
Moved to feature requests. Let's see what happens next. :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-12, 17:34:37
Reply #6

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Let's see what happens next. :)

Let me guess, it will be moved to resolved feature requests board? :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-17, 10:41:01
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
@Romullus: as far as I understand this happens if the object actually DOES have correct UVW mapping, right? So for example, you have some custom geometry with planar UVW mapping so that some diffuse texture is mapped correctly, and then you apply a procedural map to create bump. In such case the diffuse texture will be applied correctly (e.g. a bitmap based on planar mapping), but the bump will be incorrect? Is this pretty much what happened to you?

I found out that the Bump Converter actually produces better results with procedural maps when there is no UVW mapping (e.g. if you put "UVW Mapping Clear" modifier on top of your stack). Maybe this could be a valid workaround?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-17, 10:46:40
Reply #8

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Object has UVW mapping, yes, but it is pretty messy (i guess that's what makes those issues). Unfortunatelly i can't remove UV coordinates, as it's needed for other channels and fixing them is pretty much impossible. I wonder if it would work if i'd set map channel to something that has no set UVs, would that work?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-17, 11:36:08
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
Yes, but as you can see in my screenshots the map channel for my noise map is greyed out. I have no idea why, maybe some procedural maps can only be set to channel 1???
You could instead set all other maps' channels to other than 1, but I can imagine it could be a lot of work.
Maybe the bump converter could have a switch to either consider UVWs (useful for bitmap textures) or ignore them (useful for procedurals like here). I will report this in our internal tracker anyway, because clearly there are some issues here, or at least some confusion.

(internal id=364151177)
« Last Edit: 2019-06-17, 11:55:24 by maru »
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-17, 12:16:33
Reply #10

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Ah yes, that's logical, 3D procedurals does not need UVs, so map channel is unaccesible. I'll try your suggested workaround with moving Uvs to another channel and clearing channel 1. Thanks!
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-18, 14:21:22
Reply #11

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
Ah yes, that's logical, 3D procedurals does not need UVs, so map channel is unaccesible. I'll try your suggested workaround with moving Uvs to another channel and clearing channel 1. Thanks!
Let me know if it helped. It could be actually useful for other users.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-18, 14:33:59
Reply #12

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Sorry, didn't have time to test that yet. I'll try not forget to do that and will share my experience.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures