Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: SF-Junky on April 24, 2010, 06:54:00 am

Title: Help needed with command brief ANI
Post by: SF-Junky on April 24, 2010, 06:54:00 am
Picture (http://sebastian.ramrod-network.de/Freespace/images/cb_UAL0000.pcx)

Always I try to convert this into a .ani file, anibuilder says "WARNING: Palette in frame #1 has been adapted (cprrection degree: 171, smaller is better, 0 means no loss of quality)"

The upper limit 256 colors, right? This picture has some 4 colours. What did I make wrong?
Title: Re: Help needed with command brief ANI
Post by: Spoon on April 24, 2010, 07:06:11 am
That is a very nice... black .pcx file?
Need a bit more info here on how you created the .pcx file.

Anibuilder will adapt the palette of the frames following 0000 to the colors found in 0000 (so if the first frame is black, it will have some odd results on the other frames). I recommend you use Bright183 found on http://www.freespacemods.net/news.php. Bright will set up the palettes for each frame correctly so anibuilder will know what to do with them instead of trying its own pityful attempt at fixing it.
Title: Re: Help needed with command brief ANI
Post by: The E on April 24, 2010, 07:09:58 am
Also, that pallette has a lot more colours than just 4 in it.....
Title: Re: Help needed with command brief ANI
Post by: SF-Junky on April 24, 2010, 09:43:19 am
That is a very nice... black .pcx file?
Need a bit more info here on how you created the .pcx file.
here (http://sebastian.ramrod-network.de/Freespace/cb_UAL.7z) are all files I created to far. I used Photoshop CS2 to cut the fist from another picture and add the red shine effect.

I can download that bright program, but when I execute it, it closes itself after less than one second.
Title: Re: Help needed with command brief ANI
Post by: Spoon on April 24, 2010, 10:09:35 am
That is a very nice... black .pcx file?
Need a bit more info here on how you created the .pcx file.
here (http://sebastian.ramrod-network.de/Freespace/cb_UAL.7z) are all files I created to far. I used Photoshop CS2 to cut the fist from another picture and add the red shine effect.

I can download that bright program, but when I execute it, it closes itself after less than one second.
read the instructions/readme.
Title: Re: Help needed with command brief ANI
Post by: FreeSpaceFreak on April 24, 2010, 01:45:38 pm
BRIGHT is a command-line tool. You use it in the same way as nvDXT, via the command line. Just double-clicking the exec will indeed do nothing, it needs parameters that tell it what to do.
Title: Re: Help needed with command brief ANI
Post by: SF-Junky on April 25, 2010, 05:52:25 am
I did read the instructions, but I didn't really understand all the things that are told there.

Code: [Select]
C:\Programme\Bright
This is the path of the folder were both the Bright.exe and the picture (cb_UAL0010.bmp; 8-bit BMP) I'd like to convert are in. What do I have to enter in my command line?
Title: Re: Help needed with command brief ANI
Post by: The E on April 25, 2010, 06:47:35 am
There is a readme. It's meant to be read.

Quote from: Galemp
Additionally I made a command utility that will convert all BMPs in the folder to PCXs using a shared palette. You should install Bright into "Program Files\Bright" or edit the file below. You should also have Irfanview.

Save this as bright.cmd in the folder where your textures are, then run it.

@echo off

rem            The path to Bright:
set BrightPath=%programfiles%\Bright
rem            The path to IrfanView:
set IrfanViewPath=%programfiles%\IrfanView
rem            The path to output files to:
rem            use 'set OutputPath=.' to save files to the current folder.
set OutputPath=.


if exist *.pcx echo All .pcx files in this folder will be lost.
if exist *.pcx echo Press Ctrl-C to abort or
if exist *.pcx pause
if exist *.pcx del *.pcx
"%BrightPath%\bright.exe" *.bmp -common -o
if not exist "%OutputPath%" md "%OutputPath%"
rem            "%IrfanViewPath%\i_view32.exe" *.bmp /convert="%OutputPath%\*.pcx"

pause