Search Unity

Running noise profile

Discussion in 'Cinemachine' started by MathewHI, May 10, 2022.

  1. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
    Is there a way to make a running / headbob noise profile?
     
    gaborkb likes this.
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Yes.

    Next to Noise Profile, there is a little gear icon. Click on it, then click new. Save your noise profile somewhere, then go and open it.
    You should see this:
    Screen Shot 2022-05-10 at 9.42.57 AM.png

    You can customize the noise for each position (X,Y,Z) and rotation (X,Y,Z). Play around with the values until you find the one that you like.

    If you can't create one that you like, then could you show a video of a running / headbob noise profile you have in mind?

    Have you tried our built-in noise profiles?
    Screen Shot 2022-05-10 at 9.48.22 AM.png
     
  3. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
    This one works for me, how can I do this?
    https://youtu.be/zM6L5WJOsWg
     
  4. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
     
  5. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
    Is something like that possible? Actually what I really like is the running cam when you sprint in the first Gears of War game if you’ve ever played that. I would use the Animator but I’m rotating the vcam via script with Rotate() and the Animator blocks those rotations.
     
  6. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Yes, I played Gears of War and I know that running camera! ;) And yes, it is possible to do that! :)
    I'll create something similar and add it to our sample scene and post it here when it is done.
     
    MathewHI likes this.
  7. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
    That would be great.
     
  8. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Have a look at StateDrivenCamera sample scene. This shows a setup that switches based on Animation state. When the player is sprinting (press space to sprint), then you get a noisy close up camera, something like the RoadieRun.

    To have more control over the noise and fov, I'd suggest using a MixingCamera (GameObject -> Cinemachine -> MixingCamera).
    The mixing camera will have 2 child vcams. One for normal run camera (vcam1), and one for RoadieRun (vcam2). Now the way these two mix are up to you completely. You can write a script that controls the Child Camera Weights to really fine tune your roadie run. Your vcams could have different noises on them even.
     
  9. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501
    Thanks, where’s the sample scene in the package manager?
     
  10. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Screen Shot 2022-05-04 at 5.06.58 PM.png
     
    MathewHI likes this.
  11. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    501