]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
22 years agomoved CHECKGLERROR to detect errors *after* rather than before uploading a texture
lordhavoc [Tue, 22 Jan 2002 07:01:30 +0000 (07:01 +0000)]
moved CHECKGLERROR to detect errors *after* rather than before uploading a texture

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1386 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomade lights half as bright
lordhavoc [Tue, 22 Jan 2002 06:58:49 +0000 (06:58 +0000)]
made lights half as bright

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1385 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomake dedicated work again
lordhavoc [Tue, 22 Jan 2002 05:36:02 +0000 (05:36 +0000)]
make dedicated work again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1384 d7cf8633-e32d-0410-b094-e92efae38249

22 years agofake answers for R_GetFragmentLocation when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:34:21 +0000 (05:34 +0000)]
fake answers for R_GetFragmentLocation when running dedicated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1383 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomodels don't allocate a texture pool when running dedicated
lordhavoc [Tue, 22 Jan 2002 05:33:30 +0000 (05:33 +0000)]
models don't allocate a texture pool when running dedicated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1382 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomore thorough checking of 'this should never happen' cases
lordhavoc [Tue, 22 Jan 2002 05:32:02 +0000 (05:32 +0000)]
more thorough checking of 'this should never happen' cases

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1381 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoflush unused models when running dedicated server
lordhavoc [Tue, 22 Jan 2002 05:31:25 +0000 (05:31 +0000)]
flush unused models when running dedicated server

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1380 d7cf8633-e32d-0410-b094-e92efae38249

22 years agofixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts
lordhavoc [Tue, 22 Jan 2002 04:46:52 +0000 (04:46 +0000)]
fixed 4 warnings in MSVC related to assigning -1000 to unsigned shorts

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1379 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoremoved a lot of memory checks now that it works again
lordhavoc [Mon, 21 Jan 2002 03:02:15 +0000 (03:02 +0000)]
removed a lot of memory checks now that it works again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1375 d7cf8633-e32d-0410-b094-e92efae38249

22 years agofix for bug in memory checking
lordhavoc [Mon, 21 Jan 2002 02:57:28 +0000 (02:57 +0000)]
fix for bug in memory checking

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1374 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoyet more memory testing
lordhavoc [Mon, 21 Jan 2002 02:50:07 +0000 (02:50 +0000)]
yet more memory testing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1373 d7cf8633-e32d-0410-b094-e92efae38249

22 years agochanged way windings are allocated, may fix memory corruption bug on MSVC
lordhavoc [Mon, 21 Jan 2002 02:39:08 +0000 (02:39 +0000)]
changed way windings are allocated, may fix memory corruption bug on MSVC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1372 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoadded some memory corruption checks, trying to find a bug
lordhavoc [Mon, 21 Jan 2002 02:09:24 +0000 (02:09 +0000)]
added some memory corruption checks, trying to find a bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1371 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoimproved error reporting on memory functions
lordhavoc [Sat, 19 Jan 2002 23:22:15 +0000 (23:22 +0000)]
improved error reporting on memory functions
memlist command now has an optional 'all' parameter to list the individual allocations inside pools

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1368 d7cf8633-e32d-0410-b094-e92efae38249

22 years agorearranged error checking during portal building so it will only Host_Error when...
lordhavoc [Sat, 19 Jan 2002 21:36:53 +0000 (21:36 +0000)]
rearranged error checking during portal building so it will only Host_Error when an error occurs, and changed tempmempool allocations for portal processing to use the loadmodel mempool so portals can be freed after an error (using modelflush)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1367 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomoved cl_visedicts to r_refdef.entities
lordhavoc [Sat, 19 Jan 2002 00:31:58 +0000 (00:31 +0000)]
moved cl_visedicts to r_refdef.entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1366 d7cf8633-e32d-0410-b094-e92efae38249

22 years agocleaned up a lot of particle rendering properties (mainly related to rain code),...
lordhavoc [Fri, 18 Jan 2002 20:33:38 +0000 (20:33 +0000)]
cleaned up a lot of particle rendering properties (mainly related to rain code), rain looks nice now.
added depthdisable to rmeshinfo_t
gl_backend now uses glDrawRangeElements on non-win32 (need to use dynamic GL binding to get it on win32), nice speedup
rearranged r_speeds2 time reporting code, now times more things (in gl_screen.c especially)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1365 d7cf8633-e32d-0410-b094-e92efae38249

22 years agominor optimization to fogged decal rendering
lordhavoc [Fri, 18 Jan 2002 20:21:55 +0000 (20:21 +0000)]
minor optimization to fogged decal rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1364 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoview model is no longer fully fogged (it was a divide by zero)
lordhavoc [Fri, 18 Jan 2002 20:20:08 +0000 (20:20 +0000)]
view model is no longer fully fogged (it was a divide by zero)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1363 d7cf8633-e32d-0410-b094-e92efae38249

22 years agogrenades no longer stick when you fire down a slope
lordhavoc [Fri, 18 Jan 2002 20:17:58 +0000 (20:17 +0000)]
grenades no longer stick when you fire down a slope

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1362 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoFixed a couple of warnings on MSVC6
molivier [Thu, 17 Jan 2002 17:38:45 +0000 (17:38 +0000)]
Fixed a couple of warnings on MSVC6

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1360 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoremoved no longer used static light parsing code
lordhavoc [Thu, 17 Jan 2002 01:30:08 +0000 (01:30 +0000)]
removed no longer used static light parsing code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1353 d7cf8633-e32d-0410-b094-e92efae38249

22 years agomade directional static lighting work, then disabled it because it is not practical...
lordhavoc [Thu, 17 Jan 2002 01:22:52 +0000 (01:22 +0000)]
made directional static lighting work, then disabled it because it is not practical without reliable data from the lighting utility

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1352 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoremoved (experimental, and broken) particles with polygonal explosion (after some...
lordhavoc [Thu, 17 Jan 2002 01:09:28 +0000 (01:09 +0000)]
removed (experimental, and broken) particles with polygonal explosion (after some testing I found it looked lousy)
fixed particles disappearing when using slowmo 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1351 d7cf8633-e32d-0410-b094-e92efae38249

22 years agochanged behavior about 'Bad Surfaces Extents', now only a warning, and such surfaces...
lordhavoc [Wed, 16 Jan 2002 20:31:44 +0000 (20:31 +0000)]
changed behavior about 'Bad Surfaces Extents', now only a warning, and such surfaces are rendered fullbright

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1350 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoupdated project to match added/removed files
lordhavoc [Wed, 16 Jan 2002 19:17:10 +0000 (19:17 +0000)]
updated project to match added/removed files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1349 d7cf8633-e32d-0410-b094-e92efae38249

22 years agohushed unitialized warning on end in cl_particles.c when using MSVC
lordhavoc [Wed, 16 Jan 2002 19:08:04 +0000 (19:08 +0000)]
hushed unitialized warning on end in cl_particles.c when using MSVC
fixed direct use of glActiveTextureARB/glClientActiveTextureARB
type cast parameters to glDepthMask

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1348 d7cf8633-e32d-0410-b094-e92efae38249

22 years agofix for missing (byte *) cast, and fix for WIN32 function lookup code in vid_shared.c
lordhavoc [Wed, 16 Jan 2002 18:47:28 +0000 (18:47 +0000)]
fix for missing (byte *) cast, and fix for WIN32 function lookup code in vid_shared.c

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1347 d7cf8633-e32d-0410-b094-e92efae38249

22 years agofixed a typo in cl_particles.c that happened to work in Linux (random() instead of...
lordhavoc [Wed, 16 Jan 2002 18:41:22 +0000 (18:41 +0000)]
fixed a typo in cl_particles.c that happened to work in Linux (random() instead of rand()), removed unused files, and moved CL_UpdateTEnts call

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1346 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoforgot to remove these
lordhavoc [Wed, 16 Jan 2002 06:20:30 +0000 (06:20 +0000)]
forgot to remove these

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1344 d7cf8633-e32d-0410-b094-e92efae38249

22 years agorewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced...
lordhavoc [Wed, 16 Jan 2002 06:16:58 +0000 (06:16 +0000)]
rewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced them all)
models can be reloaded at any time (Mod_CheckLoaded, etc)
entire renderer can be restarted using r_restart command
batch triangle mesh rendering system (gl_backend.c)
most rendering code does not touch GL anymore
gl_textures now supports procedural textures, and fragment textures (small textures combined into larger images)
lightmaps can now be mipmapped (r_miplightmaps)
broke up r_part.c and r_decals.c into cl_particles.c, r_particles.c, cl_decals.c, and r_decals.c to improve renderer/client separation, but explosions are still renderer
moved CL_NextDemo from cl_main.c to cl_demo.c
cleaned up demo stop/disconnect code
removed render modules stuff from all cl_ files
renderer uses separate light array, and recalculates radius for lights based on color, and calculates subtract value to give it a soft edge at the radius perimeter
small surfaces do not use lightmaps (unfortunately they still look slightly different in dynamic lighting)
items can now bob according to cl_itembob* cvars
moved CL_SignonReply from cl_main.c to cl_parse.c
monster movement interpolation is now done clientside instead of serverside, Nehahra movie should look better now
cvars now have a .integer field containing the integer value of their string (nearly all .value accesses have been changed to .integer for speed reasons)
pmodel is now only available in Nehahra mode (pmodel was a bad hack)
r_farclip cvar removed, farclip now dynamically adjusts to level as you explore it
parsing of wad names out of HL maps is now in renderer code
changed isworldmodel stuff in model loading
cleaned up CL_ParseUpdate a bit (related to clientside monster interpolation)
renamed r_glowinglightning to cl_glowinglightning
moved FindNonSolidLocation to bmodel code
lightning beam models are now only looked up once
entity_t now contains an entity_persistent_t which holds data persistent from frame to frame (interpolation mainly), entity_render_t is wiped every frame
marked a lot more things as static
increased command buffer (script execution buffer) from 8k to 32k
COM_LoadMallocFile has been renamed to COM_LoadFile, and all other variants are gone
rounding on MSG_Read/Write stuff has been changed to fix negative rounding (C rounds toward zero, old code assumed it always rounded down)
improved cachepic (menu images) system to load from wad
statusbar now uses cachepic system
cachepics are cleared when renderer is restarted
fixed fog on transparent objects, should always look correct now
moved R_TimeRefresh_f from gl_rmisc.c to gl_rmain.c
moved R_NewMap from gl_rmisc.c to gl_rmain.c
deleted gl_rmisc.c
removed support for glfog
masked sky rendering is now done by first rendering the sky scene, clearing the depthbuffer, rendering invisible depth polys over it, then rendering the scene, this is for more flexibility
C-code based shader system (not scripted)
deleted hcompress.c
due to more thorough memory corruption detection, a (harmless with old zone system) buffer overflow bug in the client name command was fixed
untested (and quite possibly broken) quaternion math stuff added to mathlib.h
removed support for colormod entity effect (massive mess to support it everywhere)
improved QC PR_RunError reports
moved QC opcode execution loop into pr_execprogram.h, included multiple times
fairly major sbar cleanup
rearranged GL extension detection again
added EXT_texture_env_combine support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1343 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoSmall fixes to tab completion
eviltypeguy [Sat, 29 Dec 2001 21:20:49 +0000 (21:20 +0000)]
Small fixes to tab completion

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1296 d7cf8633-e32d-0410-b094-e92efae38249

22 years ago-safe now does something approximately close to correct. Not a full fix
knghtbrd [Mon, 17 Dec 2001 08:25:27 +0000 (08:25 +0000)]
-safe now does something approximately close to correct.  Not a full fix
for what it does and doesn't do, but this will suffice for now.  Added the
-nomouse flag to GLX.  Debugging is a bitch without it, really.  Also made
a few minor changes for gcc v3 building.  I'm not through with makefile
yet, though.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1260 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoforgot to add this
lordhavoc [Thu, 13 Dec 2001 18:24:05 +0000 (18:24 +0000)]
forgot to add this

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1256 d7cf8633-e32d-0410-b094-e92efae38249

22 years agoUpdated MSVC6 project files
molivier [Wed, 5 Dec 2001 07:06:27 +0000 (07:06 +0000)]
Updated MSVC6 project files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1188 d7cf8633-e32d-0410-b094-e92efae38249

22 years agorewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally...
lordhavoc [Tue, 4 Dec 2001 13:28:29 +0000 (13:28 +0000)]
rewrote RecursiveHullCheck, no longer gets stuck on angle changes, and is generally more correct all the time (no longer uses PointContents checks either)
added content value to RecursiveHullCheck and TraceLine, they can now treat any content change as an impact
TraceLine now can take NULL impact and normal if they are not desired
TraceLine now sets trace_endcontents to the impacted content value
rewrote nehahra/rogue/hipnotic/standard_quake variables to be gamemode (GAME_NORMAL, GAME_HIPNOTIC, GAME_ROGUE, GAME_NEHAHRA, etc)
unfinished code for directional static lighting on models (CL_ParseEntityLump)
game now uses current mode as title everywhere (window title, server title, etc), so it would say 'DarkPlaces-Hipnotic' for example
added Draw_AdditiveString variant of Draw_String, switchs to additive blending and back to alpha afterward
engineversion string is now generated in sys_shared
major rewrite of transpolyrender, now uses glDrawElements (with batching of same texture/mode) and array locking
transpolyparticle added to quickly add particles to transpoly list (30% or so savings)
split wallpolyrender into two pieces, first renders walls, second renders fog over them, decals are rendered between the two, so decals are now fogged
added field of vision distortion when underwater (in MYgluPerspective)
changed gl_lightmapalign to align to the specified byte boundary instead of pixel boundary, and removed NVIDIA mentions (it is not their problem, it is a matter of the texture unpack alignment, but I stuck with 4 byte alignment because it is likely faster for most people)
fixed animating textures
rearranged a little bmodel code (probably no effect)
got rid of r_solidworldnode and r_pvsworldnode cvars (only the fastest choices are available now)
screenshots are now corrected to match lighthalf if it is being done using hardware gamma
removed some old unused cruft from host.c
added RGB gamma correction code to image.c
added VectorRandom to mathlib.h
model skins are no longer mipmapped by default (r_mipskins 0, but this is saved in configs so most people might not notice) because quake skins were not designed for it, and it is a 25% texture memory use increase on model skins
removed old unused Mod_FloodFillSkin code
transparent textures no longer clip other geometry in the hidden surface removal (ouch this was a bug)
maps should be able to use engine fields without the mod knowing about them now (alpha, etc), engine fields are appended to the list of progs fields
particle and decal textures are now all stored in one 'particle font' texture, for a rather hefty speed gain (no texture switchs)
all particles are now alpha blended (additive wasn't necessary on them, but is still available), to kill off state changes
new splash effect from raindrops
added a few bithacking float optimizations here and there (most with alternates if you define SLOWMATH)
new explosion effect (on by default, but a major speed drain, turn off with r_particles_explosions 0)
particle textures are now all in one image (a 'particle font'), massive speed gains with mixed particle types
all particles are alpha blend now (additive still supported, just not used), for more speed gains
particles now use 24bit RGB colors, rather than palette colors (the quake palette has been included however, because many particles still use it)
a lot of old cruft has been removed from r_part
ui items can now be strings rather than pics (actually they can be both, but I have not found a real use for this, perhaps a second draw location needs to be added for the string, so a button could have a label centered on it)
unfinished X11 gamma ramp support (need to allocate colors before setting them, haven't figured this out yet)
changed pitch range in GLX to let you look straight up and down, like in wgl version
mostly redesigned animation interpolation management code (R_LerpUpdate is now CL_LerpUpdate and performed on all network entities, R_LerpAnimation has been tweaked to not crash on bmodels and is now automatically used on all visible entities in the renderer, lerping info has has been split out of entity_render_t into entity_persistent_t so that entity_render_t contains no persistent data)
renderer now only uses entity_render_t structures
renderer now uses only currentrenderentity, and rarely passes individual properties around
cleaned out some old global variables relating to rendering
moved most of glquake.h to render.h
envmap is now actually a vaguely useful command (renders cubic environment map images of the current scene, changed to write tga images rather than raw rgba, and take a basename to use, and name them like skyboxes expect, and place them in the env directory)
many things that should be private to a particular file have been marked static
models now contain a SERAddEntity function (to add themselves to the SER clipping list to verify visibility)
models now contain DrawEarly and DrawLate functions (to render before and after wallpoly/decals/skypoly/etc, respectively)
dlight management functions moved out of cl_main and into cl_light
rewrote RelinkStaticEntities (does the same, just cleaner)
renamed RelinkEntities to RelinkNetworkEntities, split out LerpPlayerVelocity, and made a RelinkEntities function which calls the various functions
rewrote or altered portions of RelinkNetworkEntities relating to origin
muzzleflash lights are now clipped to keep them out of walls
fixed up code relating to vid.conwidth/height and vid.width/height (which is now gone, converted to vid.conwidth/height) and renamed glx/gly/glwidth/glheight to vid.realx/y/width/height (updated each frame using GL_BeginRendering)
rewrote most (all?) code relating to r_refdef, it is now always recalculated as well
dynamic lights will only update a lightmap if they actually alter it (optimization)
models now have 3 bounding boxes, used depending on angles (normal, yaw rotation only, and full rotation)
bmodel bounding boxes are recalculated from vertices
server now uses model bounding box instead of entity bounding box for visibility testing (since entity bounding box is often smaller)
server no longer portal-visibility checks entities because it was FAR too slow (sv_vischeckentities is still available though)
gl_rsurf code now relies on there being a currentrenderentity (even if it is cl.worldent.render), R_SetupWorldEnt added to avoid duplicate code for this
engine no longer has a version number, only build number
makefile now uses buildnum (as was originally intended) to increment build number every time it is compiled, build numbers will be rising rapidly from now on
timedemos will now force up console instantly
rocket trails are more dense
renamed VectorMA (function) to VectorMASlow, renamed VectorMAQuick (#define) to VectorMA, don't know why I had changed it before, had already cleaned up the parameter issues where it is used
converted most of lighting in decal code to integer
added support for all sprite types (untested)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1185 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoreenabled some invisible entity checking (probably no difference)
lordhavoc [Mon, 12 Nov 2001 19:33:33 +0000 (19:33 +0000)]
reenabled some invisible entity checking (probably no difference)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1042 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded comments about use of the functions, and regrouped engine-use-only ones to...
lordhavoc [Mon, 12 Nov 2001 15:52:13 +0000 (15:52 +0000)]
added comments about use of the functions, and regrouped engine-use-only ones to avoid confusion

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1039 d7cf8633-e32d-0410-b094-e92efae38249

23 years agogot rid of two trigraph warnings in gcc 3.0
lordhavoc [Thu, 8 Nov 2001 02:25:53 +0000 (02:25 +0000)]
got rid of two trigraph warnings in gcc 3.0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1010 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged swapintblock loop to hopefully get rid of a gcc 3.0 warning
lordhavoc [Thu, 8 Nov 2001 02:23:00 +0000 (02:23 +0000)]
changed swapintblock loop to hopefully get rid of a gcc 3.0 warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1009 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for gcc 3.0 warnings on MSG_ReadByte in function parameters
lordhavoc [Thu, 8 Nov 2001 02:20:07 +0000 (02:20 +0000)]
fix for gcc 3.0 warnings on MSG_ReadByte in function parameters

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1008 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoAdded MSVC6 project files
molivier [Tue, 6 Nov 2001 07:16:21 +0000 (07:16 +0000)]
Added MSVC6 project files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1006 d7cf8633-e32d-0410-b094-e92efae38249

23 years agotwo-layer sky rendering now uses GL_ARB_texture_env_combine if available to render...
lordhavoc [Fri, 2 Nov 2001 12:45:53 +0000 (12:45 +0000)]
two-layer sky rendering now uses GL_ARB_texture_env_combine if available to render both layers in one pass (nice speedup), and sky rendering code has been simplified a little, also optimized the per vertex direction calculations to use RSqrt code instead of normal 1/sqrt

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1002 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofixed gl_combine so it is enabled by default (if present)
lordhavoc [Fri, 2 Nov 2001 11:06:35 +0000 (11:06 +0000)]
fixed gl_combine so it is enabled by default (if present)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1001 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoremoved support for GL_SGIS_multitexture (ancient)
lordhavoc [Fri, 2 Nov 2001 11:02:38 +0000 (11:02 +0000)]
removed support for GL_SGIS_multitexture (ancient)
redesigned entire extension setup system (now resides only in vid_shared.c)
all extension functions are checked against NULL before the extension is enabled (if one is NULL it complains appropriately)
now also looks for glClientActiveTextureARB (needed for multitexture in vertex arrays)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1000 d7cf8633-e32d-0410-b094-e92efae38249

23 years agominor buffer-size-safe improvement in Sys_Printf, and some other changes to it
lordhavoc [Fri, 2 Nov 2001 10:54:24 +0000 (10:54 +0000)]
minor buffer-size-safe improvement in Sys_Printf, and some other changes to it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@999 d7cf8633-e32d-0410-b094-e92efae38249

23 years agopossible improvement to keep camera out of walls (still ends up in a wall occasionall...
lordhavoc [Fri, 2 Nov 2001 10:52:41 +0000 (10:52 +0000)]
possible improvement to keep camera out of walls (still ends up in a wall occasionally, just less often)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@998 d7cf8633-e32d-0410-b094-e92efae38249

23 years agocorrected a typo in a comment referring to the e4 hall in start as e1m4
lordhavoc [Fri, 2 Nov 2001 10:50:43 +0000 (10:50 +0000)]
corrected a typo in a comment referring to the e4 hall in start as e1m4

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@997 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for misnumbered video mode menu in menu key code (it should never be misnumbered...
lordhavoc [Fri, 2 Nov 2001 10:49:31 +0000 (10:49 +0000)]
fix for misnumbered video mode menu in menu key code  (it should never be misnumbered again... it is now a calculated index)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@996 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoclear keybindings[] array during Key_Init (bounds checker freaks if it isn't cleared...
lordhavoc [Fri, 2 Nov 2001 09:18:47 +0000 (09:18 +0000)]
clear keybindings[] array during Key_Init (bounds checker freaks if it isn't cleared before it is used)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@995 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged -march=686 to -march=i686
lordhavoc [Fri, 2 Nov 2001 06:15:42 +0000 (06:15 +0000)]
changed -march=686 to -march=i686

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@994 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded support for GL_ARB_texture_env_combine, currently only used on wall rendering...
lordhavoc [Tue, 30 Oct 2001 21:55:46 +0000 (21:55 +0000)]
added support for GL_ARB_texture_env_combine, currently only used on wall rendering (for 4x overbright support)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@988 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded support for transparent model skins
lordhavoc [Tue, 30 Oct 2001 21:51:37 +0000 (21:51 +0000)]
added support for transparent model skins

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@987 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded R_TextureHasAlpha function to check if a loaded texture has alpha
lordhavoc [Tue, 30 Oct 2001 21:48:21 +0000 (21:48 +0000)]
added R_TextureHasAlpha function to check if a loaded texture has alpha

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@986 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded include unistd.h and fcntl.h on non-win32
lordhavoc [Mon, 29 Oct 2001 23:43:58 +0000 (23:43 +0000)]
added include unistd.h and fcntl.h on non-win32

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@982 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoremoved unused portalstack array
lordhavoc [Mon, 29 Oct 2001 23:38:36 +0000 (23:38 +0000)]
removed unused portalstack array

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@981 d7cf8633-e32d-0410-b094-e92efae38249

23 years agogot rid of leafnums array in edict structure for pvs checking, pvs is now checked...
lordhavoc [Mon, 29 Oct 2001 07:23:10 +0000 (07:23 +0000)]
got rid of leafnums array in edict structure for pvs checking, pvs is now checked based on predicted locations of entities, and some reorganizational optimizations of WriteEntitiestoClient
changed an SV_Move call to use the proper MOVE_ define (no behavior change, only cleanup)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@978 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged SV_Move calls to use MOVE_NORMAL or MOVE_NOMONSTERS instead of false/true...
lordhavoc [Mon, 29 Oct 2001 07:20:32 +0000 (07:20 +0000)]
changed SV_Move calls to use MOVE_NORMAL or MOVE_NOMONSTERS instead of false/true as the type parameter (no behavior change, only cleanup)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@977 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofixed ED_Print so that it can not cause buffer overflows on large entities
lordhavoc [Mon, 29 Oct 2001 07:17:36 +0000 (07:17 +0000)]
fixed ED_Print so that it can not cause buffer overflows on large entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@976 d7cf8633-e32d-0410-b094-e92efae38249

23 years agomoved Sys_Printf and related code/data to sys_shared.c (new), removed all uses of...
lordhavoc [Mon, 29 Oct 2001 07:16:35 +0000 (07:16 +0000)]
moved Sys_Printf and related code/data to sys_shared.c (new), removed all uses of isDedicated (replaced with cls.state == ca_dedicated), timestamps should work on all targets now, and made some minor whitespace changes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@975 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanging all isDedicated references to cls.state == ca_dedicated
lordhavoc [Mon, 29 Oct 2001 06:51:57 +0000 (06:51 +0000)]
changing all isDedicated references to cls.state == ca_dedicated

also changed where Chase_Init is called in Host_Init (no behavior change, just cleanup)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@974 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoforgot to put a newline at the end of the file
lordhavoc [Mon, 29 Oct 2001 06:45:08 +0000 (06:45 +0000)]
forgot to put a newline at the end of the file

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@973 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofixed input reading code bug in dedicated servers (clients are not kicked off immedia...
lordhavoc [Mon, 29 Oct 2001 06:43:57 +0000 (06:43 +0000)]
fixed input reading code bug in dedicated servers (clients are not kicked off immediately on connecting now...  clearly an important fix)
minor whitespace changes
and changed a SV_Move call to use MOVE_NOMONSTERS instead of 1, no effect on code behavior

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@972 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged SV_Move call to use MOVE_NORMAL instead of false, no effect on code behavior
lordhavoc [Mon, 29 Oct 2001 06:40:05 +0000 (06:40 +0000)]
changed SV_Move call to use MOVE_NORMAL instead of false, no effect on code behavior

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@971 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged SV_Move calls to always use the correct MOVE_ defines in the type parameter...
lordhavoc [Mon, 29 Oct 2001 06:37:10 +0000 (06:37 +0000)]
changed SV_Move calls to always use the correct MOVE_ defines in the type parameter (true or false were often passed, due to a legacy of it being simply 'nomonsters', apparently during quake's development), no code change, just cleanup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@970 d7cf8633-e32d-0410-b094-e92efae38249

23 years agorearranged some variable declarations (no code changes)
lordhavoc [Mon, 29 Oct 2001 06:34:57 +0000 (06:34 +0000)]
rearranged some variable declarations (no code changes)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@969 d7cf8633-e32d-0410-b094-e92efae38249

23 years agominor whitespace tweak on loc1 label, removed old debugging warnings about not checki...
lordhavoc [Mon, 29 Oct 2001 06:32:06 +0000 (06:32 +0000)]
minor whitespace tweak on loc1 label, removed old debugging warnings about not checking certain portals

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@968 d7cf8633-e32d-0410-b094-e92efae38249

23 years agomoved ixtable definition and initialization code to mathlib (and added Mathlib_Init...
lordhavoc [Mon, 29 Oct 2001 06:30:27 +0000 (06:30 +0000)]
moved ixtable definition and initialization code to mathlib (and added Mathlib_Init call to common.c), fixes bugs in dedicated server (previously ixtable was being initialized in the renderer)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@967 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoremoved duplicate comment on a line
lordhavoc [Mon, 29 Oct 2001 06:28:36 +0000 (06:28 +0000)]
removed duplicate comment on a line

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@966 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged way that "entities" (CL_PrintEntities_f) displays entities, and now skips...
lordhavoc [Mon, 29 Oct 2001 06:27:54 +0000 (06:27 +0000)]
changed way that "entities" (CL_PrintEntities_f) displays entities, and now skips inactive entities (forgot to update it's code a long time ago, apparently)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@965 d7cf8633-e32d-0410-b094-e92efae38249

23 years agono longer needs ui/mousepointer.lmp
lordhavoc [Mon, 29 Oct 2001 03:28:21 +0000 (03:28 +0000)]
no longer needs ui/mousepointer.lmp

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@964 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for snprintf check (can't check if functions exist, changed to WIN32 check)
lordhavoc [Mon, 29 Oct 2001 03:11:26 +0000 (03:11 +0000)]
fix for snprintf check (can't check if functions exist, changed to WIN32 check)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@963 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for two Con_Printf calls that are passed a string as the format string
lordhavoc [Sun, 28 Oct 2001 23:06:54 +0000 (23:06 +0000)]
fix for two Con_Printf calls that are passed a string as the format string

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@962 d7cf8633-e32d-0410-b094-e92efae38249

23 years agodon't change gamma ramps when running dedicated
lordhavoc [Sun, 28 Oct 2001 22:10:51 +0000 (22:10 +0000)]
don't change gamma ramps when running dedicated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@961 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded hidden surface removal option (r_ser cvar)
lordhavoc [Sun, 28 Oct 2001 20:49:16 +0000 (20:49 +0000)]
added hidden surface removal option (r_ser cvar)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@960 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded #define snprintf _snprintf for win32
lordhavoc [Sun, 28 Oct 2001 20:48:43 +0000 (20:48 +0000)]
added #define snprintf _snprintf for win32

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@959 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadd externs for window_x and window_y
lordhavoc [Sun, 28 Oct 2001 20:48:05 +0000 (20:48 +0000)]
add externs for window_x and window_y

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@958 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoforgot to update this file apparently
lordhavoc [Sun, 28 Oct 2001 20:47:32 +0000 (20:47 +0000)]
forgot to update this file apparently

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@957 d7cf8633-e32d-0410-b094-e92efae38249

23 years agomade the Sorted Edge Rasterizer (hidden surface removal) optional as the r_ser cvar...
lordhavoc [Sun, 28 Oct 2001 09:18:01 +0000 (09:18 +0000)]
made the Sorted Edge Rasterizer (hidden surface removal) optional as the r_ser cvar, can be a speed difference
added back the old portal-passage worldnode code (sometimes faster)
recalculate node bounding boxes when loading (based on leaf bounding boxes which are calculated from portal generation)
added untested code for qftol (much faster double to integer conversion on x86, not used yet)
added a couple Hunk_Check calls while loading things (just to be a little more paranoid)
minor whitespace cleanup, some commented out code removed

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@956 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded CVAR_SAVE and CVAR_NOTIFY flags to cvar_t structure (at the beginning), updated...
lordhavoc [Fri, 26 Oct 2001 20:17:33 +0000 (20:17 +0000)]
added CVAR_SAVE and CVAR_NOTIFY flags to cvar_t structure (at the beginning), updated all cvar definitions to match, a lot more cvars are saved now.\nadded server-side portal checking of entity visibility, only entities which really are visible are sent to clients now (some slowdown on server, but reduces network traffic and makes wallhacks useless)\nadded mostly untested mouse and keyboard user interface code (input support not completely finished yet, and no code using the UI yet)\n

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@953 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoForgot to update build number for 105 release
lordhavoc [Thu, 18 Oct 2001 14:48:51 +0000 (14:48 +0000)]
Forgot to update build number for 105 release

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@939 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoprobable fix for severe model rendering bugs in 3DFX voodoo4/5 win32 drivers, and...
lordhavoc [Thu, 18 Oct 2001 00:59:02 +0000 (00:59 +0000)]
probable fix for severe model rendering bugs in 3DFX voodoo4/5 win32 drivers, and G400 win32 drivers (they don't seem to handle a sizeof == 0 case for the array pointer stepping)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@937 d7cf8633-e32d-0410-b094-e92efae38249

23 years agolittle whitespace change
lordhavoc [Wed, 17 Oct 2001 19:17:21 +0000 (19:17 +0000)]
little whitespace change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@936 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded force_centerview to glx (by moving it to vid_shared)
lordhavoc [Wed, 17 Oct 2001 19:15:55 +0000 (19:15 +0000)]
added force_centerview to glx (by moving it to vid_shared)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@935 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for cvar tab completion crash
lordhavoc [Wed, 17 Oct 2001 19:14:07 +0000 (19:14 +0000)]
fix for cvar tab completion crash

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@934 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for oriented sprites not appearing
lordhavoc [Wed, 17 Oct 2001 18:43:57 +0000 (18:43 +0000)]
fix for oriented sprites not appearing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@933 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoforgot to commit updated makefile
lordhavoc [Tue, 16 Oct 2001 12:49:07 +0000 (12:49 +0000)]
forgot to commit updated makefile

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@929 d7cf8633-e32d-0410-b094-e92efae38249

23 years agomallocs, callocs, and frees changed to qmalloc/qfree
lordhavoc [Mon, 15 Oct 2001 17:12:15 +0000 (17:12 +0000)]
mallocs, callocs, and frees changed to qmalloc/qfree

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@924 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix for command/cvar/alias completion bug (example: imp gave iimpulse)
lordhavoc [Mon, 15 Oct 2001 16:25:33 +0000 (16:25 +0000)]
fix for command/cvar/alias completion bug (example: imp gave iimpulse)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@922 d7cf8633-e32d-0410-b094-e92efae38249

23 years agochanged defaults for chase_active camera position, and the settings are now saved...
lordhavoc [Mon, 15 Oct 2001 13:41:55 +0000 (13:41 +0000)]
changed defaults for chase_active camera position, and the settings are now saved to the config

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@921 d7cf8633-e32d-0410-b094-e92efae38249

23 years agomove dynamic lights up 30 units for the client player when firstperson (so the gun...
lordhavoc [Mon, 15 Oct 2001 13:41:25 +0000 (13:41 +0000)]
move dynamic lights up 30 units for the client player when firstperson (so the gun gets lit by glow effects)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@920 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix the off-by-one fix (oops)
lordhavoc [Mon, 15 Oct 2001 13:36:37 +0000 (13:36 +0000)]
fix the off-by-one fix (oops)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@919 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix an off-by-one issue with model->numleafs in PVS related code (dynamic lighting...
lordhavoc [Mon, 15 Oct 2001 13:23:19 +0000 (13:23 +0000)]
fix an off-by-one issue with model->numleafs in PVS related code (dynamic lighting and world rendering), numleafs excludes leaf 0, how strange...

no missing (black) leaf bug anymore...

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@918 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded function definitions for tab completion back (oops)
lordhavoc [Mon, 15 Oct 2001 12:13:20 +0000 (12:13 +0000)]
added function definitions for tab completion back (oops)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@917 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoMajor update, been neglecting CVS for some time...
lordhavoc [Mon, 15 Oct 2001 11:46:20 +0000 (11:46 +0000)]
Major update, been neglecting CVS for some time...

clipping engine (r_clip.c) to determine exactly what is visible (this has altered MANY parts of the rendering engine)

fixed visibility bug with multiple players on a listen server

vid_glx.c has been improved/cleaned up greatly and now pays attention to vid_mouse and vid_dga and will not grab the mouse until after the first frame

snd_alsa_0_5.c has been fixed (Qprintf vs fprintf bug)

nehahra works again (was missing svc_skybox support)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@915 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoignore ChangeLog
taniwha [Fri, 20 Jul 2001 20:25:17 +0000 (20:25 +0000)]
ignore ChangeLog

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@270 d7cf8633-e32d-0410-b094-e92efae38249

23 years agovery nice command line tab completeion from Shawn Walker
taniwha [Fri, 20 Jul 2001 20:24:36 +0000 (20:24 +0000)]
very nice command line tab completeion from Shawn Walker
<eviltypeguy@qeradiant.com> with my later modifications so that commands
are completed as much as possible.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@269 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoanother attempt to fix skybox loading
lordhavoc [Fri, 15 Jun 2001 20:55:45 +0000 (20:55 +0000)]
another attempt to fix skybox loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@234 d7cf8633-e32d-0410-b094-e92efae38249

23 years agofix loading savegames
taniwha [Sun, 10 Jun 2001 21:21:41 +0000 (21:21 +0000)]
fix loading savegames

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@233 d7cf8633-e32d-0410-b094-e92efae38249

23 years agoadded -lz to the non-ALSA compile line, switched to non-ALSA compile by default ...
lordhavoc [Sun, 10 Jun 2001 20:03:42 +0000 (20:03 +0000)]
added -lz to the non-ALSA compile line, switched to non-ALSA compile by default (to match the sound driver default being non-ALSA)
added a lot of descriptive comments

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@232 d7cf8633-e32d-0410-b094-e92efae38249