Rendering, lights and materials


To learn about the two rendering modes supported by PocketStudio see Preview and high quality rendering. Some rendering effects such as depth of field or motion blur are only available in the high-quality rendering mode.

In the preview mode, by default PocketStudio treats all surfaces as single-sided. Backface culling can not yet be switched off. In the high-quality mode surfaces will be treated as double-sided.

The GPU is a Magic Bullet… “not”

xx one you don’t have memory anymore well you will have no more performances …

Works on:PreviewHigh-quality

Adding fog to a scene can help create a sense of depth, add atmosphere and realism to that scene. This effect can help viewers get a better sense of the scene’s size.

This current version of PocketStudio has a simple fog model which only contains a couple of properties: the fog color and the distance at which the fog starts. The falloff of the fog itself (how it fades in with distance) cannot be controlled at the moment. Fog is applied in the two rendering modes. Note however that this fog will only affect the color of the objects of the scene. It will not affect the sky itself. To do so, you would need to use volumetric objects which are not yet supported.

The fog properties are part of the scene description. To add fog to the scene do as follows:

  1. To select the scene properties, click anywhere on the sky in the Viewport. The scene properties (including the physical sky or skydome properties) will be displayed in the Property Editor panel to the right of the Viewport (in the default layout).
  2. At the bottom of the Property Editor panel, you will find a Fog section, under which you will find two properties: Fog Color and Fog Distance. Set a value greater than 0 for the Fog Distance property in order to see the fog (a distance of 0 means no fog at all). This value is expressed in the scene’s distance unit (1 unit = 1 meter).

The current fog model uses a very basic and standard distance-based exponential falloff.


Works on:PreviewHigh-quality

Depth of field is available in the high-quality rendering mode (type F2 to switch between the preview and the high-quality rendering modes). To achive the effect in the viewport, certain properties from the camera need to be adjusted from the default settings:

  1. Switch to the high-quality rendering mode if you are not in this mode already by pressing the F2 key.

  2. Open the camera panel and double click on the camera for which you wish to get depth of field. This will display the camera properties in the property editor panel (to the right of the viewport in the default layout).

  3. By default, both the Focus Distance and the Aperture Radius properties are set to 0.

    • Set the Aperture Radius property to a value greater than 0. This parameter is defined in world units. By default, 1 unit is equal to 1 meter. Therefore, a value of 0.01 means an aperture of 1cm. By increasing the value of this property, you will increase the amount of blur (or technically, decrease depth of field).

      The fact that this value is set in world units is important. Scenes are assumed to be set with a similar scale to the one used in PocketStudio. In other words, the 3D model of a man or of a woman should be somewhere around 1.5 to 2 units in height for example. If you use a different rule, if the 3D model of your man or woman is between 0.15 to 0.2 units or 150 to 200 units, you will need to either divide the aperture value by 10 or multiply it by 100 to get a similar effect to the one you would get if your 3D model was between 1.5 and 2 units.

    • Set the Focus Distance with the distance between the camera and the object you want to appear in focus. By pressing the Shift key while clicking with the right mouse button on the object you want in focus (Shift + ), that distance will be precisely calculated for you. You can look at it as a camera focus picker tool.

Additional properties such as the Aperture blades and Blade curvature can be used to control the effect. See below to get a complete description of what these properties do.

Aperture Radius = 0.1

ps docs dof aperture radius01

Aperture Radius = 0.3

ps docs dof aperture radius03

Aperture Blades = 5

ps docs dof blade5

Aperture Blades = 6

ps docs dof blade6

Blades Curvature = 0
Blades Curvature = 1

Setting the focus distance automatically using the focus picker tool: xx.


Keeping focus while the camera or the subject moves: xx.


What is Depth of Field and when should I be using it?

