Incorrect offsets/UVs with TEXTURES lump scaling

Moderator: 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.

Incorrect offsets/UVs with TEXTURES lump scaling

Postby Talon1024 » Sun Oct 28, 2018 1:34 am

If I define textures to be scaled down in the TEXTURES lump, and offset them in a map, the offsets are applied incorrectly in the softplanar and OpenGL renderers. The softpoly renderer seems to work just fine for some reason.

Here's a runnable sample with high-res textures from cc0textures.com.

Talon1024
 
 
 
Joined: 27 Jun 2016

Re: Incorrect offsets/UVs with TEXTURES lump scaling

Postby Graf Zahl » Wed Oct 31, 2018 6:00 pm

This isn't a bug but an incompletely defined texture.

You have to add a 'worldpanning' instruction to each definition. The reason for this lies deep in the past. When texture scaling was originally implemented it was done with per texel panning, not world-unit panning. Needless to say that isn't the most useful thing, but when a decision had to be made what to use as default, the bad option was chosen.

In clear English: It's the softpoly renderer which is wrong here.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Software Renderer Bugs

Who is online

Users browsing this forum: No registered users and 1 guest