Go Back   Forum > Open Transport Tycoon Deluxe (OpenTTD) > Разработка OpenTTD / OpenTTD Development
Разработка OpenTTD / OpenTTD Development Вопросы разработки OpenTTD, обсуждение новых сборок и патчей, решение проблем новых версий Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 24.01.2008   #1 (permalink)
Участник проекта OpenTTD 32bpp
 
Sergej_Sim's Avatar
 
Join Date: 30.09.2007
Posts: 2,009
Моя страна
Город : Мой город
Rep Power: 10
Sergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспорима
Send a message via ICQ to Sergej_Sim Send a message via Skype™ to Sergej_Sim
Инструмент для тестирования качества спрайтов

Инструмент для тестирования качества спрайтов
__________________
Sergej_Sim is offline  
Digg this Post!Delicious this Post!Technorati this Post!Google this Post!Slashdot this Post!Reddit! Furl this Post!Diigo this Post!StumbleUpon this Post!Simply this Post!Blink this Post!Spurl this Post!Magnolia this Post!Newsvine this Post!Bibsonomy this Post!Wong this Post!Yahoo this Post!Feedmelinks this Post!Bookmarktracker this Post!Backflip this Post!Mylinkvault this Post!Netscape this Post!Buddymark this Post!
Old 24.01.2008   #2 (permalink)
Участник проекта OpenTTD 32bpp
 
Sergej_Sim's Avatar
 
Join Date: 30.09.2007
Posts: 2,009
Моя страна
Город : Мой город
Rep Power: 10
Sergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспорима
Send a message via ICQ to Sergej_Sim Send a message via Skype™ to Sergej_Sim

Tile Test Tool
From OpenTTD

Contents
  • 1 Introduction
  • 2 Change Log
    • 2.1 Release 1 (Early hours of Monday 24th October 2005)
    • 2.2 Release 2 (Nearly tea time on Monday 24th October 2005)
  • 3 Tutorial
    • 3.1 File Format
    • 3.2 Default View
    • 3.3 Adding a tile
    • 3.4 Selecting tiles
    • 3.5 More screenshots
  • 4 Tile Creation Script
Introduction

The Tile Test Tool is a small SDL based program written in C++ to help with the development of the new graphics. It features an isometric grid, that lets you place different tiles and set up different height levels for tiles. It can use images in a variety of formats including PNG.
For more information see this topic on the forums.

Change Log

Release 1 (Early hours of Monday 24th October 2005)

- First version
- Source, Windows and OS X release

Release 2 (Nearly tea time on Monday 24th October 2005)

- Variety of other images supported via SDL Image
- Conversion of graphics into PNG format
- Tile creation tool
- More tiles included
- Bug fixes for better OS support
- Source release

Tutorial

File Format

