Monday, September 1, 2008

Terrain Texturing

By examining the Torque script that runs when a texture is applied to terrain using the 'Terrain Texture Editor' I have come to understand how it may be possible to apply textures dynamically using scripts at Mission Start.
Unfortunately the method used for storing information in variables is similar to that used in the 'Terraform Editor' which prevented me from using more than one algorithm to modifiy the terrain. This problem is further compounded by the fact that the first line values accepted by variable in question is simply the path to the texture and its identifier. There is a possibility that this information is passed as bitmasked data structured in such a way that binary addition of different data results in a unique number. I will carry out some tests to determine if this is true, if not the only possible work around will be to have a single terrain texture per map and for each map to be a different mission.

No comments: