Home Unity

How to make cutscenes in Unity?

polycounter lvl 9
Offline / Send Message
Blond polycounter lvl 9
Hello people. I'm working on a project and I wanna use Unity as my render engine. The simple and straightforward quick render pleases me and I don't have to wait since it's in real time.


However, I'm not working on a game, I just wanna make a simple cutscene and it seems I haven't managed to find any tutorials to do so?

Basically, what's the proper workflow to import a long baked animaiton inside Unity and render it into a video?

Also, does Unity accepts pre-animated Blendshapes??

Replies

  • Zephiris
    Options
    Offline / Send Message
    Zephiris polygon
    Unity doesn't really have a proper cutscene editor on it's own(yet) like unreal does.
    There are some solutions on the asset store to fix that, i'm still looking to find out what the best one is myself. Cinema Director looks very promising so far, but it's not cheap.

    If I you don't want to buy one you can try making anything that moves in the cutscene(with it's imported animation intact) the child of just one object, then you can add an animation to that in unity's animation editor, it will let you control the curves of any child objects in one anim. If you can script a little, you can also use animation events to further control your scene.
    This approach is a huge pain to work with though, since unity's animation editor is pretty awful. But you can get away with it as long as you do all the proper animation work in your 3d package and only need to spawn a particle system here, fade a color there, or switch an object over there.

    Unity should support blendshapes: http://docs.unity3d.com/Manual/BlendShapes.html

    To render it to video, you can just make a build of your scene, then play and record it using normal screen recording tools(recording is usually too slow from the editor, but very quick from a build. I use OBS for recording).

    Since you're rendering it to video you can add sound in a video editing program, that should be a lot less work than trying to make it fit from within unity.

    Hope that helps :) I really recommend looking into some of the popular asset stuff for cutscenes if you're going to do this often though.
  • Blond
    Options
    Offline / Send Message
    Blond polycounter lvl 9
    Thanks alot for taking the time to answer! :D
  • arumiat
    Options
    Offline / Send Message
    arumiat polycounter lvl 4
    check out usequencer and urecord
  • RyanB
    Options
    Offline / Send Message
    arumiat wrote: »
    check out usequencer and urecord

    usequencer is very buggy unfortunately. We had to ditch it after a week of bugs. It has a lot of potential and over time it might get more stable.
  • Hyshinara
    Options
    Offline / Send Message
    To record directly in Unity, you could try calling Application.CaptureScreenshot every update, IF you can asure a steady frame rate. As far as I know, Unity maxes out at 60fps, so if your machine is strong enough to keep it at a constant 60fps, calling Application.CaptureScreenshot every update should theoretically result in an image sequence that can be converted into a perfect 60fps video.

    I just wrote a script based on TakeScreenshot by Aarku that saves screen captures as a .png image sequence. You can get it here: ScreenCaptureImageSequence.cs on PasteBin

    You'll have to record the audio some other way though... I'd probably pipe my system audio output through SoundFlower into Quicktime (essentially using a virtual microphone to record my audio output). I also heard Audacity can do the same as my SoundFlower/Quicktime combo.
  • Hyshinara
    Options
    Offline / Send Message
    I've made a whole bunch of changes to the script today:
    • The recorded frame rate should now be independent of the actual frame rate. Setting the Frame Rate variable to something between 1 and 60 makes it record at the corresponding fps. Setting it to 0 results in realtime capturing at whatever fps Unity runs at.
    • You can capture at a larger resolution than what you actually see. However, on my machine, this seems to make the captured frame rate drop significantly.
    • It automatically creates a folder to put the images into and keep things tidy.
    • Each time you start recording, it starts a new take and creates a new sub folder.
    • You can set custom scene names and file suffixes.
    • Each recording's folder tells you the exact start time of the recording, for syncing with audio, etc
    • ... probably more things I forgot, because I'm tired right now. Just read the comments in the script.
    You can get the new version here on PasteBin: ScreenCaptureImageSequence.cs v2
  • DanoG
    Options
    Offline / Send Message
    Cutscene capturer is built into Cinema Director as well. Also, it's not buggy.
    https://www.assetstore.unity3d.com/en/#!/content/19779
    Not expensive considering the time it saves you. What is your time really worth? If so, try waiting for one of the Asset Store Sales.

    Full disclosure: I am one of the developers of this product.
  • AdamMyhi
    Options
    Offline / Send Message
    Cinema Director is a fantastic timeline editor.  We used it for all the cutscenes in Homeword: Deserts of Kharak.
    It also works in an incredible knockout combo with Cinemachine which allows for all your shots to procedurally track the targets.  Should things change speed, or the level be adjusted, the cameras still figure out the shots.  You can also seamlessly blend from your gameplay cameras to cutscene cameras and back. 

    Full disclosure: I am one of the developers of this product.
  • Methexis
    Options
    Offline / Send Message
    Methexis vertex
    Hyshinara Tried your script it only makes folders does not save or maybe i am making something wrong. A little help?
  • cptSwing
    Options
    Offline / Send Message
    cptSwing polycounter lvl 11
    There's also Flux .. (have heard good things about it)
  • Chimp
    Options
    Offline / Send Message
    Chimp interpolator
    Noone's mentioned it so far as I skimmed so I thought I would - Unity are working on something called Director which will be a fully featured cutscene editor, when it arrives. Dunno when though, but it does currently exist.
Sign In or Register to comment.