How to target objects with a random camera

In this tutorial, we’ll show you how to adjust how we target an object in the camera Freespace mode.

This tutorial is part of a series on Freespace camera mode:

Part 1:  How to control random camera placement in scenes

Part 2 (this tutorial)How to target objects with a random camera

Part 3: How to target activities with a random camera

Step 1: Add an object class as target

Start by using Freespace camera mode and targeting an object class, as shown in Tutorial part 1

Step 2: Target Menu

Click on the tile of a target object class and an option menu will appear. Here you can adjust: 

  • camera distance to the object
  • whether the object is a image center or anywhere in the image.

Note that these constraints will be combined with the ones in the Camera position section.

You can also select support surfaces on which the target object should be. This is just a hint for the engine, and will work if the same support surface is selected for the object class in Scene contents. (see the Tutorial on objects)

Step 3: Zoom on Target

Instead of specifying a camera-object distance, you can choose to automatically adjust camera parameters so that the object takes up a certain proportion of the image. Zoom can be greater than 100%. In that case, only a part of the object is visible in the image.

Step 4: Object-centric camera position

In the Camera position tab, you can select “Object-centric” mode in order to set a view angle range instead of specifying a camera zone as minimum and maximum height. In this example, this batch is configured to generate top views of the targets.

Step 5: Targeting multiple Objects

Each collection in Scene contents can be added to targets. By assigning percentages to multiple targets, you control how many images in the dataset will target one object class or another.

You can preview an image for each target by using the eye icon on its tile. This will refresh the preview window.

Fast, easy and affordable — on-demand synthetic datasets