vr.canvas/capture

Capture virtual reality canvas to RGB image

Syntax

z = capture(vr.canvas object)

Description

z = capture(vr.canvas object) captures a virtual reality canvas object into a TrueColor RGB image. You can then display this image with the image function.

Examples

Create a vr.canvas object to contain the virtual world, vrlights, capture that object to an RGB image, and display that image with the image function.

w = vrworld('vrlights');
open(w);
c = vr.canvas(w, gcf, [30 30 300 200]);
z=capture(c);
image(z);
Was this topic helpful?