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"

[Closed] Bone rotation jitter after aim offset + transform bone

I've been trying to make an animation based aiming system for first person perspective and so far it has gone pretty well. Basically I'm setting the world space rotation of the bone that holds the gun, to what the player rotation is. This way I can get the weapon pointed towards the direction I want.

To make the aiming visually more pleasing, I use aim offsetting to bend the whole body first in the anim graph, see here: http://i.imgur.com/lXbSo73.png

Only after that I set the precise bone rotation to match the camera direction (in the pic the variable name is muzzle dir).

The problem is, that if I use the aim offset blending before doing the precise bone transform, the weapon randomly jitters in the player hand:


If I remove the aim offset blending from the anim graph, the jittering goes away. It seems like some weird frame sync problem.

My end goal is to make a free aim system similar to what is in ArmA games, and to do that I need animation driven aiming. I can't just trace from the camera to do that, I need to spawn a physical bullet at the weapon muzzle.

My question is: what is causing that jitter? Can anything be done to it?

Product Version: UE 4.9
more ▼

asked Sep 02 '15 at 05:44 PM in Using UE4

avatar image

126 12 19 26

avatar image jonimake Sep 10 '15 at 09:33 AM

This can apparently be fixed by using world origin rebasing, too bad I can't use it because the game is supposed to be a multiplayer game.

More vids:

The weapon is attached to the hand_r bone and hand_r bone is translated so that the rotation matches view rotation (using set bone rotation in world space).

Distance from origin 3 km: https://youtu.be/6neMRwoHEng

Distance from origin 8 km: https://youtu.be/HCZKD-GCFSk

50 meters from origin: http://youtu.be/h5CHQgU2V5w

I can't have any precise animation driven aiming of weapons because of the floating point precision errors when you're far away from the origin. I wouldn't mind if this would happen with 3rd person anims only, but since it's a first person view the stuttering is very noticeable.

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

The question has been closed Dec 15 '15 at 04:01 PM by Steve Hardister for the following reason:

Closing as a Duplicate Question: https://answers.unrealengine.com/questions/304521/animation-jitter-when-far-away-from-world-origin.html#comment-306544-form

0 answers: sort voted first

Follow this question

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

Answers to this question