Scaling specific texture with a neative value disappears
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Scaling specific texture with a neative value disappears
Dear developers,
I am having a problem with scaling a specific texture with a negative value (to make it flip), as it makes the texture disappear. The texture is used in the new Austerity Remaster (RC3, can be downloaded here, only 10 MB).
The texture in question is GLOW_W, placed in the /textures/ folder. It is used numerous times in MAP02 and on the one hand placed on the ground where it works normally and on the other hand placed at the ceiling but flipped where it simply disappears. The texture is a middle texture with alpha channel, additive.
Editor shot:
Ingame shot:
I am having a problem with scaling a specific texture with a negative value (to make it flip), as it makes the texture disappear. The texture is used in the new Austerity Remaster (RC3, can be downloaded here, only 10 MB).
The texture in question is GLOW_W, placed in the /textures/ folder. It is used numerous times in MAP02 and on the one hand placed on the ground where it works normally and on the other hand placed at the ceiling but flipped where it simply disappears. The texture is a middle texture with alpha channel, additive.
Editor shot:
Ingame shot:
- drfrag
- Vintage GZDoom Developer
- Posts: 3141
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
- Contact:
Re: Scaling specific texture with a neative value disappears
Which GZDoom version? 4.3.3 or a recent devbuild?
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Scaling specific texture with a neative value disappears
Sorry, I am using the most recent svn version 4.4
- drfrag
- Vintage GZDoom Developer
- Posts: 3141
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
- Contact:
Re: Scaling specific texture with a neative value disappears
Heh, i guess that means g4.4pre-313-g331f3d85d (yesterday's devbuild).Tormentor667 wrote:the most recent svn version 4.4
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Scaling specific texture with a neative value disappears
Yes, exactly that’s the one - so is it an engine bug or did I do something wrong?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Scaling specific texture with a neative value disappears
It's surely not intended, the question is, is this an old effect or something recent?
Re: Scaling specific texture with a neative value disappears
Negative scaling to invert textures (or sprites) is an old trick and has been used often.
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Scaling specific texture with a neative value disappears
Exactly, I used it numerous in Blade of AgonyGez wrote:Negative scaling to invert textures (or sprites) is an old trick and has been used often.
- drfrag
- Vintage GZDoom Developer
- Posts: 3141
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
- Contact:
Re: Scaling specific texture with a neative value disappears
Coords are x 929 and y 202 for MAP02. g4.4pre-134-g52f1c8a0d is alredy affected so it's not very recent. 4.3.3 can't run the mod.
Re: Scaling specific texture with a neative value disappears
Deleting zscript.zc and mapinfo.txt allows it to start and on MAP02 at the coordinates that you posted, I cant see the texture in 4.3.3 either.drfrag wrote:4.3.3 can't run the mod.
However, there must be something unusual about this setup because using a Y scale of -1 does work.
In that screenshot you can see that one of the MIDBRONZE textures hanging from the ceiling is upside down, as is the door - both achieved with a Y scale value of -1. As you can also see, the GLOW_W texture from the light does not appear. (Same in today's Git build and 4.3.3).
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Scaling specific texture with a neative value disappears
I think it has to do with texture clamping. For linedefs that only have a single texture within coordinate ranges between 0 and 1 horizontal clamping is switched on, but if the texture is flipped that won't work.
- drfrag
- Vintage GZDoom Developer
- Posts: 3141
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
- Contact:
Re: Scaling specific texture with a neative value disappears
Surprisingly the texture doesn't show up in LZDoom either.
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Scaling specific texture with a neative value disappears
But I don’t get it - is it a wrong setup or an engine bug? Why does Enjay’s midtexture work and my midtexture does not?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Scaling specific texture with a neative value disappears
It's certainly an engine bug. To confirm whether my guess is correct you can try to change the offset to something slightly off (e.g. -1 instead of 0) and report if that makes it reappear.
- Tormentor667
- Posts: 13530
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Scaling specific texture with a neative value disappears
Tried it by adding offsets (x, y and both) to something else, no difference. I also tried different scaling factors (-2, -1.1, -4, 5, 10), anytime it's negative, the texture disappears. Interesting thing: If I wrap the texture, it appears again (wrapped, but it appears)