Clip Middle Texture flag not working with skies in OpenGL

Thu Apr 09, 2020 6:22 pm

What it says on the tin. The UDMF line flag Clip Middle Texture doesn't work in the hardware renderers (I tested in 4.3.3 with OpenGL, Vulkan, & SoftPoly). Lines' midtextures extend into the sky above the actual ceiling height of their sector, until the texture's height is reached. In the software renderer, theyre cut off at ceiling height as they should be.

Re: Clip Middle Texture flag not working with skies in OpenG

Thu Apr 09, 2020 7:17 pm

I'm not seeing exactly what you describe.

Hardware:

As you say, the textures are drawn up into the sky. Texture 3 (from the left) is the one to look at here.

But, in software:

The only difference is that texture 1 is drawn into the floor (as I would expect - this difference between SW and HW is well known). However, texture 3 is the same in SW and HW (which is different to the report).

FWiW, put a ceiling on it and...

Hardware:


Software:


And, again, the differences between SW and HW are just the expected ones.

Test map attached that shows all of the above.
You do not have the required permissions to view the files attached to this post.

Re: Clip Middle Texture flag not working with skies in OpenG

Thu Apr 09, 2020 8:14 pm

Comparison shots to illustrate my issue: https://imgur.com/a/SHWJzHk

Top is software (vines clipped at ceiling), bottom is hardware (vines drawn above ceiling). I noticed now that software actually changes behavior depending on how close you are/what angle you view it at, oddly. Like when i got close to it, it rendered like in the bottom screenshot.