Scaling specific texture with a neative value disappears

Bugs that have been investigated and resolved somehow.

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.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Scaling specific texture with a neative value disappears

Post by Tormentor667 »

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:
User avatar
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

Post by drfrag »

Which GZDoom version? 4.3.3 or a recent devbuild?
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Tormentor667 »

Sorry, I am using the most recent svn version 4.4
User avatar
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

Post by drfrag »

Tormentor667 wrote:the most recent svn version 4.4
Heh, i guess that means g4.4pre-313-g331f3d85d (yesterday's devbuild).
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Tormentor667 »

Yes, exactly that’s the one - so is it an engine bug or did I do something wrong?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

It's surely not intended, the question is, is this an old effect or something recent?
Gez
 
 
Posts: 17833
Joined: Fri Jul 06, 2007 3:22 pm

Re: Scaling specific texture with a neative value disappears

Post by Gez »

Negative scaling to invert textures (or sprites) is an old trick and has been used often.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Tormentor667 »

Gez wrote:Negative scaling to invert textures (or sprites) is an old trick and has been used often.
Exactly, I used it numerous in Blade of Agony
User avatar
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

Post by drfrag »

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.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Enjay »

drfrag wrote:4.3.3 can't run the mod.
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.

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).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

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.
User avatar
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

Post by drfrag »

Surprisingly the texture doesn't show up in LZDoom either.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Tormentor667 »

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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

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.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Scaling specific texture with a neative value disappears

Post by Tormentor667 »

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)
Post Reply

Return to “Closed Bugs [GZDoom]”