19 years agoreduced view warping when underwater
lordhavoc [Fri, 15 Feb 2002 23:16:06 +0000 (23:16 +0000)]
reduced view warping when underwater

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

19 years agodisable sliders for volume and vgmvolume (CD volume) when they do not exist
lordhavoc [Fri, 15 Feb 2002 23:15:20 +0000 (23:15 +0000)]
disable sliders for volume and vgmvolume (CD volume) when they do not exist

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

19 years agomoved a lot of 2D/screen stuff out of gl_screen.c into cl_screen.c
lordhavoc [Fri, 15 Feb 2002 22:28:08 +0000 (22:28 +0000)]
moved a lot of 2D/screen stuff out of gl_screen.c into cl_screen.c
moved remainder of gl_screen.c into gl_backend.c
removed gl_screen.c
inlined GL_BrightenScreen in gl_draw.c
moved a lot of GL stuff out of gl_rmain.c into gl_backend.c
converted polyblend to R_Mesh based
replaced lighthalf/gl_lightmode with v_overbrightbits
renamed contrast to brightness, and brightness to contrast (to match monitor controls)
merged hardware and software brightness/contrast/gamma into v_contrast, v_brightness, v_gamma, etc, switchable using v_hwgamma (automatically forced off if hardware gamma support is unavailable)
added ghostable menu items (unavailable gamma, for example)
rearranged options menu
2D resolution slider added (from 320x240 to full resolution)
fixed misuse of strncmp for bindings menu (thanks Elric)
adjustable crosshair size
renamed GL_BeginRendering to VID_GetWindowSize
renamed GL_EndRendering to VID_Finish
made screenshot and envmap share one function for grabbing images
moved underwater warping into cl_screen code
starting work on new entity protocol (not hooked up yet)

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

19 years agoparticle tweaks
lordhavoc [Fri, 15 Feb 2002 21:40:24 +0000 (21:40 +0000)]
particle tweaks

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

19 years agodouble precision RecursiveHullCheck
lordhavoc [Fri, 15 Feb 2002 21:33:31 +0000 (21:33 +0000)]
double precision RecursiveHullCheck

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

19 years agomade smoke/blood texture a little brighter
lordhavoc [Fri, 15 Feb 2002 21:29:45 +0000 (21:29 +0000)]
made smoke/blood texture a little brighter

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

19 years agovalidate more when loading zymotic models, also reverse triangles so they don't rende...
lordhavoc [Fri, 15 Feb 2002 21:28:09 +0000 (21:28 +0000)]
validate more when loading zymotic models, also reverse triangles so they don't render inside out (FIXME: fix this in the converter)

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

19 years agomade corona texture brighter, and rendering of it darker, fixes 'white' coronas aroun...
lordhavoc [Fri, 15 Feb 2002 21:27:00 +0000 (21:27 +0000)]
made corona texture brighter, and rendering of it darker, fixes 'white' coronas around lava balls (they needed more overbright)

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

19 years agodouble precision RecursiveHullCheck
lordhavoc [Fri, 15 Feb 2002 21:25:43 +0000 (21:25 +0000)]
double precision RecursiveHullCheck

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

19 years agocleaned up zym cruft from debugging
lordhavoc [Fri, 15 Feb 2002 21:21:31 +0000 (21:21 +0000)]
cleaned up zym cruft from debugging

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

19 years agoadded Cvar_SetQuick and Cvar_SetValueQuick (both take a cvar_t * instead of a name)
lordhavoc [Fri, 15 Feb 2002 21:20:12 +0000 (21:20 +0000)]
added Cvar_SetQuick and Cvar_SetValueQuick (both take a cvar_t * instead of a name)

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

19 years agofixed rotating+moving pushers (teleport ball in end.bsp), cleaned up code a lot
lordhavoc [Fri, 15 Feb 2002 21:19:04 +0000 (21:19 +0000)]
fixed rotating+moving pushers (teleport ball in end.bsp), cleaned up code a lot
double precision RecursiveHullCheck

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

19 years agofixed zymotic model transforms (lots of cruft leftover that I will clean up soon)
lordhavoc [Thu, 14 Feb 2002 00:43:48 +0000 (00:43 +0000)]
fixed zymotic model transforms (lots of cruft leftover that I will clean up soon)

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

19 years agoRemove pointless and wasteful variable assignment
eviltypeguy [Thu, 7 Feb 2002 01:18:22 +0000 (01:18 +0000)]
Remove pointless and wasteful variable assignment

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

19 years agocheck if model is NULL when doing trace checking
lordhavoc [Tue, 5 Feb 2002 15:22:07 +0000 (15:22 +0000)]
check if model is NULL when doing trace checking

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

19 years agocleaned up entity culling in server code, implemented new option - sv_cullentities_tr...
lordhavoc [Tue, 5 Feb 2002 03:08:32 +0000 (03:08 +0000)]
cleaned up entity culling in server code, implemented new option - sv_cullentities_trace - traces a line from eye to random locations in the model box, if a trace succeeds it marks the entity visibility timeout for 1 second in the future, and if it fails and the timeout has expired by then, it culls the entity.  this method works great for most cases, and is far more aggressive (and faster) than pvs culling

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

19 years agoUpdated DSP file. Fixed a bunch of warnings with MSVC6
molivier [Mon, 4 Feb 2002 10:36:23 +0000 (10:36 +0000)]
Updated DSP file. Fixed a bunch of warnings with MSVC6

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

19 years agofixed numerous bugs in SV_Trace_Toss
lordhavoc [Sun, 3 Feb 2002 16:51:30 +0000 (16:51 +0000)]
fixed numerous bugs in SV_Trace_Toss

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

19 years agoremoved steporigin etc, they aren't used anymore
lordhavoc [Sun, 3 Feb 2002 16:50:42 +0000 (16:50 +0000)]
removed steporigin etc, they aren't used anymore

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

19 years agoremoved decals
lordhavoc [Sun, 3 Feb 2002 11:34:53 +0000 (11:34 +0000)]
removed decals
fixed viewmodel disappearing with masked sky (skybox or skyquality 2)
removed flare particle from rockets (might add it back later)

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

19 years agorearranged r_speeds report a bit, and split up reporting of meshtris into normal...
lordhavoc [Sun, 3 Feb 2002 10:40:46 +0000 (10:40 +0000)]
rearranged r_speeds report a bit, and split up reporting of meshtris into normal and transparent categories, also displays number of meshs of each type
made byte color array format work (byte format is very slightly faster than float)
disabled float color array format to save some memory
added gl_mesh_sorttransbymesh cvar (default: on) to get a performance gain in mingled mesh conditions (by never mingling triangles of different meshs), this mode can batch render transparent triangles too (unlike the other two modes)
increased default maxtriangles to 8192

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

19 years agochanged back to profiling, with optimizations, and back to alsa 0.5 sound
lordhavoc [Sun, 3 Feb 2002 10:34:02 +0000 (10:34 +0000)]
changed back to profiling, with optimizations, and back to alsa 0.5 sound

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

19 years agofixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately
lordhavoc [Sun, 3 Feb 2002 10:32:34 +0000 (10:32 +0000)]
fixed monster interpolation in normal quake, which makes dpcrush not lerped unfortunately

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

19 years agopassing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0
lordhavoc [Sun, 3 Feb 2002 10:30:25 +0000 (10:30 +0000)]
passing 0 time to CL_AllocDlight now gives a die time of 0, not cl.time + 0

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

19 years agomuzzleflashs do not keep stacking up on consecutive frames now
lordhavoc [Sun, 3 Feb 2002 10:29:16 +0000 (10:29 +0000)]
muzzleflashs do not keep stacking up on consecutive frames now

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

19 years agomoved viewmodel rendering to avoid polluting the main model rendering time
lordhavoc [Sun, 3 Feb 2002 10:27:54 +0000 (10:27 +0000)]
moved viewmodel rendering to avoid polluting the main model rendering time

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

