OSDN Git Service

wwww
[proj16/16.git] / 16 / v2 / util / TRANS.TXT
1 trans.exe\r
2 documentation\r
3 by zeromus 5.8.99\r
4 zeromus@verge-rpg.com\r
5 (be sure word wrap is on)\r
6 ---\r
7 USE: creates translucency table for use in v2\r
8 ---\r
9 If you want to use translucency effects in v2, you'll need to have the appropriate trans.tbl file.  This program will make it.\r
10 \r
11 Game palettes, unless you're elite like snes programmers, should be made up of a number of gradients.  Trans.exe takes advantage of this by accepting a makefile (for amusement called Palette Definition File, conveniently extensioned .pdf.  Our extension makes more sense than Adobe's, though.) consisting of a list of gradients found in the palette.  This unique method of generating a translucency table does not need the actual palette--it only needs to know which indexes in the palette start and finish each gradient.\r
12 \r
13 The .pdf format looks like this (the x spots are where you'll fill in numbers):\r
14 \r
15 GRADIENTS x_num_times\r
16 STARTS x ENDS x ENDSPAN\r
17 STARTS x ENDS x ENDSPAN <--x_num_time entries\r
18 STARTS x ENDS x ENDSPAN\r
19 ... etc\r
20 \r
21 With sample data:\r
22 \r
23 gradients 3\r
24 starts 0 ends 128 endspan\r
25 starts 129 ends 240 inverse endspan\r
26 starts 141 ends 254 endspan\r
27 \r
28 Whats that inverse, stuck in there, you say?  That just indicates that instead of gradient going from dark to light it goes from light to dark (that *is* what inverse means).\r
29 \r
30 Inspect the sample files for more info.\r
31 \r
32 That is all.