PDA

View Full Version : MR: shadow pass for just one object ?


deadalvs
05-28-2008, 01:15 AM
hi !

(using mental ray, maya 2008)

i have plane («table») with a box on it, an hdri dome.

i don't know how to set up the render layers so i get the shadow pass for just the shadow on the plane without the shadow on the box.

i guess the resulting image should be plain white with just a little grey rim on it.
:banghead:

noizFACTORY
05-28-2008, 02:05 PM
Create a render layer with the table, the box and your lights. Select your box and open up the attribute editor. Under its render stats, uncheck Receive Shadows. Now, the box only casts shadows and doesn't receive any (naturally). In the render layer's attributes select the shadow pass option.
Now you should get what you want (unless I messed up anything). Also, note that if you don't want the table self shadowing itself in the render, then you can switch off its cast shadow attribute and leave the receive shadow on.

deadalvs
05-28-2008, 02:50 PM
this is so damn frustrating !!!

it does not work... :banghead: :banghead: :banghead: :banghead: :banghead:

i added the objects with a blinn material (or what type of material should i use ?) and clicked the shadow pass option. it renders NO color and NO alpha. this sucks. period.

what the hell am i doing wrong ...

i have to stop working thru the night.

* * *

but thanks so far !!

noizFACTORY
05-28-2008, 03:04 PM
Your shadow pass won't render any colour. But the shadows show up in the alpha. Just check the alpha of your rendered image in fcheck or render view.
And no, it doesn't matter what type of material you use for your shadow pass (obviously, it should be the same as other passes).

deadalvs
05-29-2008, 09:43 AM
i have now the shadow working for a directional light. this renders okay. but i also have a mental ray environment IBL (.hdr) that still does not show up in that shadow pass... :(


i have set the stuff to raytracing... do i have to activate the IBL settings a second time for the render settings for the layer to work ?
[edit... no it remembers the created IBL settings...]

strange...

deadalvs
05-29-2008, 09:53 AM
i could hug the world !!!

i found it out ...

again i did not turn on final gathering.

now, also the shadow pass gets the «diffuse» shadow of the hdr dome.

let's work on !

*lalaaalala*

noizFACTORY
05-29-2008, 10:47 AM
i could hug the world !!!

i found it out ...

again i did not turn on final gathering.

now, also the shadow pass gets the «diffuse» shadow of the hdr dome.

let's work on !

*lalaaalala*
Hey thats great! My bad I didn't pay attention to the fact that you were using IBL (which would have suggested that final gathering was on).
Work away to glory!
*lalaaalala* LOL :)

deadalvs
05-29-2008, 11:53 AM
oh man...

sometimes it's so damn frustrating.

like just this minute. just found out that one of my surface shaders that i set to white out color was black again... it just takes so long to finally find stuff like this you thought you set up already so long ago and worked so far. man !

noizFACTORY
05-29-2008, 12:48 PM
Haha, just another day at work I guess?

CGTalk Moderation
05-29-2008, 12:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.