Author Topic: Excluding objects from sky lighting?  (Read 932 times)

2023-06-23, 15:53:10

TeoRossi93

  • Active Users
  • **
  • Posts: 129
    • View Profile
Hello guys,

is there any way to exclude or include any object from a sky that is lighting the scene? Like in corona lights or light material?
Matteo Rossi 3D - https://www.teorossi.it/

2023-06-25, 18:01:23
Reply #1

TeoRossi93

  • Active Users
  • **
  • Posts: 129
    • View Profile
Apparently there's no way to do this at the moment, pretty sad honestly because is useful to lit an object both with a natural hdr and a studio hdr while the whole scene is just lit with a natural hdri.

I tried with skies and light materials assigned to them, huge geometry spheres and materials assigned to them... But nothing of these stuff works...

I hope that the team will consider to add this feature in the future.
Matteo Rossi 3D - https://www.teorossi.it/

2023-06-26, 07:37:14
Reply #2

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Hi there, may I ask exactly what you are trying to do?
Bengamin Jerrems l
Portfolio l Click me!

2023-06-26, 10:05:06
Reply #3

TeoRossi93

  • Active Users
  • **
  • Posts: 129
    • View Profile
Hi there, may I ask exactly what you are trying to do?
Can't share the exact file because I have an NDA on the project right now. I will share a reference image that is pretty similar to the thing I'm working on.
Basically I have a watch in a natural environment, so the watch is lit by a natural hdri. At the same time I want the watch to be lit by a studio hdri aswell, to get nice reflections and stuff.
But this studio hdri must be visibile only on the watch reflections, not on the other stuff.
I know I can composite this by doing 2 different renders, but this project is a 45 seconds animation so it would be stupid to render 90 seconds of stuff.
I know aswell I can use some panels with light textures, but using a studio hdri is faster
Matteo Rossi 3D - https://www.teorossi.it/

2023-06-26, 13:30:08
Reply #4

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
And this can't be controlled via visibility options or compositing tags?
Bengamin Jerrems l
Portfolio l Click me!

2023-06-26, 20:44:26
Reply #5

TeoRossi93

  • Active Users
  • **
  • Posts: 129
    • View Profile
And this can't be controlled via visibility options or compositing tags?

I don't understand how to make it work...

Here in this simple scene I have 2 skies ("Studio" and "Sky").
I want "Studio" and "Sky" to be both visible in the chrome sphere. I want only "Sky" to be visible on green spheres.
How can I setup the scene to do so?
Matteo Rossi 3D - https://www.teorossi.it/

2023-06-27, 10:45:53
Reply #6

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Ok, here is a workaround that should do as you want. Finger's crossed ;)
1. Sky and studio is visible in the metallic sphere & the background (noted in green & orange)
2. If you don't want the studio/sky visible in the background you can uncheck it - (noted in red)
3. Sky is only visible in the green sphere's. Use the ''override'' option in the material and put a sky shader in there - (noted in blue)

I'm attaching my test scene without the HDRI map, that can be replaced with yours. I hope this helps! :)


Bengamin Jerrems l
Portfolio l Click me!

2023-06-28, 18:58:47
Reply #7

TeoRossi93

  • Active Users
  • **
  • Posts: 129
    • View Profile
Ok, here is a workaround that should do as you want. Finger's crossed ;)
1. Sky and studio is visible in the metallic sphere & the background (noted in green & orange)
2. If you don't want the studio/sky visible in the background you can uncheck it - (noted in red)
3. Sky is only visible in the green sphere's. Use the ''override'' option in the material and put a sky shader in there - (noted in blue)

I'm attaching my test scene without the HDRI map, that can be replaced with yours. I hope this helps! :)



Hi Bengamin, this is actually working pretty good but I guess the "override" option in the material is available only from Corona 10.
Since I need to render my project using Rebus Farm I think I will not be able to use version 10...
Is there any way to make this work in Corona 9?
Matteo Rossi 3D - https://www.teorossi.it/

2023-06-28, 21:28:31
Reply #8

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Hi, Rebus will only use officially releases (not daily builds) and as we have recently released V10, there shouldn't be an issue for you both to use it ;) I hope this helps.
Bengamin Jerrems l
Portfolio l Click me!