lab313ru / tim2view

TIM, TM2 formats viewer, converter, searcher, editor, scanner, ripper
http://lab313.ru
50 stars 9 forks source link

Replace 256 ".TIM" CLUT with a 256 color palette from a ".bmp" file. #6

Open NERVAgent opened 8 years ago

NERVAgent commented 8 years ago

May I suggest the feature to replace a 256 color CLUT in a PSX ".TIM" file with a 256 color palette from a ".BMP" file.

Currently, that requires changing each and every 256 entry one by one to match the palette ripped from a ".BMP" file. This is time consuming (and could probably cause arthritis). A faster way would be appreciated.

vaportropicae commented 7 years ago

Actually there's a way to do that without changing every single color on TIMViewer, but you'll need a Hexadecimal editor like HEXEdit, Windhex or Hxden-(Highly recommended). Unfortunately the ".tmext" file created by TIMViewer holds a different and specific language. After converting a .BMP to .TIM using the TIMViewer you might be able to extract the information necessary to create your own CLUT palette. TIP: Every palette begins at the 14th hexadecimal column when you open a 8bpp .TIM file and the selection length shall be 200.

lab313ru commented 6 years ago

Someday I'll implement this.