Game Development Community

dev|Pro Game Development Curriculum

TGE 1.4.2: Batched Decal Rendering

by Alex Scarborough · 11/25/2006 (9:58 pm) · 1 comments

Download Code File

This resource modifies the TGE decal renderer to render decals in batches using glDrawElements instead of rendering them individually in immediate mode. This reduces driver overhead and increases data throughput to the graphics card.

This resource is for TGE 1.4.2, and may work in previous versions of TGE as well.

Installation instructions: Copy the engine/sim/decalManager.cc file from this resource into the corresponding directory in your TGE SDK.

#1
11/26/2006 (4:16 am)
This is neat. I had hoped to be able to learn from this about how to batch other things, like the Particle system...
But im not skilled enough to understand whats happening here.

This will work with TLK if you merge logically.