When you look at photographs, sometimes only certain objects from the scene are in focus while other parts of the scene, objects that are either closer or further away from the camera appear to be blurred. Technically depth of field refers to the distance between the closest and the farthest object in the scene that appears to be sharp on the photograph. In photography, this distance is controlled by a few parameters such as the focal distance of the lens often measured in millimeters (the shorter the focal, the shallowest the DOF) or the lens aperture (the smaller the aperture the larger the DOF). Pinhole cameras have the property to have an infinite depth of field. In other words, when you take a picture with a pinhole camera, all objects from the photograph will appear sharp.

Interestingly enough, in computer graphics it is the model of the pinhole camera that we generally use to generate images. Therefore, by default, the images you see in the viewport for example are all sharps, regardless of their distance to the camera. This can be seen as a good thing, but in cinematography, depth of field has become an intrinsic tool of storytelling. If the face of a character is in focus and the rest of the scene (the foreground and the background) is blurred, you will more easily focus your attention on the character’s emotions, expressions or physical traits. As it is both an esthetical effect as much as a tool that can be used to serve the story, it is important to be able to simulate this effect in CGI as well.

Works on:PreviewHigh-quality

Motion blur is on by default in the high-quality rendering mode. There is no motion-blur in the preview quality mode.

You can define the amount of motion blur for each camera in the scene. If you click on a camera to select it, or double click it in the camera panel to select and view through it, you will notice a subheading in the property editor called Motion Blur. In here we have the Shutter Angle parameter. The “shutter angle” is a useful way of describing the shutter speed relative to the frame rate.

To calculate the correct shutter angle you can use the equation:

shutter angle (degrees) = (framerate x 360) / shutter speed

So, if you are rendering out at 60fps, and you’re trying to replicate a physical camera with a shutter speed of 125, your shutter angle will need to be 172.8 to achieve accurate motion blur:

shutter angle = (60 x 360) / 125
shutter angle = 21600 / 125
shutter angle = 172.8
Shutter angle 172.8
Shutter angle 0

Works on:PreviewHigh-quality

Tone mapping improves the display of scenes with high-dynamic range on low-dynamic range monitors.

PocketStudio provides only one tone mapping operator of function at the moment. It is designed to preserve details in the highest values of the images, details that would be otherwise clamped when converted to the monitor lower dynamic range. To activate tone mapping do as follows:

  1. Press the F1 key to open the render options floating panel. Two small windows will show up on top of the viewport. If they are closed, click on the small triangle icon in the upper left corner of the window to expand it and make its content visible.
  2. Check the Tone Mapping option in the Render Debug window to activate tone mapping.

ps docs ui tonemapping

If tone mapping is on, it will be applied to images or videos rendered out from the application.

It is not possible at the moment to edit this tone mapping operator. Adding and customizing tone mapping operators or functions will become available in future versions of the software.

Tone Mapping: OFF
Tone Mapping: ON

Works on:PreviewHigh-quality

PocketStudio supports NVIDIA’s OptiX AI-accelerated denoiser. It is a tool that rapidly resolves noise in an image, meaning your frame can be ‘completed’ in a much quicker time frame.

The denoiser uses AI to speed up the removal of noise in your renders. It means you do not have to wait for the RTX renderer to fully resolve the frame, as the denoiser can intelligently estimate what the final frame will look like.

The denoiser impoves the speed at which the high quality render resolves, meaning you can iterate much more quickly to get the lighting of you scene just right.

To activate noise reduction:

  1. Press the F1 key to open the render options floating panel. Two small windows will show up on top of the viewport. If they are closed, click on the small triangle icon in the upper left corner of the window to expand it and make its content visible.
  2. Check the Use denoiser option in the Raytracing Debug window to activate noise reduction.

Rendering with noise reduction

The denoiser operates on a per frame basis and makes intelligent choices on how the frame should look based on the data in the current frame. Because the denoiser operates on a per frame basis it could make decisions in each frame that do not play smoothly together when viewed back as a sequence. In effect it can introduce perceived noise when the sequence of images is played back, even if each frame is crystal clear.

The noise reduction tool is great for static images, but if you want to use it on a sequence of images you will need to find the right the number of samples to use during raytacing.

Making object visible or invisible to camera