All of the data files are stored in the data/ directory, and then each tileset is stored it its own directory under data/tiles/. A tileset consists of three different images for each tile, one for each zoom level, and a data file.
So you end up with something like this: data/
|-- ctile.sh
|-- ets.png
|-- font
| |-- font.dat
| |-- font.ini
| `-- font.raw
|-- fts.png
|-- openttd.128.png
`-- tiles
|-- bare
| |-- bare0.png
| |-- bare1.png
| |-- bare2.png
| `-- info
`-- bnk
|-- blank0.png
|-- blank1.png
|-- blank2.png
`-- info

The images have to be in a format that SDL Image can understand and also support transparency, it is suggested they are in PNG format as this is what is going to be used for the new graphics when they get integrated into the game.

The data file itself needs to be called info, and holds the image file name, what zoom level it is for, and offsets. An example of this is below:shore0.png Z0 X0 Y-32
shore1.png Z1 X0 Y-16
shore2.png Z2 X0 Y-8

The first part is the image name, the number after Z refers to the zoom level (0 biggest, 2 smallest), and the numbers after X and Y refer to the tile offset.
The bnk (blank) and bts (big tile select) tilesets are used for displaying the grid, and as such you cannot place them as tiles, but if you want you could make the images a bit nicer.

Default View

When you first load up the program you will be presented with the following. It may not look very colourfull, but it is fully 32bpp and does the job.
This image is from release 1 of the program and may look different in later releases

The isometric view will show you the tiles when loaded, and the bit on the right lets you select tiles. If you are lucky enough to have a web browser that can display images you will be able to see that the spacebar, arrow keys, and page up / page down keys do special tasks.

Adding a tile

To put a new tile down press the space bar, and then click on a tile name that sounds tasty. These refer to the folder names that we were talking about earlier. Once you have clicked a name the bit on the right hand side will change, like this:
This image is from release 1 of the program and may look different in later releases

These refer to the positions of the tiles on the grid. Unfortunately there is one problem, the tiles in the top left of the small grid refer to the tiles in the bottom right of the big grid (and vice versa), this isn't that much of a problem though and you get used to it after a while [Note: This has not been fixed in release 2]. So select an position, and voila - you should have something like this:
This image is from release 1 of the program and may look different in later releases

Now place a few more tiles so it looks nice, and then move on to the next bit.

Selecting tiles

If you click on one of the tiles in the small grid, the coresponding one (note the bug) in the big grid will now have a funny little indicator over it. This will stay there for around 15 seconds and then dissapear.
This image is from release 1 of the program and may look different in later releases

All you can actually do to a tile at the moment if change the height of it, so before the indicator disapears press Q or A - after you have pressed these it will stay there for another 15 seconds.
This image is from release 1 of the program and may look different in later releases

As you can see the tile has magically gone up one height level. [Note: The offsets are slightly broken, and this has yet to be fixed -- please tell me what they are supposed to be!]

More screenshots

This image is from release 1 of the program and may look different in later releases

This image is from release 1 of the program and may look different in later releases

Tile Creation Script

As of release 2 there is a tile creation tool that will set everything up for you. The requirements are that you are on a Unix based system, and have Image Magick and Wget installed. It takes a 128x63 image and resizes it to the bigger and smaller versions, and creates all the directories and files needed. It is in the data/ directory and called ctile.sh. It takes two arguments, the first the URL of the image, the second the directory you would like the image to be placed in.
__________________
Sergej_Sim is offline  
Digg this Post!Delicious this Post!Technorati this Post!Google this Post!Slashdot this Post!Reddit! Furl this Post!Diigo this Post!StumbleUpon this Post!Simply this Post!Blink this Post!Spurl this Post!Magnolia this Post!Newsvine this Post!Bibsonomy this Post!Wong this Post!Yahoo this Post!Feedmelinks this Post!Bookmarktracker this Post!Backflip this Post!Mylinkvault this Post!Netscape this Post!Buddymark this Post!
Old 24.01.2008   #3 (permalink)
Участник проекта OpenTTD 32bpp
 
Sergej_Sim's Avatar
 
Join Date: 30.09.2007
Posts: 2,009
Моя страна
Город : Мой город
Rep Power: 10
Sergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспорима
Send a message via ICQ to Sergej_Sim Send a message via Skype™ to Sergej_Sim
Default

Примеры отдельных спрайтов и общего вида.

В экспериментальной сборке используются именно эти три вида / масштаба спрайтов
Attached Images
File Type: png SpringTree2.png (7.1 KB, 66 views)
File Type: png SpringTree1.png (20.2 KB, 67 views)
File Type: png SpringTree0.png (86.7 KB, 67 views)
File Type: png 32bpp.png (75.8 KB, 2 views)
__________________
Sergej_Sim is offline  
Digg this Post!Delicious this Post!Technorati this Post!Google this Post!Slashdot this Post!Reddit! Furl this Post!Diigo this Post!StumbleUpon this Post!Simply this Post!Blink this Post!Spurl this Post!Magnolia this Post!Newsvine this Post!Bibsonomy this Post!Wong this Post!Yahoo this Post!Feedmelinks this Post!Bookmarktracker this Post!Backflip this Post!Mylinkvault this Post!Netscape this Post!Buddymark this Post!
Old 24.01.2008   #4 (permalink)
Участник проекта OpenTTD 32bpp
 
Sergej_Sim's Avatar
 
Join Date: 30.09.2007
Posts: 2,009
Моя страна
Город : Мой город
Rep Power: 10
Sergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспоримаSergej_Sim репутация неоспорима
Send a message via ICQ to Sergej_Sim Send a message via Skype™ to Sergej_Sim

Version 4

What is in this release

Bug fix: Before you could try and remove the last tile, which crashed the program - now you can't.

Changing of background colour: The background colour can now be changed between black, cyan, magenta and yellow (C key).

Hiding of grid: The base grid can be hidden (H key).

Layering of tiles: Tiles can now be layered on top of each other. You can't actually un-layer them (well you can decrease the grid size, but it doesn't actually delete them).

To do
Same as before.
Attached Files
File Type: zip OpenTTD_32bpp_Tool_win32.zip (597.0 KB, 17 views)
__________________
Sergej_Sim is offline  
Digg this Post!Delicious this Post!Technorati this Post!Google this Post!Slashdot this Post!Reddit! Furl this Post!Diigo this Post!StumbleUpon this Post!Simply this Post!Blink this Post!Spurl this Post!Magnolia this Post!Newsvine this Post!Bibsonomy this Post!Wong this Post!Yahoo this Post!Feedmelinks this Post!Bookmarktracker this Post!Backflip this Post!Mylinkvault this Post!Netscape this Post!Buddymark this Post!
ads
Closed Thread

Tags
background, colour, для, Инструмент, качества, спрайтов, тестирования


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +3. The time now is 04:54.
Design By: Design Studio
ads
Готовые сайты на CMS Abocms Amiro Bitrix Drupal Forum Hostcms Netcat Sbuilder Umi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396