Shadows in Orthographic mode

Hi,

I am making a level and want it to be in isometric style, so I set the projection mode of camera to Orthographic. It works fine, but the problem is that there are no shadows. I dont know how to fix it. There are shadows in normal mode.

Does anyone know how to make shadows appear in Orthographic mode?
If orthographic mode does not support shadows, is there another way to make isometric style camera in ue4?

Hey @sShArLoTaNn,

Shadows do not currently render with a camera in orthographic mode. You can fake an orthographic camera by adding a camera to your actor and placing it far above the character pointed down. You can attach a spring-arm if you would like, but when in a top down environment you will need to keep a close eye on which meshes have collision with the camera to maintain your bird’s eye view. You will want to tweak the FOV, lowering it some will probably help it look more like a natural orthographic camera.

I hope this information helps!

Thank you for your suggestion!

I placed the camera far away from the character as you said and changed the fov to 5. The effect is impressive and really cool, but the problem is that the camera is really far away and therefore the shadows are very blurred. Another, the most important thing, is that I use PostProcess materials like cel shading and outline shading and with camera being so far away or having very low fov makes these PostProcess materials have no effect. Btw PostProcess volume is unbound.

Is it possible to bring back the shaders in that fov?

I experimented with the numbers and figured out that with fov 25 the PostProcess materials work, shadows work and the style is almost isometric, but at the same time almost normal 3d. Very unique

1 Like

Hello! Do you have any info, if Epic is planning to fix shadows with orthographic camera?

The issue associated with this is marked as “by design” so i doubt they will.

Hi, came across this issue myself. I was able to fake a nearly perfect looking isometric view by setting the Spring Arm to (X:0, Y:-45, Z:135) (Adjust Z axis as needed for your characters rotation) and then setting the cameras FOV to 45. I did screenshot comparisons myself and this way it is almost perfectly looking like Orthographic but with shadows.

The shadows will work with the path tracer - but that may not be an option for you?

Is is now marked as resolved as of May 2023… so should be in 5.3 id hope… maybe even 5.2?