OSL, CoronaAO, mix different UVW channels

Hi,
Corona version is 7 hotfix 1 and 3dsmax2021.

Text and images to reproduce:

  1. OSL: Checker with UVW set to Map Channel 1.

  1. OSL: Checker with UVW set to World.

  1. OSL: Noise with UVW set to World.

  1. Mix using a CoronaMix. Ok.

  1. Mix using a OSL: Mix (color). Ok.

  1. CoronaAO set to Inside.

  1. Using the OSL: Noise as AO distance. Ok.

:cool_button: Mix using a CoronaMix. Ok.

  1. Mix using a OSL: Mix (color). Issue.

I think there is an issue with UVW coordinates.
Only CoronaMix seems to be able to correctly read UVW coordinates passing through CoronaAO.

Hi,

I was able to reproduce the issue you described, but it doesn’t appear to be an error specific to Corona. I was able to replicate the same behavior with V-Ray as well. It seems that this is an issue with 3ds Max itself. Please let me know if I have misunderstood your problem.

Hi, thank you for taking the time to test it.
I only tried it with Corona, so I don’t know if it’s a 3dsMax issue.

Sure, I understand.

If this issue is still bothering you, feel free to test it out on weekends and try using different rendering engines as well. If you think this might be a problem with Corona, please let me know about your testing, and maybe we can look into it together to find a solution.

In the meantime, happy rendering! :smiley: