Isotropix Forums

OSL Window Box

Clarisse related tips and tricks

OSL Window Box

Unread postby dane » Thu May 09, 2019 10:12 am

I'm just posting here as I didnt see much about this but we have been working on some large scenes using kitbash3d assets. One of the things we needed to do was add interiors to all the buildings as the shots are mainly at night. To do this we duplicated and offset the window glass to sit behind the window and then assigned this OSL shader setup.

You can download the osl here: http://julius-ihle.de/?p=2451 and use it directly in Clarisse.

Render using OSL shader for windows -->

osl.png
render


Here is the shader setup for the OSL windows -->

graph.png
graph


As each geo was unique we are using the utility node set to 'vertex ID' to add variation to the switch node itself and also variation to the gain so room lights are on/off.

All renders fine on the farm without any issues. When building the shaders and connecting/disconnecting you have to prompt the osl node as it seems to die sometimes. Apart from that, works perfectly!

Cheers,

Dan
dane
 
Posts: 43
Joined: Wed Aug 29, 2018 11:50 am

Re: OSL Window Box

Unread postby dboude » Thu May 09, 2019 10:28 am

Thanks for sharing Dane :!:
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 877
Joined: Mon Jul 03, 2017 10:51 am

Re: OSL Window Box

Unread postby meryon » Tue May 14, 2019 4:42 pm

This is great. Thank you for sharing your process!

I have Neotokyo kitbash too.
Did you made some transform on the Windows geo (triplanar proj ?) I have this result when I try to apply the shader with OSL on windows geo.
Otherwise, it works well on a basic planar.

clarisse_OSL.jpg


Thanks!
meryon
 
Posts: 70
Joined: Sat Mar 12, 2016 2:41 pm

Re: OSL Window Box

Unread postby dane » Sun May 19, 2019 8:42 pm

No worries, yea you'll have to replace the window geo manually, each glass plane needs to have its local transforms for the OSL to work correctly it seems. It only took a couple of days to go through all our packs. Good thing is you then get per window IDs that you can use to drive randomness like I have.

Hope that helps
dane
 
Posts: 43
Joined: Wed Aug 29, 2018 11:50 am


Return to Tips and Tricks