Translations for sprites and decals

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1118
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Translations for sprites and decals

Post by Jekyll Grim Payne »

Do I understand correctly that sprite palette translation and the way decals are colored works completely differently? Is there a way to make that process uniformed so that I could efficiently control the translation of a projectile and a decal it produces?

I'm thinking of blood projectiles that produce flatsprite puddles on the planes as well as decals on walls, and they use the same graphics for decals and for flat puddles.
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Translations for sprites and decals

Post by Nash »

Known issue

(holy crap it's been 4 years :mrgreen:)
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1118
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: Translations for sprites and decals

Post by Jekyll Grim Payne »

OK, well, we're in ZScript era now, so I think there are ways to get the color of blood from the target and then colorize the decal. The question is about colorization method specifically because AFAIK there are more methods than I'm aware. And, to be perfectly frank, I've never really understood how decal colors work, in contrast to (hehe) sprite translation.
Post Reply

Return to “Scripting”