Author Topic: Corona renders different shading with anisotropy  (Read 1227 times)

2025-02-28, 23:57:16

MetricaVisuals

  • Active Users
  • **
  • Posts: 24
    • View Profile
    • https://metricavisuals.com/
We have a scene where corona will produce a shading bug when using anisotropy, all objects have the same material but render way different.
We spend a LOT of time debugging this until we found the anisotropy was to blame..


2025-03-03, 16:05:08
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13461
  • Marcin
    • View Profile
Interesting. Could you share the scene with us? Even a stripped version like the one from your screenshot would work.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-03-03, 16:56:14
Reply #2

pokoy

  • Active Users
  • **
  • Posts: 1974
    • View Profile
Try this - (in a temp scene or copied objects of ocurse):
- in 'advanced options' tab of the material, change 'anisotropy orientation' from local axis to UVW
- now apply a UVW mod in box mode to *all* affected objects so they share the same UV space
- make sure to use the same UV channel for both the anisotropy orientation and UVW modifier.

If the problem goes away, it means the objects have been modeled in different local axes. This happens when you start modeling one wall in the left view, another one in front/top etc. The local axis of these objects will be different and since anisotropy treats each one differently each object will reflect differently.
By using UVs as anisotropy orientation *and* making sure all objects have their UVs defined the same way by using a UVW modifier, it should render the same for all objects.

A good addition for the physical material would be to have a user 'reference node' for anisotropy orientation, that way users wouldn't have to worry, the specified reference node would then be used as axis reference for all objects using that material.

2025-03-04, 15:42:19
Reply #3

arqrenderz

  • Active Users
  • **
  • Posts: 1061
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Thx Pokoy !
When i read this part "objects have been modeled in different local axes" it clicked my mind, i was trying to solve it reconstructing the meshes with boxes, planes,etc.. with various results because of this!
I can now rest in peace :)
+1 for the reference node and this knowledge
 

2025-03-04, 16:04:41
Reply #4

pokoy

  • Active Users
  • **
  • Posts: 1974
    • View Profile
Please don't rest in peace yet! :D

Glad it was helpful.

2025-03-24, 11:44:04
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13461
  • Marcin
    • View Profile
I have logged the "anisotropy by reference node" option as a feature request here: https://chaoscorona.ideas.aha.io/ideas/CMAX-I-155
Feel free to vote for it and/or comment. Note that it will be invisible for some time, until approved by Tom.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-03-24, 12:09:36
Reply #6

pokoy

  • Active Users
  • **
  • Posts: 1974
    • View Profile
I have logged the "anisotropy by reference node" option as a feature request here: https://chaoscorona.ideas.aha.io/ideas/CMAX-I-155
Feel free to vote for it and/or comment. Note that it will be invisible for some time, until approved by Tom.
Great, thanks! However the link doesn't work for me - it says 'record not found'.

Maybe even it would make sense to have an 'object space reference map' node where any nested map/maptree would inherit the picked object's local space?
A more generalized solution wouldn't be bad since this is useful for more properties than in this case with anisotropy.

2025-03-24, 13:00:52
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13461
  • Marcin
    • View Profile
Great, thanks! However the link doesn't work for me - it says 'record not found'.
Tom needs to approve it first. :)

Quote
Maybe even it would make sense to have an 'object space reference map' node where any nested map/maptree would inherit the picked object's local space?
A more generalized solution wouldn't be bad since this is useful for more properties than in this case with anisotropy.
Could you please log this one at https://chaoscorona.ideas.aha.io/
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2025-03-24, 14:35:50
Reply #8

pokoy

  • Active Users
  • **
  • Posts: 1974
    • View Profile
Oh sorry - missed that it needs to be approved first.

Will post the node map idea once it's approved and reference it so it's clear it's a follow up and a generalization of that reqeust.

Thanks Maru, much appreciated!