Scaling specific texture with a neative value disappears

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Scaling specific texture with a neative value disappears

Postby Tormentor667 » Sun May 03, 2020 2:05 am

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
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby drfrag » Sun May 03, 2020 2:55 am

Which GZDoom version? 4.3.3 or a recent devbuild?
User avatar
drfrag
I.R developer, I.R smart
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Github ID: drfrag666

Re: Scaling specific texture with a neative value disappears

Postby Tormentor667 » Sun May 03, 2020 12:27 pm

Sorry, I am using the most recent svn version 4.4
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby drfrag » Sun May 03, 2020 12:34 pm

Tormentor667 wrote:the most recent svn version 4.4

Heh, i guess that means g4.4pre-313-g331f3d85d (yesterday's devbuild).
User avatar
drfrag
I.R developer, I.R smart
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Github ID: drfrag666

Re: Scaling specific texture with a neative value disappears

Postby Tormentor667 » Sun May 03, 2020 1:29 pm

Yes, exactly that’s the one - so is it an engine bug or did I do something wrong?
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby Graf Zahl » Mon May 04, 2020 2:07 pm

It's surely not intended, the question is, is this an old effect or something recent?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby Gez » Tue May 05, 2020 2:38 am

Negative scaling to invert textures (or sprites) is an old trick and has been used often.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Scaling specific texture with a neative value disappears

Postby Tormentor667 » Tue May 05, 2020 4:05 am

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
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby drfrag » Tue May 05, 2020 1:11 pm

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
drfrag
I.R developer, I.R smart
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Github ID: drfrag666

Re: Scaling specific texture with a neative value disappears

Postby Enjay » Tue May 05, 2020 2:09 pm

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
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Scaling specific texture with a neative value disappears

Postby Graf Zahl » Wed May 06, 2020 12:13 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby drfrag » Wed May 06, 2020 2:42 am

Surprisingly the texture doesn't show up in LZDoom either.
User avatar
drfrag
I.R developer, I.R smart
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Github ID: drfrag666

Re: Scaling specific texture with a neative value disappears

Postby Tormentor667 » Wed May 06, 2020 4:35 am

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
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby Graf Zahl » Thu May 07, 2020 4:10 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Scaling specific texture with a neative value disappears

Postby Tormentor667 » Thu May 07, 2020 8:42 am

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)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Next

Return to Bugs

Who is online

Users browsing this forum: AFADoomer and 11 guests