Bug 865 - Visplane texture-mapping improvements
: Visplane texture-mapping improvements
Status: RESOLVED FIXED
Product: Odamex
Classification: Unclassified
Component: Client
: (old) 0.6-dev
: All All
: P1 minor
Assigned To: Odamex Bug Reporter
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-18 16:13 UTC by Dr. Sean
Modified: 2012-11-10 01:51 UTC (History)
0 users

See Also:


Attachments
Sample map to test (770 bytes, application/x-doom)
2012-06-18 16:13 UTC, Dr. Sean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Sean 2012-06-18 16:13:31 UTC
Created attachment 388 [details]
Sample map to test

Odamex uses ZDoom 1.22's code for texture-mapping non-sloped visplanes (floors and ceilings).  While being very fast, it suffers from accuracy problems.  This can be noticed when two adjoining sectors share the same floor texture and one of the sectors has a flickering light effect (see attached test map).  The floor texture will appear to move as the light flickers.

As a quick test, I had Odamex use the sloped visplane texture-mapping functions for all visplanes.  These functions are much more precise and fixed the issued with the test map.  The sloped visplane functions are too slow for general use but can probably serve as an example for making accuracy improvements to our non-sloped visplane functions.
Comment 1 Dr. Sean 2012-11-10 01:51:32 UTC
r3409 has rewritten the flat texture-mapping function for increased accuracy without giving up much in the way of speed. I'm considering this fixed.