Game Development Community

Terrain texture sizes?

by Jeff Randall · in Torque Game Engine · 01/13/2002 (10:00 am) · 2 replies

Hello,

Can the engine use a texture greater than 256x256 for the terrain?

I trying to get the detail levels higher for the terrain, but I am aware there is a problem with using 512x512 textures.

My question is,

Does anyone know of a way to use higher resolution textures for the terrain without problems?

Thanx

#1
01/13/2002 (10:46 am)
There're currently a limit on the texture of 256x256, thats not because the texture wont load bigger, but (afaik) because the texture blending expects textures of that size?

Basically, when you create the texture for the map, its one big texture created from blending all of the base textures (i.e. textures used) based on a weighted alpha value per texture.

So in effect, a series of base textures gets blended into one huge texture, which is then broken into smaller textures in pages.

It might be that all you need is modify the blending code to live with texture sizes of 512x512 (have a look in the terrain render code for the blending functions).

Phil.
#2
01/13/2002 (4:59 pm)
Thanx a lot,

I'll check into it. :)