glscene

 

tglmultiproxy

Page history last edited by skinhat 3 yrs ago

Allows scene objects to be switched based upon the distance the object is from the camera. For example, when generating a forest, close to the camera could be a TGLTree, further away from the camera could be a sprite and furthest away a TGLPoints. This can increase the frame rate by reducing the number of objects that require a lot of resources to display. The 'masterobjects' property provides a list of different objects to be specified with an associated distance. These can be set at design time.

Important TGLMultiProxy properties includes:

masterobjects:TGLMultiProxyMasters

A list of the objects that are to be switched based upon the distance from the camera.

Demo: CVS/Demos/rendering/multiproxy

Unit: GLMultiProxy

Descends from TGLSceneObject.

Comments (0)

You don't have permission to comment on this page.