Isotropix Forums

LPE

General Discussion about Isotropix and CG related topics

LPE

Unread postby vanderzafa » Wed Dec 11, 2019 8:40 pm

Please, who one knows wich the exactly expression to get all passes, difuse, sss, spec/gloss, transmission, emission, split into two LPE by Direct and Indirect Light, that plus both to resulting the beauty layer.

Thanks !
vanderzafa
 
Posts: 38
Joined: Thu Oct 19, 2017 8:46 pm

Re: LPE

Unread postby esmith » Wed Dec 11, 2019 9:49 pm

So you want 2 AOVs, 1 for the full beauty render of Direct lighting, and 1 for full beauty render for indirect?

Make sure your up to speed on all the technicalities of the OSL language used, here are some documents
https://www.clarissewiki.com/3.6/using_ ... sions.html
https://github.com/imageworks/OpenShadi ... xpressions

And here are some videos tutorials:
https://youtu.be/IULLFVLKDrQ

Finally I've attached a project you can use to test out some LPE and there are of course some already built LPE in the project.
Attachments
LPE.zip
(122.94 KiB) Downloaded 77 times
User avatar
esmith
 
Posts: 169
Joined: Mon May 22, 2017 4:11 pm

Re: LPE

Unread postby vanderzafa » Wed Dec 11, 2019 10:44 pm

Yes, and I will use this two AOVs for specific light.
vanderzafa
 
Posts: 38
Joined: Thu Oct 19, 2017 8:46 pm

Re: LPE

Unread postby vanderzafa » Wed Dec 11, 2019 11:11 pm

Sorry, if i wasn't clear. i would like to get the beauty by only two passes, Direct and Indirect. is it possible ?

In this page has something similar what i want.
https://docs.arnoldrenderer.com/display ... ssion+AOVs

RGBA = direct + indirect + emission
vanderzafa
 
Posts: 38
Joined: Thu Oct 19, 2017 8:46 pm

Re: LPE

Unread postby esmith » Thu Dec 12, 2019 4:35 am

Yes look at the scene I've shared with you, you can have a indirect only per light of all objects, same for direct. If you want to rebuild the beauty keeping Direct and Indirect separately this would be done in your compositing package
User avatar
esmith
 
Posts: 169
Joined: Mon May 22, 2017 4:11 pm

Re: LPE

Unread postby mdkai » Thu Dec 12, 2019 4:44 am

Just take the Arnold example, add the R lobe and thats it at least for any non emissive stuff...
Here is an example:
lpe1.jpg

lpe2.jpg
lpe2.jpg (29.63 KiB) Viewed 1378 times


Cheers
Kai
Join us at the Discord https://discord.gg/G5cJj9A
mdkai
 
Posts: 325
Joined: Tue Oct 07, 2014 7:24 pm

Re: LPE

Unread postby vanderzafa » Thu Dec 12, 2019 6:29 am

mdkai wrote:Just take the Arnold example, add the R lobe and thats it at least for any non emissive stuff...
Here is an example:
lpe1.jpg

lpe2.jpg


Cheers
Kai



Is possible to get transmission pass in the same LPE ?
vanderzafa
 
Posts: 38
Joined: Thu Oct 19, 2017 8:46 pm

Re: LPE

Unread postby esmith » Thu Dec 12, 2019 7:36 am

mdkai wrote:Just take the Arnold example, add the R lobe and thats it at least for any non emissive stuff...
Here is an example:
lpe2.jpg


Cheers
Kai


Awesome, good resource, OSL is not "easy" to visualize.

C[DSVG][DSVOB].*

This is getting me indirect of everything I believe, adding "Glossy" to the aov
User avatar
esmith
 
Posts: 169
Joined: Mon May 22, 2017 4:11 pm

Re: LPE

Unread postby vanderzafa » Thu Dec 12, 2019 6:16 pm

Hi there, thanks all for feedback. I had some progress and I think it is almost there what I want.

For now I have this result, and comparing to the beauty, i would like to know if is possible get the emission result in the same LPE, just for curious because I know this is better in another passes.

https://drive.google.com/file/d/1fG5j323HXgyYJVyY99QjIOPKS_WQp_mC/view?usp=sharing


About LPE, I wrote this:

Direct Light
C<TS>*[DRSV]L

Indirect Light
C[DRSV]*<TS>*[DRSVOB].*[DRSVOB]L


Please tell me if there is something wrong in the expression above, because I don't know anything about it.
I am trying to do something that allow me to tweak the light pass, change the color and intensity, maybe turn off them, that´s why I need the direct and indirect rays of each light, in this I can change the intensity of indirect without overexposure direct rays.
vanderzafa
 
Posts: 38
Joined: Thu Oct 19, 2017 8:46 pm

Re: LPE

Unread postby esmith » Thu Dec 12, 2019 8:40 pm

I believe, in my experience, if you want to build a nuke graph to do what your talking about, there is an easier way. And that's just using a light ID for each LPE and then having the standard LPE/AOV breakdown...Diffuse/Glossy, etc. That way in your nuke graph, you have the entire suite of channels to adjust PER light. So you can adjust the indirect bounce of Light_ID_423.....etc. And if you don't care about that much fidelity to adjust PER light.

Then all you need is:
C.*<L.'LGT_ID_1'> where LGT_ID_1 is the value in the Light Path Expression attribute of the light, so

Beauty per light, I have 3 lights:
C.*<L.'LGT_ID_1'>
C.*<L.'LGT_ID_2'>
C.*<L.'LGT_ID_3'>

You of course can replace "L" with any of these LPE Light Labels and produce just THAT pass for THAT light as well.

Does this workflow make sense...it's what I'm used to seeing at Dneg and the like.....

Also please subscribe to this thread:
viewtopic.php?f=11&t=6063

Lets get a nice group of ready to go LPEs in the box.
User avatar
esmith
 
Posts: 169
Joined: Mon May 22, 2017 4:11 pm

Next

Return to General Discussion
cron