Shrinking a texture

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!)
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England

Shrinking a texture

Post by Hidden Hands »

I have a texture of a painting i want to put on the wall in the room of my game but it is too large to put on a 128x128 wall. I do NOT want to shrink the actual texture down, I just want to display it at a smaller scale in game... how would I do this? I can't seem to do it without re-scaling the entire wall texture with the painting on it and lowering its quality.

Thanks in advance.
User avatar
ramon.dexter
Posts: 1375
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Shrinking a texture

Post by ramon.dexter »

There are two way to do this:

First is easier. Just insert the texture as a simple linedef with middle texture and flag "lower unpegged", and set a texture scale in the "texture scale" in gzdoom builder.

Or, make a texture lump (best to do is use texture editor in slade), make a new texture and ... set a scale.


Well, when you look at front/back texture properties in gzdoom builder, dou you wonder what are the "scale" for? Have you ever tried playing with this?
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England

Re: Shrinking a texture

Post by Hidden Hands »

ramon.dexter wrote:There are two way to do this:

First is easier. Just insert the texture as a simple linedef with middle texture and flag "lower unpegged", and set a texture scale in the "texture scale" in gzdoom builder.

Or, make a texture lump (best to do is use texture editor in slade), make a new texture and ... set a scale.


Well, when you look at front/back texture properties in gzdoom builder, dou you wonder what are the "scale" for? Have you ever tried playing with this?
I never knew this! Thank you. I never used it before. This is great. Ill have to play with this feature when I get home later.

Return to “Scripting”