Primitives

Due to performance optimization Gorilla3D introduces their own primitive models. Default FireMonkey primitives TCube, TSphere, TPlane and TCylinder are still supported, but they reduce render speed a lot when there is used large subdivisioning by the user.

A sphere could reach an enormous amount of vertices, when subdivision is set to high values. Each time the sphere gets rendered all those vertices are transfered to GPU.

To solve this problem, the Gorilla3D primitives TGorillaCube, TGorillaSphere, TGorillaCylinder and TGorillaPlane are inherited from TGorillaMesh and are able to use static framebuffers for fast rendering.

Static framebuffers will only push vertex data once to the GPU and render the elements only by switching to the framebuffer.

Supported primitives

TGorillaCube

TGorillaSphere

TGorillaCylinder

TGorillaCapsule

TGorillaPlane

TGorillaCone

TGorillaTube

TGorillaTorus

TGorillaGrid

TGorillaGrid3D

Next step:: Terrain