Auto gen textures

Forum Archive - from http://theuniversal.net
Locked
User avatar
eman_771
Posts: 41
Joined: Sat Dec 04, 2004 6:13 pm
Location: Atrum, Unknown Universe

Auto gen textures

Post by eman_771 »

ok, i have 8 textures in the correct format and everything of a landscape starting form a lakebed to snow.

how do i get it so that the autogen texture thing puts these in the right order?

i know how to put them in, but what are the "caculations" for it? what does each one represent on the planet? to reload it in the world do i "restart" the world server?

btw im using the Auto Texture Src # entries in texture tools on the world server
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

First you need to choose a landscape Autotexture Generation Mode mode other than 0 (in *settings, Landscape Settings). If you set it to 1 that's "simple autogen textures". Rougher blending but higher framerate. Set it to 2 for "prettier landscape textures" - better blending but a bigger framerate hit.

I don't think it's working yet, but setting it to 3 will soon be available for the same effect as 2 but with automatic generation of texture maps by the client. So choose 1 or 2 for now.

The "calculations" for it are pretty simple. In the world server, Auto Texture Src 1 should be the texture you want on the highest points of the map, going down to Src 8 for the lowest points. Then, in *settings/Landscape Settings, you assign Auto-texture height level values to each of the 8 source textures. These values correspond to the height of your landscape, which in turn depends on the shade of grey used on your heightmap bmp (with some adjustment from the heightscale setting).

There are 256 shades of grey in the heightmap, from black (0) to white (255). So, if you set Src 1 to be, say, snowy peaks... and you choose "240" for the autogen texture height in *settings, the game will start blending in the snowy peaks texture for any bits of landscape that are 240 high (like, almost pure white on the bitmap) and anything above that will also use that texture.

If you change any Src textures or height values in *settings you'll need to relog to see the effects, I believe.
f
Locked