A freeform allows you to load a mesh of varying file formats such as 3DStudio 3DS, Milkshape ms3d file format, Quake III map format and
OpenBSP∞ format. Refer to the
file formats∞ article for a complete list. Freeforms include texturing and lightmapping and collision detection so it is possible to interact with and display scenes like youd see in Quake.
Freeforms are also shaded by default if a lightsource is in a scene.
Important
TGLFreeForm properties and methods include:
meshobjects TMeshObjectList
The list of vertices, normals and texcoords of the freeform.
lightmaplibrary TGLMaterialLibrary
Material library that holds light map textures
procedure
getextents (minextent,maxextent:
TAffineVector)
Returns the size of the freeform. minextent has the minimum x,y and z coordinate of the freeform while maxextent has the maximum
procedure
structurechanged
Call this procedure if the texture or mesh has been changed.
Demo:
CVS/Demos/meshes/mushroom∞
Unit:
GLVectorFileObjects∞
Descends from
TGLBaseMesh.