Exporting a Video

file Banner.png
Click here to get to the Guided Houdini Files.

 

Lets assume that you have create some magnificent piece of animation in Houdini. We have learned in the rendering and working with cameras tutorial how to save single images of a render. What do we do if we have a series of images that we want to combine in a single video?

Renderers

Even inside Houdini you can switch the render engine. Examples of other render engines RenderMan, V-Ray, Octane etc…. Different render engines have different techniques and methods that make things like hair look different in each engine. Houdini comes with a built in render engine called Mantra. It is the default engine we have previously used in the render tab and that we will continue to use. As far as we are concerned, the free apprentice version only allows the use of the Matra render on the CPU which is usually not the best choice but more than enough for our use. This means that we render slower than with a licensed version.

Render Set Up

First of all we need a camera (see how to set one up) in the scene that our renderer will reference.

scene_Network.PNG
A scene with a floor, a camera and light.

Then we need some animation to reference. Here we chose an example with lots of rotations using the frame number $inside transformations nodes.

82.gif
This is science inside the regular scene view.

And we want to have some quality like this:

nice bunny.PNG
A high quality render image of the camera’s view.

Technically we could export each image on its own and then use an external program to glue them into one video but mortal beings should avoid such time investments wherever they can. Instead, we will prepare the mantra renderer to export the video for us.

You might want to select how long you animation is supposed to last. You can edit such options in the bottom right corner.

animation option button.PNG
The global animation option button is the right most one.
animation option.PNG
The global animation options. The “End” frame number is important.

We have to create the mantra renderer node from the top left menu Render > Create Render Node > Mantra.

83.gif
Creating a matra node.

This however will not create a node in the /obj network view as we are used to. The mantra node will be placed in the output network /out. 

84.gif
Switching between network views to find the matra node.
Rendering

Now you can edit a million things in the render node options. However, we can view the simple options by clicking on the purple camera at the mantra node. There you can edit the frame range (start, end, increment) and lower the resolution drastically to save more time (I went to 266×200 for this tutorial).

85.gif
Simple render options.

At last you can start rendering. Go to the node option and specify the frame range if necessary and select the camera (If there is only one it is selected by default). Next hit the Render to MPlay at the top of the node parameters or hit Render to Disk. The second one is safer to interruptions.

87.gif
And then we wait… do something while it renders. Don’t waste your time staring at this process that can be very slow.

If you chose the Render to MPlay option MPlay will automatically launch. If you chose the Render to Disk option you have to run the Houdini image viewer and dive into the working directory/render to open the frames (the .exr file). The image Viewer should be located in the install directory of Houdini. The up side of render to disk  is that you can interrupt and continue the rendering of long videos.

image viewer.PNG
The Houdini image viewer location in windows.

Inside Mplay, go to the top left File menu and select export to video. Specify the location and hit save.

88.gif
Saving sequence of pictures of the bunny as a video.

And at last we have our final product:

88.gif
At last. Our first video with Houdini.

 

VR and Stereo Render
Cameras.PNG
3 different cameras all with different purposes.

You can also render a 3D VR video by simply replacing the camera node with a vr camera node. You can follow this handy tutorial video to know what to do.

VR cam.PNG
Image from the video above.

You can also place stereo cameras to render left and right eye for a stereo 3D effect. The stereo cameras can be used for Anaglyph 3D images as explained on the help page.

stereo preview.PNG
This is the anaglyph 3D stereo preview you get when adjusting the stereo or vr camera.

 

Print Friendly, PDF & Email