This is TikiWiki 1.9.2 -Sirius- © 2002–2005 by the Tiki community Fri 03 of Sep, 2010 [09:39 UTC]
TTDPatch Site

PalettesAndCoordinates

How to work with palettes, and the 2D and 3D coordinates print
history

Palettes


Since TTD is a palette-based game, you have to be careful that the graphics program you use can deal with that properly. Also, TTD uses some palette entries for palette cycling to do some colour-animation, don't use these as regular colours. These entries are often called "action colours".

Below is an explanation by Oskar Eisemuth of the various colour ranges in the DOS and Windows palettes. Both palettes work similarly, but some of the colours are in different places.

img/wiki_up//windowspal.png



Info on the image: The colors you can use normally are marked in green. The colors which have special purposes/are color cycles are marked yellow. Don't use the red marked colors.

The colours in the "company" range are often (but not always) changed to the current player colours. In some instances, they may be changed to colours specified by the .grf file, or random colours, or not changed at all.

Here is a list, provided by George, of the shades of player colours that will be used:

img/wiki_up//playercolours.png

The "Patch Company 2" range is normally not a special colour range, but since 2.0.1 alpha 67 it is possible to activate it as a second company colour for vehicles and town houses.

The palette cycling ranges listed are the water cycle (used for the blinking dots in the water), the block cycle, fire cycle, exchange red (better called crossing red; used for the flashing crossing lights), and the yellow cycle (used for lights in the runway of the large airport).


The following table presents more detailed info on differences between DOS and Windows colours and colour indices:




Coordinates


TTD internally uses a 3D engine, which then uses an isometric projection to display graphics on a 2D screen. The 3D engine uses so-called "bounding boxes" for each sprite, which are then sorted by the sprite sorter to get drawn in (what it thinks is) the right order.

To get a certain sprite drawn at the right place, it needs to have a proper bounding box (which is provided by the game for the most part), and the correct 2D offsets, here called "xofs" and "yofs" (see RealSprites for more information). The following picture by Oskar Eisemuth should help in figuring out how the 3D and 2D coordinates relate to each other:

img/wiki_up//coordinates3d.png

For 3D coordinates, X goes from top right to bottom left, Y goes from top left to bottom right, and Z (height) from down to up. For 2D coordinates, X goes from left to right, and Y from top to bottom. Usually, the top side of the screen is referred to as "north", and thus "east", "south" and "west" are the right, bottom and left side of the screen.

For vehicles, the center of the bounding box (shown with a red dot in the yellow boxframe) is the reference point from which the xofs and yofs are counted. This means that in most cases, xofs and yofs need to be negative to get the sprite to fit on the box. Normally, as indicated above, this means xofs is approximately the negative value of half the sprite width, and yofs is approximately the negative value of half the sprite height.

For all other sprites, the reference point is the furthest corner of the box, at its lowest X, Y and Z coordinates, i.e. the lower northernmost corner. In the image above, it is indicated by the crossing point of the blue lines. The xofs and yofs work from this point, instead of the center of the box as for vehicles.

Created by: system last modification: Friday 05 of March, 2010 [16:43:37 UTC] by mb


Menu
cialis free sampleadult webcam free video cheap generic viagrareal incestasian schoolgirlmom son fucking cialis and levitra buy viagrahot latinos herbal viagra female viagra viagra pills viagra onlinecum swallowgay personalsteen chat levitra vs cialisthick black ass alternative to viagralesbian hentai order viagra best price viagrahot girls and carsrubber bondage cialis genericglory hole picscelebrity cruisesoral penis sucking cheap viagra cailis viagra for women viagra canada discount viagra cheapest cialislesbian 69seamless pantyhose free viagra sampleshairy boyspanda moviesteen boob webcam picsfuck my sister wet wet pussy cialis vs viagraclips of hot blonde pussy getting fuckedparis hilton phoneindian lesbianbusty asians18 inch cockhappy hardcore cialis viagrafucking animalsnude indian viagra jokes order cialisbig black women cialis forum cialis samples cialis generic viagra free viagra sampleprivate glory holebukkake partyforced blowjobfree webcam girl live cialis drugforced fuck cilia structurefather son incest cialis tadalafilmature analsexy tits buy viagra online viagra cheap viagra 6 free samples cialis soft tabsparis hilton phone book cialis dosagebiggest tits free cialisbukkake lessonspantyhose moviescartoon sex animationfree webcam porn clipsebony pornstarscelebrity sexteen kellybeautiful blonde hairy pussy4some cialis uksimpsons cartoon porn free viagra natural viagra cialis onlinelesbian sisters discount cialisfree mature sexyoung black pussyhuge cocks cummingmilf huntbisexual orgyblonde teen porn buy cialishardcore anime pornhis first big cock purchase cialisfree bisexual moviesblack pornstarsasian girls nudegay toons cheap cialishorse dick viagra generic cialis online discount order viagra online buy cialis onlinemonster cock anal online viagramilf rider alternatives to viagraxxx teen girls webcamtranny trick cialis side effectsebony lesbian viagra side effects viagra alternativesteen latina lesbiansyoung rapeblack lesbian sex viagra alternative cheap generic cialisgaping analteen webcam girls boobsteen school girls masturbatenude japanese schoolgirlscartoon xxxpreteen bukkake viagra on lineadult webcam girl live ciliasteen shemaleamateur analfree gay videosfree anime porn videosfree adult movie clipsdouble fisting anal cialis cheapnaked amateurs viagra pricerope bondagefemale japanese modelgroup sex web cams
[ Execution time: 0.33 secs ]   [ Memory usage: 11.09MB ]   [ 78 database queries used ]   [ GZIP Enabled ]   [ Server load: 0.93 ]