What is the Relationship Between Camera and Render Product?

I would like to understand the relationship between the camera and the render product. Is the render product automatically created when I set up a camera, or do I need to manually create the render product and bind it to the camera?

Thank you!

The render product is independent from the camera, in python it could look like this:

# camera has no resolution! 
ceiling_cam = rep.create.camera(focal_length=12, 
                            name='ceiling_cam',
                            clipping_range = (5, 40), 
                            position = (7, 16, 15),
                            look_at = (0,6,0))

# render product has a resolution!
rp  = rep.create.render_product(ceiling_cam, (1920, 1080), name='ceiling_cam')

and then e.g. create a writer and attach the render product

pose_writer = rep.WriterRegistry.get("BasicWriter")
pose_writer.initialize(output_dir="/tmp/asd", .....)
pose_writer.attach([rp])
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.