TEXTURES scaling does not work with a certain compat flag

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.
Post Reply
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

TEXTURES scaling does not work with a certain compat flag

Post by Talon1024 »

Title says it all. Texture scaling factors specified in TEXTURES do not work on the Linux version of GZDoom.

Example ZIP: http://www.ciinet.org/kevin/myimages2/d ... hdtest.zip.
hdtest.zip
Example - attached for people who cannot download from my site.
(8.84 KiB) Downloaded 41 times
EDIT: It's not an issue with the Linux version of GZDoom, but rather the "Ignore Y offsets on masked midtextures" compatibility flag.

Is it supposed to break scaling defined in the texture definitions like that? Texture definition scaling is not broken when I use either the planar or polygonal software renderers.
Last edited by Talon1024 on Sun May 27, 2018 3:03 pm, edited 7 times in total.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [Linux] TEXTURES scaling does not work

Post by _mental_ »

Could you please attach example to the post? Download requests timed out for me.
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Linux] TEXTURES scaling does not work

Post by Talon1024 »

All right, I attached the example to my post.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [Linux] TEXTURES scaling does not work

Post by _mental_ »

Works for me in Ubuntu 16.04 VM. Could you please post a screenshot?

EDIT: Did you have something different from the pictures below?

With scale:
Screenshot_Doom_20170928_111740.jpg
Without scale:
Screenshot_Doom_20170928_111703.jpg
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Linux] TEXTURES scaling does not work

Post by Talon1024 »

Turns out I had my compatibility options set for Boom compatibility. One of the options that gets enabled when I use Boom compatibility mode is "Ignore Y offsets on masked midtextures". Apparently, that flag breaks texture scaling from TEXTURES in the OpenGL renderer, but texture scaling specified in TEXTURES is unaffected in both the softpoly and classic planar renderer.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [Linux] TEXTURES scaling does not work

Post by _mental_ »

Paletted renderer:
Screenshot_Doom_20170928_123918.png
True color renderer:
Screenshot_Doom_20170928_123940.png
Only poly renderer is not affected by this compatibility option. I guess that's only because it doesn't taken into account in poly renderer.
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: TEXTURES scaling does not work with a certain compat fla

Post by Talon1024 »

Well, the polygonal renderer isn't fully mature yet, so there's still some stuff that doesn't work, like self-referencing sectors, Boom height transfers, etc.

But, the issue I'm talking about is the fact that the aforementioned compatibility flag breaks scaling on textures defined in TEXTURES in the OpenGL renderer.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: TEXTURES scaling does not work with a certain compat fla

Post by _mental_ »

Sure, I got it. The thing is such handling of this compatibility flag was explicitly added in hardware and software renderers to work this way.
Maybe Graf can tell us more about it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: TEXTURES scaling does not work with a certain compat fla

Post by Graf Zahl »

If the renderers behave differently it is a bug. This should not affect scaling.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: TEXTURES scaling does not work with a certain compat fla

Post by Graf Zahl »

The problem here comes from that flag being a very 'dirty' implementation. The way this is handle it simply loses the scale factor along the line - and apparently one of the renderers even mixes data from both the scaled and unscaled version of the texture. Ugh...

It was just a quick hack to get things working for maps that actually need the flag.
Post Reply

Return to “Closed Bugs [GZDoom]”