Project

General

Profile

Bug #1078

Patch texture composition logic errors

Added by danij over 8 years ago. Updated 12 months ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Vanilla emulation
Target version:
Start date:
2012-08-25
% Done:

0%

Tags:

Description

Doomsday's Patch texture composition does not replicate the logic of the id tech 1 column/post based software renderer. In the original renderer posts are automatically enlarged to encompass the full range of a Patch column. Therefore the actual dimensions of textures in the Textures namespace aren't necessarily the same as those defined in (say) the TEXTURE1 lump, the real dimensions are only known once the texture image is composite is built.

Looking at the code it would appear we already have some logic which attempts to do this with composites bound for use on the sky dome. However, the logic there is flawed also because the logical dimensions of the texture remain the same and only the dimensions of the uploaded image are adjusted.

See the attached test WAD for a concrete example of the failure case.

Labels: Data


Related issues

Related to Bug #877: Texture offset anomalyNew2010-03-21

History

#1 Updated by danij over 8 years ago

- status: open --> fixed

#2 Updated by skyjake over 8 years ago

- milestone: v1.8.6 --> v1.9.10

#4 Updated by danij over 8 years ago

Further investigation revealed that there is in fact two issues here. The first being that the prepared image is not expanded as described in the initial report. The second is that the logical Material dimensions similarly need to expand to match the Texture as these are what determine the relative origin of middle textures on two-sided lines.

One solution would be an observer pattern -like mechanism (i.e., signals & slots in Qt parlance) whereby Materials are automatically notified when a Texture's logical dimensions change. Obviously this is too radical for the imminent Doomsday v1.9.9 release (material_t is but an opaque C struct presently) however it should be addressed early on for 1.9.10

#5 Updated by danij almost 8 years ago

- status: fixed --> open
- milestone: v1.9.10 --> v1.8.6

#6 Updated by skyjake about 7 years ago

  • Tags set to Textures
  • Category set to Vanilla emulation
  • Target version deleted (1.8.6)

#7 Updated by skyjake over 3 years ago

  • Target version set to Rendering

#8 Updated by skyjake over 3 years ago

  • Target version changed from Rendering to Vanilla / Gameplay

#9 Updated by skyjake 12 months ago

  • Assignee deleted (danij)

Also available in: Atom PDF