17 Mar
2008

Shadow Catcher plugin in Cinema 4D - Part 1
UPDATE: Shadow catcher is now a built-in material and compositing feature in version Cinema 4D R18 onwards by default.
Tutorial Sections
Part 1 - install the plugin and create a basic 3D scene (This page).
Part 2 - use Advanced Compositing to separate the object and shadow alphas... view it here.
What does the shadow catcher plugin allow?
Here is the scenario, we have a 3D character walking across the floor while casting a shadow. We want to composite this with an image in photoshop. Using shadow catcher we can render the character and shadow (with alpha) without the floor. Very useful.
Before starting... I had been searching for ages to try and find the C4D ShadowCatcher plugin. Luckily after pages and pages I finally managed to track it down back in 2008. So for this tutorial you can download it from this site (It's FREE). It has been tested in Cinema 4D R9 through to R17.
DOWNLOAD: ShadowCatcher for C4D repo
Step 1.
First quit C4D if it is running.
Step 2.
Then unzip the download and place it in the C4D plugins folder (Should be found in the same directory as the application)
MAC = Applications/MAXON/plugins/ShadowCatcher.cob
or
PC = C:/program files/MAXON/plugins/ShadowCatcher.cob
Step 3.
Now start C4D.
Step 4.
Lets create a scene and place a box hovering over a plane.

Step 5.
Then add a light with a target.
Step 6.
Choose the 'General' settings tab and change the following, 'Type' to 'Omni' and 'Shadow' to 'Shadow Maps (Soft)'.
Step 7.
Lets do a quick render...
Step 8.
Now apply a new material to the plain (this is what we want to act as our shadow catcher).
Step 9.
In the new material editor change the properties by unselecting everything except the alpha. NOTE: You may also want to check the transparency if you want to composite the shadow on a background image/video because by default it will be a pure black shadow.
Step 10.
In the alpha properties, click the down arrow next to texture and choose 'Shadow Catcher' (it should be near the bottom). You will also have to select 'Invert' option. If done correctly the material preview should be transparent.
Step 11.
Now lets go to the Render/render settings.
Step 12.
Now depending on which version of C4D the popup window will have a slightly different layout but the options are similar. So choose the 'Anti-Aliasing' option and change 'Anti-Aliasing' to 'Best'.
Step 13.
In the 'Save' tab, check the 'Alpha Channel' (The important bit!).
Step 14.
Choose one of the following:
1. If using in After Effects render as tiff frames and use the import tiff frames option in After Effects.
2. If using in Photoshop render the frame as a png format which will allow the transparency to appear straight away.
We're done!
There is a Part 2 - use Advanced Compositing to seperate the objects and shadows alphas... view it here.


me@grafxflow
Visitors also viewed these posts
64 Thoughts
28 Nov
2012
Alvaro Alvarado
Excelente plugin thanks for the support28 Nov
2012
me@grafxflow
Glad to help28 Nov
2012
LmWolfSpirit
Thank you. I am just learning C4D, and this looks like it will be very helpful.27 Jan
2013
adam
help!r13 OR r14 can't work...
27 Jan
2013
me@grafxflow
I have used it in C4D R13 and it works perfectly. What is the exact problem you are having?12 Feb
2013
Paul
Any way of making this work with Sketch & Toon enabled? It just renders the plane with a full, solid white alpha. I've got it working fine without sketch & toon.12 Feb
2013
me@grafxflow
I am not sure if this will work with Sketch & Toon enabled or if it's even possible at all.Maybe try:
12 Feb
2013
Paul
Aha - found the solution: I just excluded the plane from rendering by putting it in:Render Settings > Sketch and Toon > Render > Mode: Exclude
The shadow still rendered on the alpha correctly.
12 Feb
2013
Paul
Wow - what a lightning fast reply! Thanks for your suggestions!- Paul
12 Feb
2013
me@grafxflow
It seems your solutions better and easier, thanks for sharing it.Solution is in message below...
12 Feb
2013
Paul
The only thing that now remains is how to anti-alias the shadow. Everything in the alpha channel has lovely smooth edges, apart from the shadow. Very odd.12 Feb
2013
me@grafxflow
Have you set the Anti-Aliasing to best?Just did a test render using your solution and looked okay in photoshop.
12 Feb
2013
Paul
I want to have hard-edged shadows, so used the Raytraced (Hard) option. When I use soft shadows, it looks fine. But I've just tried Area shadows, and that gives me a fairly hard-edged shadow, nicely anti-aliased and doesn't take long to render.12 Feb
2013
me@grafxflow
Try using an 'infinite' light for rendering the 'Raytraced (hard)' shadow.And in the 'Sketch and Toon' settings choose the 'Shading' tab and set 'Background' to 'Off'.
25 Feb
2013
Andy
Does this work with GI cant get it too work.25 Feb
2013
me@grafxflow
This plugging is meant for use with any of the built in C4D lights (Spot, Infinite etc) which is capable of casting shadows.27 Feb
2013
Tom Stracke
Hi!! Great plugin !!! :) but GI Shadows appears not to work. There is a workaround? thx in adv!!08 Mar
2013
Muhamed
My friend, it doesn't work with GI.Can anybody help me with it?
Even when i use one of the greyscalegorilla's studio lights, it appears not to work :SS
PS: thanks for the plugin :)
10 Mar
2013
Mack
Hi, i have the same problem, doesn't work with GI, i'm also rendering an EXR multi-pass file and the show pass is also empty.Thnx for the plugin
10 Mar
2013
Mack
*Shadow pass07 Aug
2013
Youandi
Works really nice using HDRI with flat floors to generate shadows, saves you some photoshop time20 Nov
2013
Josh P
Great plugin. Would be amazing if you could get AO to translate also.03 Dec
2013
Marko Radak
The only downside is that my render is never fully transparent - it always have a bit of the opacity, about 4-5%Anyway to fix this?
06 Dec
2013
me@grafxflow
Does the texture that contains the transparent shadow still have 'specular' selected?23 Jan
2014
Gokhan
Hi,firstly thank you very much for great plugin but I have a problem about Physical Render in R15...maybe my mistake but I can't correct result with Physical Render?
do you have an idea?
Thanks mate.
23 Jan
2014
me@grafxflow
Hi Gokhan,I am not sure what the issue is? Can you go into more detail.
cheers
Paul
19 Aug
2014
Teemu
Is it possible to export with shadow catcher also normal alpha channel without shadows? Or do i need to render image with shadow catcher and without to get bot alpha channels?Thanks for the answer!
19 Aug
2014
me@grafxflow
I am not sure if I totally understand you correctly, but maybe you could add a 'Compositing Tag' to each object then in the 'Object Buffer' tab give each its own individual number. Also make sure to do a multi-pass render then add each 'Object Buffer'. This should work for after effects.21 Aug
2014
Daryl
I just wanted to say thank you for such a great plugin and an even better user friendly instruction. I really like your style overall on everything you do. Great work. Thank You.21 Aug
2014
me@grafxflow
Always glad to help.26 Aug
2014
Teemu
Thanks grafxflow, for suggestion was right, thanks for the help!And thanks for the plugin, it helped me to get one image done easier..
22 Oct
2014
Alpha_editor
Nice Plug-in! I have an issue. I am in C4d R16. I can get the plugin to render fine in the "Standard" renderer. When I switch to the "Physical" Renderer the shadow is a "no show". I have tried all forms of compositing tags, etc. Nothing in the physical renderer is coming through. As soon as I switch to Standard render all works exactly as it should. I am compositing in AE CC 2014 via png sequences. Do you have a work around for this issue?22 Oct
2014
me@grafxflow
Unfortunately it doesn't work with renders using physical/global illumination. I had somebody else with the same problem in a previous comment so to solve it...The best way to go is to do add a ‘Compositing Tag’ to each object then in the ‘Object Buffer’ tab give each its own individual number. Also make sure to do a multi-pass render then add each ‘Object Buffer’. This should work for after effects.
Hope it helps or gives you are starting point.
09 Feb
2015
mauro
Hi, thank a lot...I have a problem with Cineware layers.
I can't get it to work. Am I doing something wrong?
Cheerss
10 Feb
2015
me@grafxflow
Hi Mauro,From what I understand Cineware relates to importing C4D files direct into After Effects. So I am unsure if Shadow Catcher will still be able to work this way.
12 Oct
2015
Vincent
This works really well but It isn't completely transparent when rendering to a png using the picture frame. How do I make it completely transparent?12 Oct
2015
me@grafxflow
Does the shadow catcher texture have everything unchecked apart from the alpha?02 Dec
2015
Oleg
I can't dowload plugin by link: https://grafxflow.co.uk/storage/app/media/blog-downloads/139/ShadowCatcherFinal.zip
02 Dec
2015
me@grafxflow
Hi Oleg,I have tested the link and it's working fine. What browser are you using?
23 Dec
2015
Geoffrey
I'm using R16. When I set everything as you laid out (Really great step-by-step) I can't get it to work. When I have the plane on with no material it worked and the shadows were there. When I applied the material according to your instructions, the plane is black and not accepting any shadows.Thanks!
23 Dec
2015
Geoffrey
One more thing, I using cineware, but the shadows are not showing up in C4D.26 Dec
2015
me@grafxflow
Hi Geoffrey,Are you using something like Global Illumination in the advanced render settings?
02 Jan
2016
Mauro
Hey, this is what I get... its like the borders of the shadow are showing the plane02 Jan
2016
me@grafxflow
Hi Mauro,What version of C4D are you using?
Plus do you have a screen shot of your render settings?
04 Mar
2016
Nick D
I often need to render out simple animations as PNGs with transparent backgrounds so that I can create sprite sheets out of them. So far this plug-in is the ONLY thing that works for me, so thanks so much for making it available! The other methods of shadow catching from C4D always seem to require compositing OVER something else using multiply afterwards, but I need to deliver images with transparency included in them.Unfortunately the render times are killing me -- it takes hours to render things that normally would take minutes. Do you have any tips for speeding up rendering with this plug-in? I'm thinking maybe if I do two passes - one for the object and one for the shadow, both with transparent backgrounds - I might be able to tweak the settings for the shadow pass to disable anything that's not needed. I will try a few things, but I'm wondering if you have any tips. Thanks again!
11 Jul
2016
Al C
Hey awesome plugin, but my output has the grey transparent background, how to get rid of it11 Jul
2016
me@grafxflow
Do you have a screenshot? Or can you go in to more detail?19 Oct
2016
SEBASTIAN NOLTE
OHHHH GOD - THANK YOU - WORKS GREAT AT C4D R1719 Oct
2016
me@grafxflow
Perfect thanks for the update Sebastian22 Oct
2016
Jacob
Thanks for an amazing plugin!I'm having a bit of trouble. I have an infinite light which cast a Raytraced hard shadow. When I render it out the shadow is solid black, but I need it to be reddish color. Is it possible to adjust the shadow color or maybe add multiply or transparency to it? I'm using sketch and toon as well btw.
19 Jun
2017
mahdi mehrabi
HiI'm Gonna Use Live link In After Effects all the Harrow directly and no need to tiff render
I entered the After Effects environment.
But the material plane is seen and do not provide shade for Alpha
Please guide me
Thank you
19 Jun
2017
me@grafxflow
Hi Mahdi,I am unsure if shadow catcher will allow this? due to it being processed within its own c4d render rather than after effects.
Maybe using c4d's built in compositing would be a better option.
13 Aug
2017
Eriol
you saved my day!!16 Aug
2017
Srinath
Hi Sir nice Tutorial, I want to Shadow Fallows Through animated character..31 Aug
2018
Miles
Hello I curious to know if this plug in works for cinema 4d lite?31 Aug
2018
me@grafxflow
Unfortunately I have never used c4d light so can't give you a yes or no answer.06 Dec
2018
Yogesh verma
Hi me@grafxflow,read your all comments and appreciate that you are constantly in with ur viewers. i installed the shadow catcher and its working fine but i need this plugin to work like R18 and if it's not then kindly guide some other plugin for alpha reflection.
15 Dec
2018
Cobus
Thank you so much! I am really peeved with Maxon for including its its shadow catching material ONLY in its Studio version. This should have been a basic feature in versions ages ago!15 Jan
2019
Ahsen Tariq
Is it possible with Octane or Redshift30 May
2019
Dawid
Doesn't work with C4D R20 Prime. Not visible in Alpha -> Texture in material editor :(30 May
2019
me@grafxflow
Sad to hear that Dawid... probably better to see if it can be achieved with compositing.Currently it's only be tested with Cinema 4D R9 through to R17. :(
18 Jul
2019
Robbie
Thank you so much! You are my hero.I don't know if this is already stated, but for me, the transparency of the shadow was always 100%. Even when I played around with the transparency in the material. (Step 9).
I found a way to control the shadow opacity by adding a Display Tag onto the floor and use the visibility and dropped it to 75%.
21 Feb
2020
Adam
Thanks so much for this. I am amazed that 3D software makes it so hard to capture just shadows. Seems so logical. Thanks for making this.Is there a way to lighten the shadow though so it's not pure dark?
Thanks!
Adam
21 Feb
2020
me@grafxflow
Hi Adam,Sadly I wasn't the person who originally developed this plugin, but I am guessing you could play around with the colour or opacity?
Here is a updated tutorial which might help tutorial link.
Also one thing to note - as from C4D R18 onwards shadow catcher is an actual built in feature.... finally! A nice part of this new options is that it also allows reflections as well.