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"

Smoothly stopping an indefinite CameraShake?

I'm trying to use a camera shake for a headbob by setting the camera shake oscillation duration to -1 (indefinite) then calling it on keypress with ClientStartCameraShake, then stopping it with ClientStopCameraShake.

alt text

It works, but ClientStopCameraShake doesn't seem to use the Oscillation Blend Out settings inside the Camera shake asset, so when the player stops moving the camera simply snaps back to its default position.

I want it to blend smoothly back to position, how can I do this?

Product Version: Not Selected
Tags:
more ▼

asked Aug 27 '14 at 04:56 AM in Blueprint Scripting

avatar image

Arkiras
35 10 13 15

avatar image esquire Mar 18 '15 at 07:46 AM

Also getting this issue. Seems like if you use indefinite you can't blend out of the camera shake. Hopefully its a bug that could be fixed.

avatar image Alestes Mar 17 '16 at 03:17 PM

Same. Oscillation Blend out works fine but Blend in doesnt. Even if I set blend in to 3.0 it still snaps directly to shaking.

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

3 answers: sort voted first

Here's what you can do: 1: Update your project to UE4.12.5 (There is a boolean value in the stop camera shake that can be toggled to make it end smoothly.) 2: Make your camera shake last about half a second long (with fade in and out times of about 0.15 seconds) and create this blue print. I found this to be a very good solution. Sorry If this response was too late-I had this problem for so long in my project. I can't believe I finally solved it though.alt text

ue4 help.png (406.2 kB)
more ▼

answered Aug 27 '16 at 04:54 PM

avatar image

Spishy
76 5 9 14

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

I don't know about that stopping it clean, but a possible solution could be to make a camera bounce that is just 1 shake, and then put it on a looping timer. When you want it to stop just clear the timer and the last shake will play out and finish smoothly.

more ▼

answered Aug 27 '14 at 06:26 AM

avatar image

greynz
237 25 15 26

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

I am experiencing this too, same issue was in UE3... aah, can't belive it is in UE4 too... Epic can you please do something with it ? Stop node should really respect blend out time...

more ▼

answered Nov 05 '15 at 07:53 PM

avatar image

nonder
136 13 22 33

(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