| bonifarz Member Level: 16 ![]() Posts: 24/41 EXP: 19111 For next: 1145 Since: 10-20-07 From: Switzerland Since last post: 14.1 years Last activity: 13.9 years |
|
||
| Overview Pixelscrambler is a tool that allows you to tune the colors of an extended, possibly modified ROM of SM64. It reads your tilemolester bookmarks from an xml file, takes them as offset and ending of the textures you wish to adjust and optionally tunes the Mario colors. An xml file with the bookmarks of most textures is provided as well. The program does not have a GUI, but it should be easy to use and ...fast. download: http://www.mediafire.com/?4m3c4vjmndx Example: Turning day into night. We want to dim the colors, reduce the saturation and add some blue. Because reducing the lightness of bright colors in HSL space yields strong hue fluctuations, we also reduce red and green. ![]() The input.txt for the above example. ![]() ![]() The head and tail of terminal output (verbose on) ![]() Load screen ![]() Castle at night. ![]() Lethal Lava Land. ![]() Night flight. The following passage is found in the README.txt About the files: The .exe file is a standalone application of the .f90 code created with gfortran. I provide it for Windows users who do not want to compile themselves. To run the program, it must be located in the same directory as the input.txt, the bookmark file and the rom you wish to read from (otherwise, include the path in the filenames). If you place a copy of the bookmark file out.xml in your tilemolester/resources directory and give it the appropriate name, it will be loaded by tilemolester as well. The program will create two files, the processed rom and an optional colorsample that can be viewed with tilemolester. ![]() Screenshot of tilemolester with the bookmarks from out.xml About the input file: Most input is commented. The first three lines give the names of your files, followed by one line of options and six lines defining how to process the colors of your rom. About the options: The options line is read up to the first blank space or comma, anything that follows is comment. Recognized keywords are mario, verbose, sample, wait and swap. Excluding mario conserves the mario colors. Excluding verbose reduces terminal output. With sample, a mapping of both, RGB and HSL space is written in a .z64 file. The option wait is helpful if you run the .exe by double click and you don't want to have the window closed on exit. The option swap switches between big and little endian byte order. About color transformations: Consider each coordinate in color space normalized to the interval from 0 to 1. Scaling factor and shift define a linear function: (color-0.5)*factor+0.5 + shift Recommended are shifts in [-0.5 , 0.5] and factors of 1 (default). All values except for hue are capped to the interval from 0 to 1. Therefore, any scaling factor other than +/- 1 and any amount of shift will cause a loss of color information. The hue value is not capped but has periodic boundary conditions. This means you can shift the colors on the hue spectrum without losing information. About the colorsample: With the option sample, a color sample is written, which contains all possible input and output colors and can be viewed with tilemolester. The four coloumns are mappings of RGB input and output, followed by HSL input and output. Note that only that part of HSL space is shown, which is sampled by your color settings. ![]() A part of the colorsample of the above example. About custom bookmarks: If you wish to use your own bookmark file, make sure to have all offsets arranged in pairs of both, a (group of) textures offset and ending. The ending is the offset of the first tile NOT to process. If you don't want to use an xml file from tilemolester, flag all decimal offsets by the patterns offset=" and ". ____________________ Greetings, Bonifarz ______________________ visit nccr nano sciences |
































Heh. '
