Started by Max-Max, October 08, 2013, 05:32:28 PM
0 Members and 1 Guest are viewing this topic.
Quote from: Ters on October 08, 2013, 05:49:59 PMWater uses it for animation. I don't know if other climates would animate if given other frames, or if it's just a vestigial consequence of sharing the same data structure.
Quote from: kierongreen on October 08, 2013, 08:30:38 PMThey wouldn't animate - it is indeed vestigal. Minimising repetitive patterns would be possible with a small amount of code, quite a large increase in number of stored images and a reasonable way of generating a fixed number to use for each tile.
Quote from: kierongreen on October 08, 2013, 09:24:28 PMHaving more than one texture for each climate would expand image numbers considerably. Each new texture would need 65 images to go with it. So, 4 images for each climate would mean 7*3*65=1365 extra images. Well, maybe not the end of the world but still quite a few more.
Quote from: kierongreen on October 08, 2013, 09:24:28 PMIt's not a question of the world generator picking one randomly (that would mean storing more information). Rather have a simple algorithm to give a "random" number for each tile.
Quote from: kierongreen on October 08, 2013, 09:59:36 PMEach texture needs to be mapped to each slope image it might be used for (avoids calculating the transformations during drawing). So that's 65 images for each texture. I'd assume you'd want all climates to have a variety of textures too, so put both together...
Quote from: Max-Max on October 08, 2013, 08:50:50 PMThat was my first though too, but the water animation look like this:Obj=groundName=Water# hangtyp * animationImage=ls-water-128.0.0Image=ls-water-128.0.1Image=ls-water-128.0.2Image=ls-water-128.0.3Here the second index is also 0.