Forum

#1 2017-01-11 13:55:21

SebCbien
New member

Not affect an object with a light

Hi guys,
I have to render a chapel with a tainted glass and my cam is indoor, the light come only from my windows.
So I have to boost my env light to have a good ambiance. But when I do this my tainted glass is grilled.
So I want to not affect the tainted glass with the EnvLight, but with my square light just behind.

Do you have tip to do that ?
(at least I try to make a set for the tainted glass and substract it in the light set but it's doesn't work hmm )


Thank you in advance for the answer big_smile

http://nsa38.casimages.com/img/2017/01/11/170111021345147590.jpg

Last edited by SebCbien (2017-01-13 15:14:44)

Offline

 

#2 2017-01-13 12:28:13

hulud
Guerilla dev, the guy to hug

Re: Not affect an object with a light

This is a job for the LightOverride node :

Using the LightOverride node, you can modify the light attributes per objects. Yes !

Add a LightOverride node in your RenderGraph.
Connect the taintedglass objects to it.
Set the name of the EnvLight in the LightOverride -> Light attribute
Add the Intensity attribute and override it to 0.
This will set the envlight to 0 for the taintedglass objects.

All is explained here :
http://guerillarender.com/doc/1.4/User% … rides.html

Have fun.


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#3 2017-01-13 12:28:13

aristide
Member

Re: Not affect an object with a light

Hi SebCbien,

Make a specific Light Set for theEnvLight instead of the default one called "Lights".
Connect every geometries to that new set but the tainted glass.

Edit : grilled smile
Anyway there are many ways to achieve what you want.

Last edited by aristide (2017-01-13 12:29:29)

Offline

 

#4 2017-01-13 12:32:41

hulud
Guerilla dev, the guy to hug

Re: Not affect an object with a light

The Aristide method is good too !


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#5 2017-01-13 16:05:47

SebCbien
New member

Re: Not affect an object with a light

Nice thanks you guys ! It's work pretty well !
Better like this ! big_smile (I use the LightOverride)

[img]http://hpics.li/c6829ea

Offline

 

#6 2017-01-13 16:30:11

Réjane
Guerilla dev, the guy to hug

Re: Not affect an object with a light

Hi SebCBien,

Don't forget to close your [ img ] tags ;p Here is your image:

http://img11.hostingpics.net/pics/40053712234.png

Offline

 

#7 2017-01-13 16:39:38

SebCbien
New member

Re: Not affect an object with a light

Ah yes sorry :p !

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB