Anim8or Community

General Category => General Anim8or Forum => Topic started by: ronaldefarmer on January 03, 2016, 02:17:20 pm

Title: Transparent material that can receive shadows?
Post by: ronaldefarmer on January 03, 2016, 02:17:20 pm
Does anyone know of a way to make shadows appear on a transparent material?
Title: Re: Transparent material that can receive shadows?
Post by: cooldude234 on January 03, 2016, 03:37:20 pm
Not a feature.
Title: Re: Transparent material that can receive shadows?
Post by: captaindrewi on January 03, 2016, 03:59:40 pm
Think one can can't one?
Set the object to receive shadows.
Is this what you mean or do you refer to something more specialised and complex?
Title: Re: Transparent material that can receive shadows?
Post by: Raxx on January 03, 2016, 04:41:56 pm
A totally transparent object technically can't reflect light, so naturally shadows can't be displayed on it. Custom shaders that could bypass this aren't a feature in Anim8or yet.

The long way around is, you can render the scene in completely white (including the transparent object) with solid materials and capture just the black shadow. Then in an image editor blend this image on top of a the regular, non-shadowed version of the scene that doesn't contain the transparent object. This creates a shadow on a transparent object.
Title: Re: Transparent material that can receive shadows?
Post by: ronaldefarmer on January 03, 2016, 05:32:41 pm
Thanks for your response everyone. I realize that it isn't something that could happen in the real world, but what I'm trying to do is capture the shadows of objects while saving to PNG with transparent background.


 


Imagine that the yellow object beneath is not visible, but that the shadows remain visible overlaying the transparent background. I have tried to find a suitable workaround in an image editor, but I haven't quite been able to achieve the result that I want. The idea is to have the shadows appear to fall on an image behind the PNG such as a background image in a webpage.
Title: Re: Transparent material that can receive shadows?
Post by: thecolclough on January 03, 2016, 06:17:14 pm
...but what I'm trying to do is capture the shadows of objects while saving to PNG with transparent background.

how i'd do it (admittedly involves a 2-pass render process, and a medium/advanced graphics package):
Title: Re: Transparent material that can receive shadows?
Post by: thecolclough on January 03, 2016, 06:19:46 pm
also, don't know if you'd noticed, but in your current setup the right-hand edge of frame is clipping one corner off the shadow of the dodecahedron, and same with the cube at the bottom edge...
Title: Re: Transparent material that can receive shadows?
Post by: cooldude234 on January 03, 2016, 07:20:59 pm
I think we all miss-understood your question  ::)
I think what you are referring to is a shadow catcher... which is not feature.


Ask Steve about it *nudge* *nudge*
Title: Re: Transparent material that can receive shadows?
Post by: ronaldefarmer on January 03, 2016, 08:23:05 pm


    I think what you are referring to is a shadow catcher... which is not feature.


Yes, shadow catcher. I never heard of it before but that is exactly what I want to do.



This is a little bit closer. I'm experimenting with using a transparency map. I could probably edit this to work, but to get really good results, a special transparent material that only shows shadows would be useful. I will add it to my already lengthy wish list.
Title: Re: Transparent material that can receive shadows?
Post by: Raxx on January 03, 2016, 11:25:02 pm
Same process as I described before

Title: Re: Transparent material that can receive shadows?
Post by: Hypure on January 25, 2016, 11:55:28 am
If your going for a single frame of animation you could use a white object to receive the shadow, then upload that frame into a paint program and change whites to alpha.  Then use that PNG image on top or your background.

I use "graytoalpha-by BoltBait" in paint.net, it says gray to alpha but you have the option to do white also.

Sorry i'm so late with this, it just now occurred to me.