Is there any way to find out how colors are applied to set items such as Tal Rasha's Armor?
I see the code is dpur which colors.txt calls Dark Purple, but how does the game actually apply the color transformation?
Set Items and Colors.txt
Moderators: Necrolis, Nefarius
Re: Set Items and Colors.txt
Color shifts for items are done via palette remapping; the chrtransform and invtransform define which one of the global color remappings will be applied when the char/item is rendered.
If you want to understand the mechanics behind this you can look at Paul Siramys docs of state palette shifts or Joels & Nefarius' tools for monster palettes.
If you want to understand the mechanics behind this you can look at Paul Siramys docs of state palette shifts or Joels & Nefarius' tools for monster palettes.
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
-
- Posts: 2
- Joined: Sun Jul 03, 2022 2:09 pm
Re: Set Items and Colors.txt
Thanks for the info. Where would I find these docs?
Are these palettes in the game files and can I apply them to the base image like Lacquered Plate?
For more clarity what I'm trying to do is apply these palette shifts to the "base" images either manually or automated
Are these palettes in the game files and can I apply them to the base image like Lacquered Plate?
For more clarity what I'm trying to do is apply these palette shifts to the "base" images either manually or automated
Re: Set Items and Colors.txt
So the basics of palette remapping can basically be summed up by this tool and accompanying source: http://paul.siramy.free.fr/_divers2/ColormapMaker.zipflymethod wrote: ↑Thu Aug 18, 2022 3:02 pmThanks for the info. Where would I find these docs?
Are these palettes in the game files and can I apply them to the base image like Lacquered Plate?
For more clarity what I'm trying to do is apply these palette shifts to the "base" images either manually or automated
the TLDR is that the item palettes act as a secondary indirection layer between the games palette and the item images (RLE encoded) 8bit palette indices; you can find the item palettes in `data\global\items\Palette\*`.
There is one file for each translvl, each file contains 21 sets of 256 bytes, each set of 256 bytes is a color shift from colors.txt.
Pauls tool should give you all the source needed to create an automated tool to remap on the fly.
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal