Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Orthographic shadow with stationary light

[Test setup] I'm not sure if this is a bug or not. This is a new blank blueprint project in UE 4.7.6 with no starter content. I added a new controller/pawn to switch camera mode to orthographic.

[Bug?] It seems like the floor is casting a shadow on the cube when using an orthographic camera. Disabling Cast Dynamic Shadows on the floor actor seems to fix it. This happens when the the light source is "Stationary".

That shadow also jitters or shakes if the object is moving.

The problem is shown in the second picture. alt text alt text

Product Version: Not Selected
more ▼

asked Apr 25 '15 at 05:28 PM in Rendering

avatar image

6 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Tanbouz,

I've tried to recreate this on my end, but without any luck.

Can you post your exact repro steps? I don't need the player controller part though. Also, it would be helpful to know what your light source settings are that have been changed from default.

When I test this my camera ends up clipping before reaching the mesh, so it would be helpful to know what your settings are for your orthographic camera view is as well.

Thank you!


more ▼

answered Apr 27 '15 at 04:06 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

avatar image Tanbouz Apr 27 '15 at 06:49 PM


  1. New project

  2. Blank blueprint

  3. No starter content, maximum quality

  4. Add a mesh cube from the Basic shapes on top of the floor

  5. Go to project settings.

  6. Create new game mode and set it as project default

  7. Create new pawn and set it as project default

  8. Add an empty root scene to the new pawn

  9. Then add a camera as a child of the root.

  10. Position camera to be looking downwards at angle like top down games.

  11. Switch camera to orthographic mode

  12. Press Play!

My test project. I didn't play with the light source. Just using the included default sun. camera placement project

shadoworth.zip (1.5 MB)
camera.png (507.1 kB)
avatar image Tim Hobson ♦♦ STAFF Apr 28 '15 at 05:24 PM

Thank you for the details.

Looking at your setup, you're default Directional Light is set to Stationary, but it's only using the Static portion of the lighting. You will need to adjust the Cascaded Shadows Dynamic Distance to a higher value than 0. Try something like higher than 0 - 7500 to keep the shadows within range. After that it's outside of the cascaded shadow maps range to be displayed.

If you need the shadow, you can enable Far Shadow for this when 4.8 releases, which should help. You can also use the "Cast Inset Shadow" as well for some specific meshes that are set to movable like you're box. I woudn't recommend this for a lot of meshes as it's typically reserved for cinematics on characters.

The most bang for your buck would come from using Static baked lighting though with dynamic lighting at a distance. This would require your mesh to be static though so it can bake the lighting.

Orthographic Camera view still needs some work and there is a number of features in the editor that currently do not or will never work with this view type. It's a limitation of using Orthographic Camera view.

avatar image Tanbouz Apr 28 '15 at 07:32 PM

Thanks a lot for the help. Off to try out your suggestions :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question