19 years agoremoved some old commented out code
lordhavoc [Sun, 3 Feb 2002 10:26:48 +0000 (10:26 +0000)]
removed some old commented out code

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

19 years agolights should not decay now when console is down (pausing game), and cleaned up sound...
lordhavoc [Sun, 3 Feb 2002 10:25:45 +0000 (10:25 +0000)]
lights should not decay now when console is down (pausing game), and cleaned up sound update call to not use renderer variables

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

19 years agochanged explosion color calculations, they look much better now
lordhavoc [Sun, 3 Feb 2002 10:24:02 +0000 (10:24 +0000)]
changed explosion color calculations, they look much better now

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

19 years agomade coronas small and intense, much more noticable now
lordhavoc [Sun, 3 Feb 2002 10:23:09 +0000 (10:23 +0000)]
made coronas small and intense, much more noticable now

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

19 years agocoronas now scale with the light radius
lordhavoc [Sat, 2 Feb 2002 18:58:01 +0000 (18:58 +0000)]
coronas now scale with the light radius

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

19 years agocgame.c:60: warning: implicit declaration of function `memset', fixed
knghtbrd [Fri, 1 Feb 2002 15:28:42 +0000 (15:28 +0000)]
cgame.c:60: warning: implicit declaration of function `memset', fixed

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

19 years agocgamevm.h:11:6: no newline at end of file, fixed.
knghtbrd [Fri, 1 Feb 2002 15:22:46 +0000 (15:22 +0000)]
cgamevm.h:11:6: no newline at end of file, fixed.

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

19 years agoadded gib shower effect, they leave no trails but make blood marks where they hit...
lordhavoc [Fri, 1 Feb 2002 11:40:21 +0000 (11:40 +0000)]
added gib shower effect, they leave no trails but make blood marks where they hit...  (note: this is still highly experimental and cgame might be removed at some point, and no mods use this anyway)

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

19 years agoadded CGVM_Stain function
lordhavoc [Fri, 1 Feb 2002 11:37:41 +0000 (11:37 +0000)]
added CGVM_Stain function

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

19 years agoremoved unnecessary if in setting up divide table for dlighting
lordhavoc [Fri, 1 Feb 2002 09:22:28 +0000 (09:22 +0000)]
removed unnecessary if in setting up divide table for dlighting

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

19 years agoRemoved warnings in MSVC6. Updated the DSP file.
molivier [Fri, 1 Feb 2002 07:20:26 +0000 (07:20 +0000)]
Removed warnings in MSVC6. Updated the DSP file.

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

19 years agogot rid of buildnumber.c and buildnum program, now uses builddate.c (touched each...
lordhavoc [Thu, 31 Jan 2002 16:41:59 +0000 (16:41 +0000)]
got rid of buildnumber.c and buildnum program, now uses builddate.c (touched each time it is built to keep the date changing)
clientside TraceLine can now hit brush model entities (TraceLine_ScanForBModels updates list of entities to check)
added *highly experimental* clientside gamecode (currently embedded in the engine, just trying things out) which currently doesn't do anything really
made CL_RelinkEntities only called when the client is connected and there is a world model
added fractalnoisequick (variant of fractalnoise that does not allocate/free a temporary buffer, and to achieve this does not use the range remapping)
added stainmap effects (stained lightmaps), which will probably soon replace decals
spark showers now pay attention to the velocity in the TE_SPARKSHOWER packet (if the mod uses this), bullet impacts still have no velocity
added TE_PLASMABURN (combination of TE_SMALLFLASH and a stain on the walls)
added svc_cgame (DO NOT USE THIS, EXPERIMENTAL, but so is the cgame code itself)
Cmd_TokenizeString now uses a fixed size buffer instead of many little allocations (speedup by not having Z_Malloc/Z_Free happening constantly)
cvar code tries very hard to avoid reallocating string now
va() function now uses a cycling set of 8 string buffers to try to avoid conflicts
console logging no longer uses va()
reduced default mesh buffer size from 21760 triangles to 4096 (transparent triangles are costly enough it's not a good idea to exceed this anyway)
texture management code now uses 3 memory pools to give better memory reports according to type of data
R_UpdateTexture has better memory behavior on non-procedural textures now (replaces inputtexels if it has not been uploaded yet, otherwise just uploads it directly)
added -developer commandline option (which is rather hacky) to force developer on for entire startup process, to get logging before the configs are read
decals stick to brush model entities now
stains stick to embedded bmodels (ones that are part of the map, not ones instanced from outside like ammo boxes)
skingroups above 0 are not automatically precached now (if you have a lot of mods installed in your id1 directory, they tend to not use all the skins, which is wasteful)
starting a new game (from the singleplayer menu) forces deathmatch and coop to 0 now
lightmaps are precached again (can't remember why I ever disabled this)
changed VectorSet's parameter order to be more consistent with other vector ops
removed a duplicate registration of the vid_mouse cvar (in vid_glx.c)

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

19 years agoqsockets are now dynamically allocated/freed, this drops memory use by about 2mb
lordhavoc [Thu, 31 Jan 2002 12:16:59 +0000 (12:16 +0000)]
qsockets are now dynamically allocated/freed, this drops memory use by about 2mb

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

19 years agoFix for memset glibc bug crash
eviltypeguy [Wed, 30 Jan 2002 06:35:22 +0000 (06:35 +0000)]
Fix for memset glibc bug crash

(why would it read from PROT_WRITE only memory? silly thing...)

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

19 years agochanged free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)
lordhavoc [Tue, 29 Jan 2002 07:10:28 +0000 (07:10 +0000)]
changed free(dat) to Mem_Free(dat) (EWWW I HAD A FREE STILL??)

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

19 years agoreplaced a bunch of one-line 3-statement while loops, with nicer looking one-line...
lordhavoc [Mon, 28 Jan 2002 09:09:03 +0000 (09:09 +0000)]
replaced a bunch of one-line 3-statement while loops, with nicer looking one-line for loops

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

19 years agofix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)
lordhavoc [Sun, 27 Jan 2002 08:33:58 +0000 (08:33 +0000)]
fix problem with dynamic lights on lightmaps wider than 18 pixels (oops!)

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

19 years agohalved corona size
lordhavoc [Sun, 27 Jan 2002 07:58:52 +0000 (07:58 +0000)]
halved corona size

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

19 years agoadded coronas (glow) to dynamic lights
lordhavoc [Sun, 27 Jan 2002 00:16:17 +0000 (00:16 +0000)]
added coronas (glow) to dynamic lights

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

19 years agoadded gl_mesh_dupetransverts cvar (found it is a slowdown though)
lordhavoc [Sun, 27 Jan 2002 00:14:21 +0000 (00:14 +0000)]
added gl_mesh_dupetransverts cvar (found it is a slowdown though)
moved meshfarclip checking from R_Mesh_Draw to R_Mesh_Render

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

19 years agoadditive water
lordhavoc [Sat, 26 Jan 2002 23:36:03 +0000 (23:36 +0000)]
additive water
enabled transparency on world polygons (not a good idea in existing quake maps, but maybe someday...)

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

19 years agomade most particles additive (speedup in fog)
lordhavoc [Sat, 26 Jan 2002 23:33:42 +0000 (23:33 +0000)]
made most particles additive (speedup in fog)

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

19 years agomade explosions additive, softened edges (hacky but looks good enough), cleaned up...
lordhavoc [Sat, 26 Jan 2002 23:30:50 +0000 (23:30 +0000)]
made explosions additive, softened edges (hacky but looks good enough), cleaned up some of the physics

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

19 years agochanged most #define macros to use (,,,) format instead of {;;;} so they will gobble...
lordhavoc [Sat, 26 Jan 2002 23:27:07 +0000 (23:27 +0000)]
changed most #define macros to use (,,,) format instead of {;;;} so they will gobble a ; like a normal function

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

19 years agogot rid of cl_glowinglightning cvar, lightning no longer glows
lordhavoc [Sat, 26 Jan 2002 23:25:09 +0000 (23:25 +0000)]
got rid of cl_glowinglightning cvar, lightning no longer glows

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

19 years agomade "entities" command show scale and alpha
lordhavoc [Sat, 26 Jan 2002 23:24:13 +0000 (23:24 +0000)]
made "entities" command show scale and alpha
made rocket glow a little brighter (25%)

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

19 years agorenamed R_GetFragmentLocation to R_FragmentLocation
lordhavoc [Sat, 26 Jan 2002 23:18:22 +0000 (23:18 +0000)]
renamed R_GetFragmentLocation to R_FragmentLocation

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

19 years agodue to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as...
lordhavoc [Sat, 26 Jan 2002 02:20:13 +0000 (02:20 +0000)]
due to Mercury's insistance you can disable bobbing by using cl_bobcycle == 0 as well as cl_bob == 0 (cl_bobcycle == 0 causes NaN bob)

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

19 years agoUpdated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error...
molivier [Fri, 25 Jan 2002 12:33:35 +0000 (12:33 +0000)]
Updated MSVC6 project files. Vanilla MSVC6 doesn't know the GL_TABLE_TOO_LARGE error... Strange.

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

19 years agoadded back intermission overlays (oops)
lordhavoc [Fri, 25 Jan 2002 08:31:35 +0000 (08:31 +0000)]
added back intermission overlays (oops)

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

19 years agoadded cl_screen.c/h (eventually most 2D stuff should be moved here)
lordhavoc [Fri, 25 Jan 2002 00:45:55 +0000 (00:45 +0000)]
added cl_screen.c/h (eventually most 2D stuff should be moved here)
removed view.h (merged into client.h)
cleaned up the animation interpolation code (CL_LerpUpdate) a bit more
increased interpolation 'teleport' tolerance from 400 units to 1000 units per frame
changed calls to Mod_ForName to not use checkdisk (except for viewthing model changes and map changes)
added viewent to r_refdef
moved v_blend to r_refdef
all 2D art now goes through Draw_CachePic
cachepic replaced qpic (in all non-wad code)
moved all engine generated pics (mousepointer, crosshairs) to gl_draw.c (they are called by Draw_CachePic)
cachepic now uses a hash lookup instead of just a string search
added drawqueue to r_refdef
all 2D art now goes through DrawQ_ functions (drawqueue)
DrawQ_String now stretchs the character texture a tiny bit, and always uses default filtering
cleaned out some old cruft in console drawing code
fixed some silly bugs in showfps
made showfps display use only 4 characters, and made the text larger, and moved it down a little
moved showfps from gl_screen.c to sbar.c
moved Draw_ConsoleBackground to console.c
removed drawinput parameter from Con_DrawConsole (it was always true)
c_alias_polys now counts all meshs rendered (a model may be rendered multiple times), not just the total number of triangles in the model, much more accurate
r_speeds2 renamed to r_speeds
disabled all Mem_CheckSentinelsGlobal calls during gameplay (they were wasting time)
r_speeds now displays time spent throughout SCR_UpdateScreen code, not just R_RenderView
frame is now rendered in 'finish begin render' order instead of 'begin render finish' order in SCR_Updatescreen - not sure if this is a speedup or not
BLOCK_SIZE in gl_textures.c renamed to block_size and now adjustable (r_max_scrapsize cvar), r_restart for changes to take effect, 1024 (default) or less recommended
menu, r_speeds, and showfps now have a darkened (50% black) background beneath them to improve readability
menu is now centered on the screen
menu text is now white
translatepic code now updates texture rather than constantly cache mismatching
cleaned up cshift code
cleaned up viewent setup code
W_GetLumpinfo failing to find a lump is no longer fatal
added R_Mesh_DrawDecal for the highly specialized task of adding decals/particles/sprites to the mesh system (trying to get a minor speed gain)
decals, particles, and sprites now use R_Mesh_DrawDecal

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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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