Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 17-06-2009 , 09:49 PM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180

invisible shader that will accept shadows

I was wondering how to create a shader that will not render in mental ray, but can accept shadows, basically I want an object to drop a shadow on a transparent plane..that I can then use to composite later?
thanks


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 2 17-06-2009 , 10:48 PM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
i guess you are using raytrace shadows? ...if you want to take out an alpha assign a surface shader with a black matte opacity.

# 3 17-06-2009 , 11:15 PM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
i think i already tried that? are you talking about the default surface shader node? just apply that, sorry can you elaborate im still learning


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 4 18-06-2009 , 12:06 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
create a surface shader in the hypershade and then in the attributes of the shader is "matte opacity" drag it to black. this will render the object as black with no alpha channel. which is basically a silhouette. your shadows should have an alpha so you can comp them, so that should be that... i guess!

i think this is basically what you are trying, i have a shake script in this thread if it helps -> https://forum.simplymaya.com/showthre...threadid=31769

# 5 18-06-2009 , 12:18 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
Yes your looks GREAT! thats is what I am trying to do, I am testing out this motion tracking software and I want my cereal box to "appear" that is it sitting on the tile...so I need a way to fake a shadow or something...I tried what you said and this is what I got??? i must be doing something wrong
user added image


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 6 18-06-2009 , 12:28 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
have you matched the lighting? it looks a little dark on the front of the box compared to the special k and diet coke boxes.

also... they are not casting shadows, so why do you want yours to? an occlusion might be enough.

i would also switch to depth map shadows. they are much faster to render out. cos you render them in maya software.

# 7 18-06-2009 , 12:36 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
Sorry that is a bad view, the special k actually has a lrarge shadow behind the flakes box, i have shadows turned on...but that black plane underneath is going to show nothing cause the shadows are black...Man I must be missing something I just want a transparent plane that does not render but is able to receive shadows??? I really appreciate the help


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 8 18-06-2009 , 12:39 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
hypershade > use background > assign to plane user added image

(make the plane bigger!)

# 9 18-06-2009 , 12:49 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
Great almost there now how do i get rid of the super glossy reflection ?
user added image


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 10 18-06-2009 , 12:54 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
think i got it just adjusted the reflectivity and specular...how do i get a better anchor shadow?(underneath)


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 11 18-06-2009 , 01:03 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
you want an ambient occlusion...

Great almost there now

umm not quite...

you need to render all these elements as different layers and composite them in a compositing package. its the only way to correctly match the noise, shadows, lighting, colour etc etc

no one just renders it all out in a one-er. :p

# 12 18-06-2009 , 01:07 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
ok guess its a little more than i am capable of at this point ,,


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 13 18-06-2009 , 01:09 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
just do an ambient occlusion and multiply it over in photoshop then user added image

# 14 18-06-2009 , 01:10 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
if it where for one frame yes that is a good idea...but this is motion tracking fom PfTrack


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 15 18-06-2009 , 01:15 AM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180
i really appreciate all your help regardless.


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads