Subversion Repositories eduke32


Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
5075 2402d 0h terminx /polymer/eduke32/build/src/defs.c Large batch of Polymost changes, including:

-lots of stylistic rewrites
-further improvements to anti-fighting code for wall and floor sprites (introduces three new cvars, r_wspr_offset, r_wspr_offset_variance, and r_fspr_offset)
-fixed brief HOM when traversing through a one-way masked wall
-seldomly used "alphahack" feature for hightile textures now represents alpha cutoff internally as a single byte instead of a float
-fixes a handful of issues where geometry failed to draw at certain coordinates from certain angles in certain resolutions
-renames a couple of cvars
5064 2402d 17h hendricks266 /polymer/eduke32/build/src/defs.c Amend "renamefile" def token to ensure its proper use. renamefile <GRP/SSI CRC32> <file number> <new filename>  
5061 2402d 19h hendricks266 /polymer/eduke32/build/src/defs.c Defs: Add token "renamefile", which renames a file in a GRP or SSI file, in memory. 8.3 restrictions apply.  
5056 2416d 5h hendricks266 /polymer/eduke32/build/src/defs.c Add "globalflags" def token. Flag 1 is a kill switch for the tileshades and artmapping features. Flag 2 is kill switch for the GL fullbright rendering pass.  
5040 2417d 17h hendricks266 /polymer/eduke32/build/src/defs.c Fix a compiler warning with USE_OPENGL=0.  
5010 2435d 23h terminx /polymer/eduke32/build/src/defs.c Nocompress and nodownsize for skyboxes  
4987 2442d 20h terminx /polymer/eduke32/build/src/defs.c Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change:

cutscene "somefile.anm" { delay 10 } // defines somefile.anm with a delay of 10 120Hz tics between frames. a more typical framerate method may come later, but this is how the originals worked.

Once defined, they can be played through CON with the new playback command, also called "cutscene". It works like this:

definequote 12345 somefile.anm
define ANIM_SOMEFILE 12345


cutscene ANIM_SOMEFILE // halts game execution and immediately plays cutscene, resuming execution when finished


Sounds can be played during animations (and tiles can be overlaid, etc) like this:

ifcutscene ANIM_SOMEFILE
ifvare RETURN 12 // frame 12
sound FLY_BY
rotatesprite ...

The value of the RETURN var at the end of EVENT_CUTSCENE determines the next frame to play. This can be used for looping, etc. Attempting to play animations backwards outright is not advised as animations only seek in one direction (so rewinding requires running it through from frame 0 again). This is will WIP and hasn't been heavily tested at all, so please try it out.
4884 2476d 10h hendricks266 /polymer/eduke32/build/src/defs.c Implement UserMapHacks.  
4835 2489d 8h helixhorned /polymer/eduke32/build/src/defs.c A couple of miscellaneous cleanups.

defs.c: sync some dup'd code for 'definevoxel' and 'voxel' DEF tokens.
engine.c: factor out PolymerProcessModels().
4834 2489d 8h helixhorned /polymer/eduke32/build/src/defs.c engine.c: style-cleanup drawvox(). Also clean up ALL of voxmodel.c.

No deliberate semantic changes here.
4813 2502d 3h helixhorned /polymer/eduke32/build/src/defs.c DEF: fix handling of 'remappal' attribute for 'makepalookup'.  
4812 2502d 3h helixhorned /polymer/eduke32/build/src/defs.c Pull setting g_noFloorPal[] further down, into makepalookup().

Now passed as last arg 'noFloorPal' to makepalookup(). Used as follows:
- from loadlookups(): *false*, i.e. do take over floor pal.
- from generatefogpals() [default fog pals] and fillemptylookups(): *true*,
i.e. don't take over floor pal
- from DEF 'fogpal': true
- from DEF 'makepalookup': take over flag from pal from which we are remapping,
or set to true if remapping from pal 0

This should make the issue reported in
resolve in a natural manner.
4811 2502d 3h helixhorned /polymer/eduke32/build/src/defs.c Move g_noFloorPal[] to the engine side and adapt other stuff accordingly.

- 'nofloorpalrange' DEF token: now handled for both game and editor (for the
latter, it's effective only for "shade preview" mode, [']+[X]).
- in generatefogpals(), assign g_noFloorPal[] = 1 for every generated (default)
fog pal; get rid of its return value / g_firstFogPal
4680 2551d 22h terminx /polymer/eduke32/build/src/defs.c Another 5000 lines of pain and tears. DONT_BUILD.  
4637 2576d 21h terminx /polymer/eduke32/build/src/defs.c Re-use temporary buffer for tilefromtexture true color -> paletted conversion and free when finished with the .def instead of freeing and re-allocating for every tile  
4623 2576d 21h terminx /polymer/eduke32/build/src/defs.c More Polymost cleanup, also consolidate tilesizx and tilesizy into a single tilesiz vec2_t to ensure both x and y are always in the same cache line. I may add a new vec2_16t later. Still need to take care of emulating the old flat array for the sake of CON access.  
4607 2576d 21h terminx /polymer/eduke32/build/src/defs.c Extra files for previous commits  
4491 2700d 1h helixhorned /polymer/eduke32/build/src/defs.c Bye, bye, B*alloc(), all hail X*alloc()! Replace large portion of the calls...

... and cull code that is dead with the X*alloc() versions since they never
return NULL on requesting memory.

Use something like
git grep '[^Xx]\(m\|c\|re\)alloc *('
git grep '[^Xx]strdup *('
to see places where I left the B*alloc() calls intact.

4402 2761d 3h helixhorned /polymer/eduke32/build/src/defs.c In 'tilefromtexture' DEF token, fix specifying -1 xoffset or yoffset.  
4385 2768d 16h terminx /polymer/eduke32/build/src/defs.c Widespread use of ARRAY_SIZE macro.  

Show All