Moderator: GZDoom Developers
Major Cooke
Posts: 8205 Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Post
by Major Cooke » Tue Dec 14, 2021 2:41 am
Pull Request
Adds NoTrim, which disables trimming of sprites with this specified.
- OR -
Code: Select all
Sprite <Name>, ...
{
NoTrim // This alone will suffice.
}
You do not have the required permissions to view the files attached to this post.
Graf Zahl
Lead GZDoom+Raze Developer
Posts: 49215 Joined: Sat Jul 19, 2003 10:19 am
Location: Germany
Post
by Graf Zahl » Tue Dec 14, 2021 4:22 am
This is a lot better because it's less invasive. One thing: To allow people doing it without editing TEXTURES, could you add an option to set this flag through ANIMDEFS? That'd allow it with plain sprites in the S_START/S_END namespace.
Major Cooke
Posts: 8205 Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Post
by Major Cooke » Tue Dec 14, 2021 7:42 am
Done!
Logan MTM
Posts: 678 Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil
Post
by Logan MTM » Tue Dec 14, 2021 8:02 am
Excuse me, what is "Trim Sprite"
Major Cooke
Posts: 8205 Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Post
by Major Cooke » Tue Dec 14, 2021 8:21 am
Image cropping. Shrinks the image boundaries to the image itself and removes all excess empty space in a square.
Logan MTM
Posts: 678 Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil
Post
by Logan MTM » Tue Dec 14, 2021 9:46 am
Is it the kind of, be able to make Sprite sheets like in Build Engine?
SanyaWaffles
Posts: 833 Joined: Thu Apr 25, 2013 12:21 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
Graphics Processor: nVidia with Vulkan support
Location: The Corn Fields
Post
by SanyaWaffles » Tue Dec 14, 2021 9:56 am
No. It has to do with the fact GZDoom crops sprites that have excess transparency.
I wonder where you got the idea it was a build-like engine feature as that was never said.
Enjay
Posts: 26906 Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Post
by Enjay » Tue Dec 14, 2021 11:34 am
My understanding is that it means that the engine will treat sprites like this:
As if they were like this:
(Green colour only there to make it clear where the edges of the sprite graphic is. The sprite is inside the green box.)
Logan MTM
Posts: 678 Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil
Post
by Logan MTM » Tue Dec 14, 2021 3:23 pm
Oh, ok. Thank you!
The word "Trim" has no translation to portuguese. So, wondering, the only thing i could imagine was sprites sheets.
Rachael
Posts: 13897 Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Post
by Rachael » Tue Dec 14, 2021 8:27 pm
Logan MTM wrote:
The word "Trim" has no translation to portuguese. So, wondering, the only thing i could imagine was sprites sheets.
What about the word "optimize"? That would probably be really close to the meaning. It's a bit vague but it still hits the target pretty close.
Major Cooke
Posts: 8205 Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Post
by Major Cooke » Wed Dec 15, 2021 1:23 am
Or "Crop".
Rachael
Posts: 13897 Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Post
by Rachael » Wed Dec 15, 2021 7:20 am
Yeah, that too.
Logan MTM
Posts: 678 Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil
Post
by Logan MTM » Wed Dec 15, 2021 8:20 am
Crop means the same of "cut". In portuguese at least. I think "Trim" is American unique word, like "render".
Rachael
Posts: 13897 Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Post
by Rachael » Wed Dec 15, 2021 8:58 am
Trim is most definitely not American, it comes from English predating America.
https://www.etymonline.com/word/trim
Render is also old English.
https://www.etymonline.com/word/render
Granted, in the context of computers, their meanings might change - but that doesn't make them American.
phantombeta
Posts: 2154 Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil
Post
by phantombeta » Wed Dec 15, 2021 2:23 pm
Trim does have a translation to portuguese. It's
"aparar" . In this case, the meaning is the same as the non-computer one: "To reduce slightly; to cut; especially, to remove excess." (Because what trimming a sprite does is removing the excess white space that isn't necessary)