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"

Jerks in camera complex moving

In my game, there is a button "View the selected object."

On it is pressed:

1) I spawn a CameraActor at the location of my character's camera. I attach a CameraComponent of this spawned Camera to my character's springarm & by SetViewTargetWithBlend I activate this Camera as main.

2.1) Spawned CameraComponent rotates to the chosen target object

2.2) (if needed) my springarm rotates too to avoid the situation, when my char. obscures the view from camera to a target object.

3) after this the spawned camera detaches from my springarm and begins its flight to the target

4) When the flight is finished, I spawn a springarm component in the target object and attach CameraComponent to this springarm.

5) On every tick the new springarm rotates to be positioned along the vector from my char's Camera to the target object.

When the button is unpressed, all begins to execute at reverse direction.

My problem: At some border points between adjacent phases of Camera complex moving visible jerking of the view occurs. They are visible only if my char and the target object are moving. If both are staying, all works perfectly smoothly.

I ask: If someone have had deal with complex camera moving and have encounter with similar problems, please give me an advice, how can I avoid those camera jerks.

I've tried many variations: setting up manually the location and rotation of camera, or of springarm before attaching, ... explicitly detaching CameraComponent from springarm and not doing it, ... the result was almost all the same.

PS: I didn't public my blueprint-code here because it is huge (more than 20 screens) and complicated additionally by particular overlapping of adjacent camera moving phases for adding a smoothing effect. But I think, that problem is not in my particular code. It is rather some principal dangerous place in such complex camera moving implementations. Please point me to it.

Product Version: UE 4.7
Tags:
more ▼

asked May 19 '15 at 03:53 PM in Blueprint Scripting

avatar image

Sashka
93 15 21 23

avatar image Baron von Whimsy Sep 24 '17 at 12:38 PM

Are you setting the world transform, or setting the camera's actor location?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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