Project

General

Profile

« Previous | Next » 

Revision acba5556

Added by danij about 16 years ago

Materials system 2.0 (Part 1 of 6)
Upon getting the initial implementation working well "enough" for a release I began about working on a revised version, with the goal being to resolve the current issues and re-evaluate the design. This 2.0 version of the materials system addresses most of the issues whilst also featuring a more elegant and more memory efficient design. For more information on the details of the system see the DEW artile: http://sjke.org/dew/index.php?title=Material

Revised detail texture instance management to speed up searches.
Sky textures are no longer handled seperately from the "normal" versions of the same texture. We still use generate different instances tailored for use with the sky but this is handled behind the scenes.
New faster method of determining a material for a sprite num, frame and angle (rather than use R_GetSpriteInfo).
Take advantage of eternal material pointers in the net code to avoid determining a materialnum_t for surface's material at the time the register is marked with a material change (now only do this in the delta-write routines since they are merged with old deltas before being sent).
Fixed BlackOutlines() which was failing to released it's temporary, local working buffer.
Fixed broken shiny surfaces.
Fixed incomplete initialization of rendpoly_t. Todo: get rid of them entirely.
Fixed bug: Lumobjs created for palette-translated sprites were assigned color and size values derived for the untranslated sprite.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences