We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
I have a photo, I'm animating a small push in. I created a few solids for the ground, a building, and some awnings. The projection is working as expected, but it's noticeably softer and more blurry than the guide layer.
I've tried everything I could find online: No depth of field on the camera, shadow map set to 4000, no shadow diffusion, and it doesn't seem to matter if the projection material is close to either the light or the projection catcher. Camera settings and projector resolution don't help either.
Rick Gerard recommends parallel lights for projections, and while a parallel light does produce a sharper projection, as far as I can tell a parallel light will only project correctly onto a perpendicular surface. My ground plane doesn't receive a projection and my awnings (at a 45 degree angle to the building) are distorted.
I looked at the Cinema 4D renderer, but I can't get any projections out of it; materials don't have the "Transmit Shadows" option.
I'm afraid my answer is "Yeah, projections in AE are a little blurry." Can anyone confirm? Would I have better luck in Flame?
Thanks for your time.
And what is the actual resolution of the source files? Comp Settings?
Yes; everything is 1920x1080.
I even tried a 3k file as the projected image, but same blurry result.
If you want to use a spotlight you have to make sure that shadow diffusion is set to zero.
Using a parallel light is by far the easiest, but Parallel lights are a bit tricky to set up to light a scene. Add your Parallel light and position it so that it lights up the scene properly. Use the Point of Interest and the position of the light. Add your Gobo (the image you want to project, make it a 3d layer, and press the 'a' key twice. Set the Gobo to Cast Shadows Only and light transmission to 100%. Hold down the Shift key and Parent the Gobo to the parallel light to snap it to the proper position and orientation. If you don't see any projection select your wall and floor layer, press 'aa', and make sure that Receives shadows is turned on.
If the projection needs to be bigger, scale the Gobo layer. If you really want to use a Spot Light, keep the parent of the Gobo layer (remember Shift + Parent), then press P to reveal the position property and grab the Z value, which should be zero, hold down the shift key to move quickly, and increase the Z distance from the Spot Light. Finalize the size of the projection by using the scale. There is no reason for the projection not to work for either light.
The only way to avoid distortion on the surface receiving the projection is to perfectly line up the Gobo with the surface. It's just like a real projector. Here again, the Parallel light is your friend. Just set it up so it is lighting the scene properly. Shift + parent the Gobo to the surface that you want it to line up with and not be distorted, then manipulate the Z value first to bring the Gobo away from the wall, then drag the X and Y values to move the gobo into the right position and adjust the size with Scale. Here's a comp showing all 4 techniques. This is the simplest one, Shift + Parent a Gobo layer to a Parallel light. It takes about 2 seconds to setup. Adjusting the Point of Interest moves the image and the image is always perpendicular to the light source.
Thank you for both your reply and the helpful AE project file.
However, none of your suggestions made the projection less blurry.
In your example project, I put my image file at the top of your Gobo comp, and it was still soft in all four cases.
The Parallel comps were a bit sharper than the Spotlight comps. I'm surprised I haven't found anyone but you touting that workflow; I like it and it makes sense. Unfortunately, I think it's better suited to projecting a patch onto a wall, as opposed to recreating parallax from a still image.
If I'm understanding technique #4 correctly (where you parent the Gobo to the surface, instead of the light), you would need one Gobo per surface, right? So a wall and a floor would each have their own Gobo.
As I mentioned in a reply below, I found that short focal lengths greatly reduced the blurriness of the projections, although I don't know why. Any idea?
Thank you again for your time and the project. I would suggest that in your example compositions, the recieving walls should have "Accepts Lights" set to OFF.
The lights in After Effects work just like lights in the real world. With a spotlight and a point light the light rays start out from a single point and that gives you tapered shadows, and that is what projection is - shadows cast on another surface. That is why the perspective is a little different when you use spotlights or point lights to cast shadows. The Parallel light simulates a light coming from a great distance, like the sun, so shadows cast by the sun have parallel edges and when you use Parallel lights for a gobo you get less distortion.
The biggest cause of diffusion when using AE's lights and a Gobo (image) is the shadow diffusion. With a spotlight or point light, a 1-pixel shadow diffusion when the gobo is 10 pixels from the surface catching the shadow is going to still look pretty sharp, but if you move the gobo back 1000 pixels that 10-pixel blur is going to become a big problem. It's just like a real projector. Shadow Diffusion is actually the same thing as a lens that is out of focus. The farther away from the lens (the gobo), the greater the diffusion is on the projected image. Camera Focal Length should have nothing do to with it. Distance from the shadow catcher (the screen) has everything to do with sharpness.
I agree that focal length *shouldn't* have anything to do with it, but it definitely *does*.
Like I said in my original post, it didn't make a difference if the gobo was close to the projector or close to the receiving wall.
Don't take my word for it, check for yourself in your example project with a high-detail image.
In case someone finds this in the future, I discovered that the focal length of the camera was the main culprit.
For reasons beyond my understanding, longer focal lengths resulted in a blurrier projection. Ludicrously short (5mm) lenses gave me a much sharper projection. I'd love to know why if someone could provide an explanation.
It's probably a bug in the code that effectively doesn't disable depth of field, but only still calculates it with a very small kernel size, resulting in the blurriness. You might want to report your findings on the Adobe User Voice board linked from this forum.
Increase Shadow Map Resolution to 4000. Not the camera setting
In my original post, I specifically stated that I had already set the shadow map to 4000.
Yes, having the same here. Here you can see that the image is cleared fuzzy at the distance, no DOF turned on, no Motion Blur, no effects, just plain shape layers and a camera.
You should increase Shadow map Resolution to 4000. This will make all the image sharp. Not the camera, even if DoF is off.
Comp Setting> 3D Renderer> Option
Shadow Map Resolution Comp Size:
Shadow Map Resolution 4000
Hi, thanks for the answer, but not really.
I just tried it, based on your suggestion, but this has nothing to do with the shadow. No lights or shadows in the scene, it's a rendering problem related to shapes.
My solution was to switch the quality to non-antialiased...