x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I setup shadows for animated meshes?

Hi all,

I am trying to import a skeletal mesh with animations into my scene. The animation consists of a pair of feet walking back and forth. When I place the animation in the scene and simulate the scene, as the feet get further away from the initial position (this happens as the animation plays, I am not translating the feet) then the shadow disappears. However when I playback the animation in Persona there's a shadow even when the feet move far away from the initial position which is what I want to happen in my scene too. I am using the third person game template for this and I haven't modified the lighting or the ground except a texture for the ground. What could I do to fix this ?

Many thanks !

Cheers, Shailen

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 05:46 AM in Rendering

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1995 9121

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

2 answers: sort voted first

The solution to this problem ( many thanks to Mehmet Guven for the tip ) is to create a physics asset while importing the FBX file. I was earlier unchecking the creating of physics asset during importing it and it was causing this artifact.

more ▼

answered Mar 11 '14 at 05:46 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1995 9121

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Hi everyone!

You discovered the solution before I could get to this. Yes, if an actor goes outside of its Bounds, then material/lighting issues can occur. SkeletalMesh bounds are governed by its physics assets.

Good job!

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

The most game-engine friendly way to set up animations is to

  • remove all root translation from the animation, keeping all other aspects of the animation

  • move the skel mesh actor yourself during game time at the appropriate speed

this will fix your shadow issue

and many other potential future issues

Yes there might be a simple fix for your immediate issue

but in the long run you should consider avoiding root motion

root motion might very well be not be fully developed to work in UE4 yet ( I dont know)

but even if it does work

root motion is always complicated.

you have no need of such complexity

consider redesigning the animation and moving the actor yourself via unreal engine :)

Rama

more ▼

answered Mar 11 '14 at 05:46 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1995 9121

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

The thing is that the animation I am trying to display here is the reference motion capture data which I will be using as "ground truth". I don't want to modify the animation for two reasons

1) Root motion is unknown 2) I want it to be untouched because this will be used to compare against procedurally generated motions. If I modify it in certain ways (remove the root motion from the motion capture sequence, if its possible at all, and then add the root translation to it later in UE4) it looses the credibility of being the ground truth motion.

I do understand the fact that animations in games should ideally not have root translation but then this is not for a game. Now given this information is there a way to fix the shadows for this animation ?

Many thanks for taking time to explain your answer to me though :)

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Can it be a problem with Physics Asset?

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Actually I have not created a Physics Asset. I am just placing the animation node into the scene to visualize it. I turned off creation of Physics Asset during importing the fbx into the scene. Is there any other way I can place it in the scene since all I want from this animation is to play in a loop when I click on a checkbox or something.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Why don't you create a Physics Asset for it and give it a try? It won't affect anything if all you want is to see the animation playing.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

I just tried it and it worked ! Does creation of a Physics Asset change the way lighting is applied to an asset ?

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

I don't have full knowledge on Physics Asset's effect on lighting but i've heard of people having this issue before. This is from Vehicle Tutorial on UDN;

Depending on the shape of the vehicle, you may need to add some tiny physics objects within the wheels (attached to the joints you'll be moving with the animation blueprint). This is because bounds for a skeletal mesh are calculated based on its physics shapes, and you can get odd shadow clipping and other rendering errors if you don't correct for this.

Glad that it works now. :)

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Ah I see. Many thanks for you help ! Really appreciate it !

(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