Capture virtual reality canvas to RGB image
z = capture(vr.canvas object)
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.
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);