Page 1 of 1

[gzdoom-g2.1.pre-385] UDMF texture scale bug

Posted: Sat Dec 20, 2014 14:51
by MaxED
Looks like UDMF vertical texture scaling is broken when negative scale is used.

What I've expected:
negativescalebug (edit area) at 2014.12.20 16-47-04.457 [DEVBUILD].jpg
negativescalebug (edit area) at 2014.12.20 16-47-04.457 [DEVBUILD].jpg (98.45 KiB) Viewed 373 times
What I've got:
Screenshot_Doom_20141220_164645.png
Screenshot_Doom_20141220_164645.png (230.06 KiB) Viewed 373 times

Re: [gzdoom-g2.1.pre-385] UDMF texture scale bug

Posted: Fri Dec 26, 2014 11:51
by Graf Zahl
Fixed. This was a simple case of badly applied texture clamping. For negative scales the texture ended up in texture coordinate range [-1..0] where only [0..1] would work. The code to correct this was already there for camera textures (which are created upside down due to OpenGL's nature) but was missing for normal ones.