Author Topic: Render a light layer like a shadowcatcher layer but only light..?  (Read 600 times)

2023-03-30, 02:58:21

Stof

  • Active Users
  • **
  • Posts: 23
    • View Profile
So I'm trying to render out a light layer as the headline says.
Currently, I have shadowcatcher with a transparent background like the one attached below, but I would need a light layer like that too it is very important only lighting from my scene is included primarily the environment light (HDRI)...

I hope someone knows how to do this, thanks in advance!

2023-03-31, 13:23:47
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12764
  • Marcin
    • View Profile
Hi, can you please explain what exactly you mean by "light layer"?
What exactly are you trying to do, what is your end goal?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2023-04-01, 05:57:25
Reply #2

Stof

  • Active Users
  • **
  • Posts: 23
    • View Profile
The above picture is only shadows in a render (shadowcatcher set for compositing), I want that but only for the light that hits a object...

A way you can get light layers is to do a render and then take the different light selects, put it into photoshop and set it for overlay (add). But the thing is that those renders do not have an alpha.

So the goal is to just get a render that only contains light or has an alpha that I can use inside photoshop.



Hope i explained this well enough :)



2023-04-01, 10:40:18
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I'm not sure if i understood your task correctly, but you can setup lightmix and then render and save individual light layers. If you save to a format that supports alpha channel, then you can get alpha in every image that you save from VFB.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-04-11, 07:25:46
Reply #4

Stof

  • Active Users
  • **
  • Posts: 23
    • View Profile
Okay so I have some examples here of how the light selects come out and that is as either .exr or .png
As far as I can see there's no transparency on the layers which is what I'm struggling with...
So essentially I'd just like that the black part of the renders comes out as transparent.

I have attached the files below...

PS.
I do understand that it can be composited within Photoshop by using the color dodge (add) blend mode although what I am trying to get is layers that already have transparency so there's no need for blending in photoshop...
« Last Edit: 2023-04-11, 07:29:52 by Stof »

2023-04-11, 16:26:19
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12764
  • Marcin
    • View Profile
I am very sorry that we cannot really help you, but I still struggle with understanding what exact effect you are after. Could you please explain WHY you want to get this kind of layer? What is its usage? What are you doing and what do you want to achieve using this kind of layer?

Also, could you explain what exactly you mean by "light". Do you mean direct lighting that is cast onto all objects in your scene? Or maybe it should also include indirect lighting? Should it also include reflections, refraction?

What you may be interested in is the CShading_RawComponent render element set to "Diffuse". This is the raw lighting that hits all objects (direct + indirect) - https://docs.chaos.com/display/CRMAX/Render+Elements#RenderElements-CShading
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us