SFM/Progressive refinement: Difference between revisions

From Valve Developer Community
< SFM
Jump to navigation Jump to search
(Reformat summery And add missing details)
Line 1: Line 1:
== Overview ==
== Overview ==
{{Note| Progressive refinement effects are disabled unless you are viewing inside clip editor when paused}
Progressive refinement is a rendering technique that simulates motion blur, depth of field, soft shadows and lighting by blending together slightly different versions of a frame in groups of 8 samples. The more samples in the frame blended together, the better the quality as samples are less distinguishable from each other. However the movie will take longer to render as a result.


In the SFM, a single frame is not a still image; it's 1/x of a second of animation (x being the number of frames per second your project is working in, default being 24). This means that any object in motion in-between the frames is being interpolated, that motion data is stored in your session. When motion blur is enabled, each frame of the motion data is sampled by the amount of samples specified in your project render settings. Sampling is done in parallel up to 64 samples[confirm], each increment above that is sequential and takes twice as long. For this reason either 64 samples or disabled motion blur is recommended for entry level systems.
{{Warning| "Depth of field sampling" effects more than just the camera, it also dictates the quality of lights when radius is used and ambient occlusion. disabling this setting is not recommended unless your scene contains no radius lights and you have ambient occlusion disabled.}
For "Depth of field" progressive refinement, instead of sampling interpolated motion data, SFM instead Generates randomly positioned motion data to sample in between frames. For the camera's "out of focus" effect, it takes the position of the camera and shifts the location relative to the focal plane randomly for each sample. At the default 8 samples this looks off putting, so instead the samples are increased to 64 or above or the camera's "aperture" channel is set to 0 whilst the setting is still enabled. When the aperture is set to 0, Extra care will have to be taken to separate the subject from the background using lights and a lower tone-map scale on the camera.
== Sample Settings ==
These can be found by clicking the top entry in the list when right clicking the viewport, also found in the render settings or element viewer. Currently, the amount of samples you can utilize towards progressive refinement are as follows:
Depth of Field: 8, 16, 32, 64, 128, 256, 512, 1024
Motion Blur: 8, 16, 32, 64, 128, 256
{{Tip|  You can edit each camera's progressive refinement values in the element viewer, but are overridden when not using 8(use camera settings) samples set in either render menu.}
In the SFM, a single frame is not a still image; it's 1/x of a second (x being the number of frames per second your project is working in, default being 24).  This means that any object in motion in the frame is in a slightly different position at the end of the frame than it was at the beginning.  That motion data is stored in your session.
In the SFM, a single frame is not a still image; it's 1/x of a second (x being the number of frames per second your project is working in, default being 24).  This means that any object in motion in the frame is in a slightly different position at the end of the frame than it was at the beginning.  That motion data is stored in your session.



Revision as of 20:21, 9 September 2022

Overview

{{Note| Progressive refinement effects are disabled unless you are viewing inside clip editor when paused} Progressive refinement is a rendering technique that simulates motion blur, depth of field, soft shadows and lighting by blending together slightly different versions of a frame in groups of 8 samples. The more samples in the frame blended together, the better the quality as samples are less distinguishable from each other. However the movie will take longer to render as a result.

In the SFM, a single frame is not a still image; it's 1/x of a second of animation (x being the number of frames per second your project is working in, default being 24). This means that any object in motion in-between the frames is being interpolated, that motion data is stored in your session. When motion blur is enabled, each frame of the motion data is sampled by the amount of samples specified in your project render settings. Sampling is done in parallel up to 64 samples[confirm], each increment above that is sequential and takes twice as long. For this reason either 64 samples or disabled motion blur is recommended for entry level systems.

{{Warning| "Depth of field sampling" effects more than just the camera, it also dictates the quality of lights when radius is used and ambient occlusion. disabling this setting is not recommended unless your scene contains no radius lights and you have ambient occlusion disabled.} For "Depth of field" progressive refinement, instead of sampling interpolated motion data, SFM instead Generates randomly positioned motion data to sample in between frames. For the camera's "out of focus" effect, it takes the position of the camera and shifts the location relative to the focal plane randomly for each sample. At the default 8 samples this looks off putting, so instead the samples are increased to 64 or above or the camera's "aperture" channel is set to 0 whilst the setting is still enabled. When the aperture is set to 0, Extra care will have to be taken to separate the subject from the background using lights and a lower tone-map scale on the camera.

Sample Settings

These can be found by clicking the top entry in the list when right clicking the viewport, also found in the render settings or element viewer. Currently, the amount of samples you can utilize towards progressive refinement are as follows:

Depth of Field: 8, 16, 32, 64, 128, 256, 512, 1024

Motion Blur: 8, 16, 32, 64, 128, 256

{{Tip| You can edit each camera's progressive refinement values in the element viewer, but are overridden when not using 8(use camera settings) samples set in either render menu.} In the SFM, a single frame is not a still image; it's 1/x of a second (x being the number of frames per second your project is working in, default being 24). This means that any object in motion in the frame is in a slightly different position at the end of the frame than it was at the beginning. That motion data is stored in your session.

Progressive refinement is a rendering technique that creates motion blur, depth of field, and soft shadows by blending together slightly different versions of a frame many times. The more versions that are blended together, the higher the quality, but the longer the movie takes to render.

Note.pngNote:Progressive refinement is disabled when using the Motion Editor, Graph Editor, and the work camera. You won't see progressive refinement when playing back a scene. To view a frame with progressive refinement, ensure your viewport is set to your scene camera, you're in the clip editor, and you've paused playback.

Sample Settings

Currently, the amount of samples you can utilize towards progressive refinement are as follows:

Depth of Field: 8, 16, 32, 64, 128, 256, 512, 1024

Motion Blur: 8, 16, 32, 64, 128, 256

Note.pngNote:You may also use your camera settings to render progressive refinement, as selecting any other sample value shall override your current camera settings. You can edit the camera's values in the element viewer.

See also