Page 24/36
TGLFreeForm
This object is used very often. It is capable of loading various mesh formats. To be able to
use some format you have to add appropriate loader unit. For example if you want to use 3ds format
you have to add GLFile3DS unit to uses clause. Call LoadFromFile function to load the geometry.
Texture coordinates are usually included in the file. Some formats support using of multiple textures
for one object. You just have to set the textures to the Mesh list. To successfully load the texture the
geometry has to be loaded before texture.
TGLMesh
[TODO]
TGLTilePlane
[TODO]
TGLPortal
[TODO]
TGLTerrainRenderer
To render outdoors landscape use terrain renderer. The advantage of terrain renderer is
LOD optimization. LOD takes care of Level Of Detail in the scene. Terrain is composed of quads.
Quads closer to the camera are denser with high detail. Quads further from camera stretch across
larger areas loosing the detail. This results in less polygons to be rendered without loosing visual
quality. Data for terrain renderer is provided by HDS components described in components
section. Default Up vector of terrain renderer is Z axis.
Graph-plotting objects
Object in this group are often used for scientific visualizations. Their shape is described
with mathematical equations.
TGLFlatText
[TODO]
TGLHeightField
[TODO]
TGLXYZGrid
Displays space grid along X,Y and Z axis. Individual axis can be turned on and off. Size
of grid tiles can be changed.
Particle systems
Particles are small sprites in large numbers generated according to same rules. Particles
create special effects like fire, smoke, explosions, rain or snow.
TGLParticles
GLScene beginner's guide, Jan Zizka, 2005