Author Topic: Ambient Occlusion with shadows turned off and object invisible.  (Read 2843 times)

2024-08-07, 13:57:55

3daltm

  • Active Users
  • **
  • Posts: 46
    • View Profile
Hello everyone. I use dirt on walls a lot. And sometimes I need to use invisible objects without shadows to create dirt. To solve part of this, I use Corona Distance, but unfortunately, the effect is almost never as expected because the dirt is projected upwards and downwards. I think the solution can be achieved with two options: 1 - Allow ambient occlusion to detect invisible objects without shadows, or 2 - Allow Corona Distance to project to one side, like +Z or -Z. Thank you.
In vray, Ambient Occlusion, it's possible with shadows turned off and object invisible.
« Last Edit: 2024-08-07, 14:31:33 by 3daltm »

2024-08-16, 17:18:15
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13461
  • Marcin
    • View Profile
Sorry, but it's a bit too hard for me to imagine what exactly you are doing. Could you please add screenshots, renders?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-08-20, 17:32:22
Reply #2

3daltm

  • Active Users
  • **
  • Posts: 46
    • View Profile
hi!
When I need to create dirt in a specific spot, ambient occlusion with an invisible object doesn't work. If I use Corona Distance with an invisible object, it works, but there's no option to create dirt only downwards; it does it on both sides.
thanks

2024-08-20, 18:44:45
Reply #3

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6016
    • View Profile
You might be able to get something workable by applying the Distance Map version of the material to a Decal, and positioning it so that it takes effect where you want it. I tried somewhat ineffectively to soften the edges a bit too by reshaping the invisible object and using two other objects and an inverted distance map, much better results could be obtained with some actual care taken I wager :)
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-08-23, 09:29:16
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13461
  • Marcin
    • View Profile
Disabling the "visible to camera" option works, but the object still casts shadows. If it doesn't cast shadows, then it does not generate AO either. I am afraid this is impossible to do with Corona.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-08-24, 16:15:47
Reply #5

3daltm

  • Active Users
  • **
  • Posts: 46
    • View Profile
thanks TomG.
This process is quite complex in large scenes. I just wanted it to work like in V-Ray, where you can turn off objects and shadows for objects used to create dirt. I hope it will be possible in the future. Thank you very much.

2024-08-24, 16:16:30
Reply #6

3daltm

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