
Allows a second camera to be placed in a scene and a screenshot from that camera can be converted to a texture. The texture can be applied to a scene object giving the object a potentially reflective looking surface (depending on the position of the second camera). The TGLMemoryViewer class has camera property which can be positioned anywhere in a scene just like a normal camera. It also has a buffer property so it is possible to change fog etc in the memory viewer.
Important TGLMemoryViewer properties:
camera : TGLCamera
The camera that takes the screenshot
buffer : TGLSceneBuffer
Can set different buffer settings to the scenes TGLSceneViewer. For example different fog.
Important TGLMemoryViewer methods:
render: Take a screenshot
copytotexture(atexture : TGLTexture)
Copy the current screenshot from the camera to the texture
Demo: CVS/Demos/rendering/memviewer
Unit: GLScene
Descends from TGLNonVisualViewer.
Comments (0)
You don't have permission to comment on this page.