Rendering
Ndunes provides several image rendering tools available in the Render menu.
The first item opens the Rendering Setup window. It shows, in its first tab, all the parameters related to the rendering actions. They are saved within the current scene document.
The Image options are:
- Settings preset: which settings preset to use when doing a rendering (see Settings). The settings window can be opened with the last item of the Render menu.
- Image width and height: dimension of the rendered image in pixels. For the environment map export, size of a single face of the cube map.
- Overlay image file: image drawn on the bottom right of the rendered image or video (for instance to add a logo).
- Show gizmos: enable or disable the rendering of scene gizmos.
The second group named Animation contains properties used when rendering a camera animation.
- Frames per second: number of rendered images for 1s of video.
- Start and end time: allows to crop the animation by exporting the frames in the time interval.
The last Output group holds a field to select the export directory.
- Output folder: directory where the final images are saved. This folder is relative to the current scene. It can be opened with the last button of the toolbar.
The rendering actions in the top menu can also be found in the toolbar at the bottom of the view.
Note:
The Viewport tab contains properties and render actions for the current view.
Safe frames
The Show Safe Frames option of the render menu displays the security lines on top of the viewport:
- The part of the viewport that will be visible during a rendering for the given size parameters.
- The lines for the rule of thirds for composing visual images.
- The image center.
Taking a snapshot
The third item of the menu, Taking Snapshot saves the content of the viewport in the output folder. Nothing fancy here, just a simple screenshot. The size and quality of the image is the same as the viewport.
Rendering an image
Rendering an image is like taking a snapshot except that the Render settings preset can be selected in the setup as well as the final image size. The Render preset allows to define high quality parameters. Unlike taking a snapshot, the rendering operation is not immediate and may need additionnal calculations.
Exporting an environment map
By triggering this action, the current view is exported as an environment map. This is a full 360° view that can be reused in a indoor scene or in any external environment viewer.
This action saves 3 files:
- a traditionnal .jpg file showing the lattitude/longitude map;
- a .hdr file holding the lattitude/longitude map in high dynamic range;
- a .red file containing the raw cube map to be used in any REDsdk application.
As for rendering an image, the rendering presets are used when exporting the environment map. The image width specifies the size of the cube faces. The width of the lattitude/longitude image will then be ( 4 * width ). Its height will be ( 2 * width ).
Rendering a camera animation
It is possible to create a curve path for a camera. This can be seen here: Animating the camera along a curve path. The images generated from the camera animation along the curve can then be saved as a series of frames in .jpg format as well as a video in .mp4 format.
The camera animation export uses the settings preset defined in the render setup window as well as the image width and height and the specific video parameters (fps, time intervalle).
Note:
The camera must have a valid curve path to render a video. See Animating the camera along a curve path.
Multiple rendering in batch
The render setup panel has a second tab named Batch to create queues of rendering tasks.
The left part of the window holds the list of render tasks. They can be added or removed with the first (+) and (x) buttons of the toolbar. Each render task has its own set of properties that can be edited on the right panel when selected.
The first group of properties (Batch task) selects which camera to render, which type of rendering to execute (render image, render environment map or render camera animation) and the desired sun direction (the sun directions are saved with the sun panel: The sun tool).
The other groups are the same as the Viewport tab: Image, Camera animation and Output.
Once the rendering batch has been filled with various tasks, the process of rendering all the cameras can be started with the 'Play' button in the toolbar. It is possible to activate or deactivate render tasks using their checkboxes. Only checked tasks will be rendered.
The 'Camera Play' button can be used to preview the batch in the viewport (like the camera play button in the camera toolbar - Controlling the camera).