divverent/darkplaces.git
14 years agomoved brushq3.submodel to brush, removed brushq3.data_thismodel (instead looking...
havoc [Sun, 6 Mar 2005 19:16:51 +0000 (19:16 +0000)]
moved brushq3.submodel to brush, removed brushq3.data_thismodel (instead looking it up using submodel), other minor cleanups

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

14 years agomoved brushq1 nodes/leafs/leaffaces/planes/portals fields to brush, along with brushq...
havoc [Sun, 6 Mar 2005 19:00:09 +0000 (19:00 +0000)]
moved brushq1 nodes/leafs/leaffaces/planes/portals fields to brush, along with brushq3 leafbrushes to make things even more consistent

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

14 years agorenamed q1bsp marksurfaces to leaffaces for consistency with q2bsp and q3bsp naming
havoc [Sun, 6 Mar 2005 17:09:47 +0000 (17:09 +0000)]
renamed q1bsp marksurfaces to leaffaces for consistency with q2bsp and q3bsp naming
replaced q3mnode_t and q3mleaf_t with mnode_t and mleaf_t (which now contain supersets of the fields between the two bsp versions)

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

14 years agochanged leafbrushes from pointers to ints to be consistent with leaffaces
havoc [Sun, 6 Mar 2005 16:22:26 +0000 (16:22 +0000)]
changed leafbrushes from pointers to ints to be consistent with leaffaces
moved q3m* structs and stuff to model_brush.h

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

14 years agomoved pvs handling from R_Q3BSP_DrawFaces to R_WorldVisibility (now handles q1bsp...
havoc [Sun, 6 Mar 2005 16:12:14 +0000 (16:12 +0000)]
moved pvs handling from R_Q3BSP_DrawFaces to R_WorldVisibility (now handles q1bsp and q3bsp), made R_Q3BSP_DrawFaces more similar to R_DrawSurfaces

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

14 years agochanged leafface references to ints (making leaffacenum obslete) for more consistency...
havoc [Sun, 6 Mar 2005 15:31:34 +0000 (15:31 +0000)]
changed leafface references to ints (making leaffacenum obslete) for more consistency between q1bsp and q3bsp leaf structures

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

14 years agogot rid of node->contents, leaf->contents kept (only needed temporarily during loadin...
havoc [Sun, 6 Mar 2005 14:58:54 +0000 (14:58 +0000)]
got rid of node->contents, leaf->contents kept (only needed temporarily during loading to generate collision hull 0), now checks node->plane to know if it is a node (leaf has a NULL plane pointer)
fixed the very messed up contents translation in Q3BSP
various other cleanups

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

14 years agochanged waterlevel checking to use SUPERCONTENTS instead of CONTENTS, this might...
havoc [Sun, 6 Mar 2005 14:56:44 +0000 (14:56 +0000)]
changed waterlevel checking to use SUPERCONTENTS instead of CONTENTS, this might be a slight speedup (hasn't completely gotten rid of use of CONTENTS though, because that still must be reported to the QC)

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

14 years agoremoved the commented out RecursiveHullCheckPoint function
havoc [Sun, 6 Mar 2005 14:50:43 +0000 (14:50 +0000)]
removed the commented out RecursiveHullCheckPoint function

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

14 years agochanged all uses of CL_PointQ1Contents to CL_PointSuperContents in particle system...
havoc [Sun, 6 Mar 2005 14:49:48 +0000 (14:49 +0000)]
changed all uses of CL_PointQ1Contents to CL_PointSuperContents in particle system (except with WORKINGLQUAKE defined)

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

14 years agoadded SUPERCONTENTS_NODROP
havoc [Sun, 6 Mar 2005 14:48:51 +0000 (14:48 +0000)]
added SUPERCONTENTS_NODROP

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

14 years agolazy variable declarations strike again
havoc [Sun, 6 Mar 2005 11:42:40 +0000 (11:42 +0000)]
lazy variable declarations strike again

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

14 years agovariable declaration after function call... oops
havoc [Sun, 6 Mar 2005 11:35:38 +0000 (11:35 +0000)]
variable declaration after function call...  oops

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

14 years agotweaked the order of checks in an if, and removed the previously mentioned pvs textur...
havoc [Sat, 5 Mar 2005 16:13:40 +0000 (16:13 +0000)]
tweaked the order of checks in an if, and removed the previously mentioned pvs texture chain stuff from the header (forgot to commit this before)

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

14 years agoeliminated brushq1.pvs* variables, pvstexture surface chain stuff, and cleaned up...
havoc [Sat, 5 Mar 2005 15:18:13 +0000 (15:18 +0000)]
eliminated brushq1.pvs* variables, pvstexture surface chain stuff, and cleaned up related code

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

14 years agomore refactoring of q1bsp rendering
havoc [Sat, 5 Mar 2005 10:40:45 +0000 (10:40 +0000)]
more refactoring of q1bsp rendering

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

14 years agofixed Mod_AllocSurfMesh (doesn't crash now)
havoc [Thu, 3 Mar 2005 14:21:31 +0000 (14:21 +0000)]
fixed Mod_AllocSurfMesh (doesn't crash now)

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

14 years agocleaned up q1bsp surface rendering a bit more
havoc [Thu, 3 Mar 2005 14:20:07 +0000 (14:20 +0000)]
cleaned up q1bsp surface rendering a bit more

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

14 years ago- Toggled "strip executable" in the Dev-C++ project file and updated the version...
molivier [Thu, 3 Mar 2005 14:11:58 +0000 (14:11 +0000)]
- Toggled "strip executable" in the Dev-C++ project file and updated the version info
- Added a Dev-C++ project file for the dedicated server
- In Makefile.inc, some libs were listed twice in the command line while compiling a dedicated server on Win32
- A few very minor changes in snd_ogg.c

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

14 years agocleaned surface drawing in q1bsp and q3bsp a bit
havoc [Thu, 3 Mar 2005 13:45:12 +0000 (13:45 +0000)]
cleaned surface drawing in q1bsp and q3bsp a bit

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

14 years agosome optimizations to q3bsp surface rendering
havoc [Thu, 3 Mar 2005 12:50:25 +0000 (12:50 +0000)]
some optimizations to q3bsp surface rendering

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

14 years agoWillis improved the Transfusion menu to support singleplayer
havoc [Thu, 3 Mar 2005 09:23:48 +0000 (09:23 +0000)]
Willis improved the Transfusion menu to support singleplayer

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

14 years agoq1bsp and q3bsp loaders now use model->meshlist for storing all the geometry of the...
havoc [Thu, 3 Mar 2005 06:02:21 +0000 (06:02 +0000)]
q1bsp and q3bsp loaders now use model->meshlist for storing all the geometry of the surfaces (q1bsp loader does not yet enforce the 65536 vertex limit however)

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

14 years agomodified q3msurface_t to use a surfmesh (although not cleanly)
havoc [Wed, 2 Mar 2005 11:24:29 +0000 (11:24 +0000)]
modified q3msurface_t to use a surfmesh (although not cleanly)

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

14 years agoimproved/modified q1bsp surfmesh stuff for more general use (to make q3bsp able to...
havoc [Wed, 2 Mar 2005 11:03:46 +0000 (11:03 +0000)]
improved/modified q1bsp surfmesh stuff for more general use (to make q3bsp able to use it)

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

14 years agoimproved r_texturestats output (now gives a total for each pool) and merged some...
havoc [Wed, 2 Mar 2005 05:44:33 +0000 (05:44 +0000)]
improved r_texturestats output (now gives a total for each pool) and merged some similar code in it

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

14 years agodefault sv_public to 1
havoc [Wed, 2 Mar 2005 05:36:23 +0000 (05:36 +0000)]
default sv_public to 1

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

14 years agochanged color prefix character to ^ (@ is not acceptable)
havoc [Fri, 11 Feb 2005 22:22:35 +0000 (22:22 +0000)]
changed color prefix character to ^ (@ is not acceptable)

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

14 years agoremoved key-below-escape forced toggleconsole, so that german keyboards can type ^
havoc [Fri, 11 Feb 2005 22:20:42 +0000 (22:20 +0000)]
removed key-below-escape forced toggleconsole, so that german keyboards can type ^

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

14 years agoslight safety improvement in frameblend generation, may fix a crash Willis reported...
havoc [Fri, 11 Feb 2005 05:38:37 +0000 (05:38 +0000)]
slight safety improvement in frameblend generation, may fix a crash Willis reported in Nexuiz

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

14 years agonow does a togglemenu if there were no demos started and not connecting to a server...
havoc [Mon, 7 Feb 2005 17:46:55 +0000 (17:46 +0000)]
now does a togglemenu if there were no demos started and not connecting to a server and not starting a server

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

14 years ago342
havoc [Sun, 6 Feb 2005 16:52:13 +0000 (16:52 +0000)]
342

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

14 years agorain drops now make rain splashes
havoc [Sun, 6 Feb 2005 16:47:06 +0000 (16:47 +0000)]
rain drops now make rain splashes

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

14 years agoadded Venim's dpmaster server (now up to 3 masters)
havoc [Sun, 6 Feb 2005 10:21:21 +0000 (10:21 +0000)]
added Venim's dpmaster server (now up to 3 masters)

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

14 years ago-Only print queried servers once to the console.
black [Sat, 5 Feb 2005 20:39:45 +0000 (20:39 +0000)]
-Only print queried servers once to the console.

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

14 years agoimplemented DP_CON_STARTMAP extension which defines two configurable aliases to choos...
havoc [Fri, 4 Feb 2005 13:48:17 +0000 (13:48 +0000)]
implemented DP_CON_STARTMAP extension which defines two configurable aliases to choose a start map

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

14 years agonow lerps punchangle and punchvector
havoc [Fri, 4 Feb 2005 11:50:50 +0000 (11:50 +0000)]
now lerps punchangle and punchvector

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

14 years agoenable key repeat
havoc [Fri, 4 Feb 2005 11:04:06 +0000 (11:04 +0000)]
enable key repeat

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

14 years agorealtime dlights are now overridden by gl_flashblend (as was intended)
havoc [Fri, 4 Feb 2005 10:30:36 +0000 (10:30 +0000)]
realtime dlights are now overridden by gl_flashblend (as was intended)

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

14 years agofixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit)
havoc [Fri, 4 Feb 2005 10:19:50 +0000 (10:19 +0000)]
fixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit)

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

14 years agocl_particles_size works again
havoc [Fri, 4 Feb 2005 09:54:52 +0000 (09:54 +0000)]
cl_particles_size works again

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

14 years agochanged 3 clamp calls in the GLSL fragment shader to max calls instead, for a small...
havoc [Fri, 4 Feb 2005 09:23:01 +0000 (09:23 +0000)]
changed 3 clamp calls in the GLSL fragment shader to max calls instead, for a small speed gain (at least on ATI)

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

14 years agovid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way...
havoc [Fri, 4 Feb 2005 09:15:10 +0000 (09:15 +0000)]
vid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way to turn off vsync, and suggests vid_restart

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

14 years agovid_usingvsync now set to false after a vid_restart (so that vsync will be set again...
havoc [Fri, 4 Feb 2005 07:29:02 +0000 (07:29 +0000)]
vid_usingvsync now set to false after a vid_restart (so that vsync will be set again if it's on)

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

14 years agono longer hits triangles of your own player model when tracing the prydoncursor from...
havoc [Fri, 4 Feb 2005 07:19:58 +0000 (07:19 +0000)]
no longer hits triangles of your own player model when tracing the prydoncursor from first person view

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

14 years agoremoved unused variable font_size
havoc [Fri, 4 Feb 2005 07:18:53 +0000 (07:18 +0000)]
removed unused variable font_size

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

14 years agoReplaced snprintf and vnsprintf calls by dpsnprintf and dpvsnprintf calls, to ensure...
molivier [Thu, 3 Feb 2005 12:17:10 +0000 (12:17 +0000)]
Replaced snprintf and vnsprintf calls by dpsnprintf and dpvsnprintf calls, to ensure coherence among the various platforms (the Win32 versions of those functions aren't C99 compatible). dp(v)snprintf functions return -1 when the buffer is too small to contain all the data, and insure null termination.

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

14 years agoCommented out the printing of the weapon number in the weapon selection.
black [Wed, 2 Feb 2005 21:14:52 +0000 (21:14 +0000)]
Commented out the printing of the weapon number in the weapon selection.

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

14 years agoFCVS: ----------------------------------------------------------------------
black [Wed, 2 Feb 2005 20:54:45 +0000 (20:54 +0000)]
FCVS: ----------------------------------------------------------------------
-Changed the scoreboard for nexuiz (only).
-Fixed a bug in the old quake menu.

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

14 years agoFixed a bug and also added support color support to the chat messages.
black [Wed, 2 Feb 2005 20:25:07 +0000 (20:25 +0000)]
Fixed a bug and also added support color support to the chat messages.

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

14 years agoAdded support for color tags to the console. Use the @ char followed by a
black [Wed, 2 Feb 2005 19:30:16 +0000 (19:30 +0000)]
Added support for color tags to the console. Use the @ char followed by a
number to switch the color. Currently I have only the color indices 0-7 are
valid.

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

14 years agoFixed Win32 wav sound driver (thanks to fuh for the bug report). Cleaned up some...
molivier [Wed, 2 Feb 2005 09:12:02 +0000 (09:12 +0000)]
Fixed Win32 wav sound driver (thanks to fuh for the bug report). Cleaned up some code in the process

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

15 years agoreduced offsetmapping from 4 sample to 3 sample to make it work within Radeon 9500...
havoc [Sat, 29 Jan 2005 02:21:52 +0000 (02:21 +0000)]
reduced offsetmapping from 4 sample to 3 sample to make it work within Radeon 9500-9800/X300 limits

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

15 years agodisabled snapping of render patch vertices (collision patch vertices are still snapped)
havoc [Thu, 27 Jan 2005 22:15:44 +0000 (22:15 +0000)]
disabled snapping of render patch vertices (collision patch vertices are still snapped)

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

15 years agoadded support for skill values outside the range 0-3
havoc [Wed, 26 Jan 2005 22:15:34 +0000 (22:15 +0000)]
added support for skill values outside the range 0-3
GAME_TRANSFUSION now uses skill range 0-4

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

15 years agofixed fov calculations so viewzoom isn't so weird anymore, this also fixes the 'doubl...
havoc [Wed, 26 Jan 2005 22:11:07 +0000 (22:11 +0000)]
fixed fov calculations so viewzoom isn't so weird anymore, this also fixes the 'double zoom' bug (viewzoom was being applied twice)

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

15 years agofix permutation failed warning to print the right thing
havoc [Wed, 26 Jan 2005 09:12:59 +0000 (09:12 +0000)]
fix permutation failed warning to print the right thing

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

15 years agofix a stupid reverse bug (was using ! where I shouldn't)
havoc [Wed, 26 Jan 2005 03:39:45 +0000 (03:39 +0000)]
fix a stupid reverse bug (was using ! where I shouldn't)

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

15 years agoprint glsl/light as the shader that failed
havoc [Wed, 26 Jan 2005 03:38:50 +0000 (03:38 +0000)]
print glsl/light as the shader that failed

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

15 years agodisable shader permutations that fell back to software fragment shader (software...
havoc [Wed, 26 Jan 2005 01:40:53 +0000 (01:40 +0000)]
disable shader permutations that fell back to software fragment shader (software vertex shader is ok)

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

15 years agofixed the embedded fragment and vertex shaders (somehow mispasted fragment shader...
havoc [Tue, 25 Jan 2005 23:59:23 +0000 (23:59 +0000)]
fixed the embedded fragment and vertex shaders (somehow mispasted fragment shader into both, and the fragment shader was the old NVIDIA-only one)

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

15 years agoremoved obsolete FS_Close call in LoadGame
havoc [Tue, 25 Jan 2005 20:11:06 +0000 (20:11 +0000)]
removed obsolete FS_Close call in LoadGame
fixed two int -> unsigned char conversion warnings

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

15 years agonow supports Mac and Windows newlines everywhere
havoc [Tue, 25 Jan 2005 20:05:18 +0000 (20:05 +0000)]
now supports Mac and Windows newlines everywhere
all text files are now saved in UNIX format
removed FS_Gets and FS_Getline (they were only used by the loadgame code along with sscanf...  bad)
added FS_UnGetc (needed for Windows newline support in FRIK_FILE fgets)

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

15 years agofix stupid typo in GLSL shader
havoc [Tue, 25 Jan 2005 01:32:40 +0000 (01:32 +0000)]
fix stupid typo in GLSL shader

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

15 years agomade GLSL lighting work on ATI (NVIDIA was letting me use sloppier code)
havoc [Mon, 24 Jan 2005 23:36:00 +0000 (23:36 +0000)]
made GLSL lighting work on ATI (NVIDIA was letting me use sloppier code)
added more CHECKGLERROR calls during GLSL lighting rendering

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

15 years agochanged offsetmapping bias to -0.04 so that it never samples off the model skins
havoc [Mon, 24 Jan 2005 22:05:51 +0000 (22:05 +0000)]
changed offsetmapping bias to -0.04 so that it never samples off the model skins

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

15 years agoadded hacky workaround for nvidia GLSL bug (state screwups after switching back to...
havoc [Mon, 24 Jan 2005 21:51:16 +0000 (21:51 +0000)]
added hacky workaround for nvidia GLSL bug (state screwups after switching back to program 0 which go away if I draw something (even an empty Begin...End) after the switch)

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

15 years agoadded surfaceparm pointlight to known surfaceparm list
havoc [Mon, 24 Jan 2005 21:49:41 +0000 (21:49 +0000)]
added surfaceparm pointlight to known surfaceparm list

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

15 years agochanged the flat bump texture (for no bumpmap textures) to have a 128 height instead...
havoc [Mon, 24 Jan 2005 20:27:42 +0000 (20:27 +0000)]
changed the flat bump texture (for no bumpmap textures) to have a 128 height instead of 255 so it's not affected by offset mapping

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

15 years agoswitch back to program 0 when done setting up GLSL shaders
havoc [Mon, 24 Jan 2005 18:32:05 +0000 (18:32 +0000)]
switch back to program 0 when done setting up GLSL shaders

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

15 years agoadded documentation on glsl cvars to r_shadow_help
havoc [Sun, 23 Jan 2005 22:19:22 +0000 (22:19 +0000)]
added documentation on glsl cvars to r_shadow_help

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

15 years agoGLSL shader per pixel lighting implemented (with optimized permutations)
havoc [Sun, 23 Jan 2005 22:16:33 +0000 (22:16 +0000)]
GLSL shader per pixel lighting implemented (with optimized permutations)
offset mapping implemented in GLSL lighting shader (looks really cool if a little slow, enabled by default)
cleaned up some internal handling ambientscale/diffusescale/specularscale/gloss mode design issues in R_Shadow_RenderLighting

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

15 years agorearchitected renderer backend to have support for independent number of texture...
havoc [Sun, 23 Jan 2005 22:12:22 +0000 (22:12 +0000)]
rearchitected renderer backend to have support for independent number of texture image units, texture coord array units, and texture env blend units
added GL_Backend_CompileProgram and GL_Backend_FreeProgram for GLSL support

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

15 years agofixed backwards normalmaps generated from bumpmaps (... weird!), and now stores bumpm...
havoc [Sun, 23 Jan 2005 22:10:02 +0000 (22:10 +0000)]
fixed backwards normalmaps generated from bumpmaps (... weird!), and now stores bumpmap into alpha channel of normalmap for use by shaders

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

15 years agofixed blendfunc issues with single pass lighting (such as ambient pass) which were...
havoc [Sun, 23 Jan 2005 06:39:07 +0000 (06:39 +0000)]
fixed blendfunc issues with single pass lighting (such as ambient pass) which were using GL_DST_ALPHA when they shouldn't have been (fixes the 'bright shadows' issue which occurred from multiple lights in some cases)
added a usestencil variable in rtlight rendering just to make it a little more clear in the code

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

15 years agofixed scaling of cl_netlocalping cvar (it was multiplying by 1000 instead of dividing)
havoc [Sun, 23 Jan 2005 06:36:14 +0000 (06:36 +0000)]
fixed scaling of cl_netlocalping cvar (it was multiplying by 1000 instead of dividing)

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

15 years agodisable vid_vsync by default
havoc [Fri, 21 Jan 2005 07:30:09 +0000 (07:30 +0000)]
disable vid_vsync by default

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

15 years agoif hardware gamma setting fails, try to restore system gamma anyway (Windows stupidity)
havoc [Fri, 21 Jan 2005 03:34:22 +0000 (03:34 +0000)]
if hardware gamma setting fails, try to restore system gamma anyway (Windows stupidity)

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

15 years agochanged GAME_ init data to have a separate user config directory for each game type...
havoc [Fri, 21 Jan 2005 03:22:11 +0000 (03:22 +0000)]
changed GAME_ init data to have a separate user config directory for each game type (~/.darkplaces for most), and two game dirs rather than an implied id1 (so now nexuiz doesn't look for id1 for example)

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

15 years ago- Got rid of all the FILE* stuff in the FS code, relying on low-level
molivier [Wed, 19 Jan 2005 09:09:20 +0000 (09:09 +0000)]
- Got rid of all the FILE* stuff in the FS code, relying on low-level
functions exclusively. It now manages its own per-file 2KB read buffers.
Writes are no longer buffered.
- Removed function "FS_Flush" and cvar "log_sync", since they're no
longer relevant
- Package's file descriptors are now duplicated when opening a new file
inside a package, to make package substitution at run time impossible on
non-Win32 systems. Added a couple of "lseek" when necessary (before
"read" calls in "FS_Read").
- Removed unused functions "FS_Eof", "Log_Print" and "S_ClearBuffer"
- Several other minor changes and fixes in the FS code
- Changed log open mode to "a" from "at" since 't' seems a Win32-only
extension

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

15 years agoDSP files must be treated as binary files
molivier [Tue, 18 Jan 2005 10:02:18 +0000 (10:02 +0000)]
DSP files must be treated as binary files

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

15 years agodisabled HostCache_Test code because it's wrecking the server browser in each release...
havoc [Tue, 18 Jan 2005 01:38:44 +0000 (01:38 +0000)]
disabled HostCache_Test code because it's wrecking the server browser in each release build

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

15 years agonow adapts sv.num_edicts according to how many edicts are found by SV_Physics, so...
havoc [Mon, 17 Jan 2005 23:30:20 +0000 (23:30 +0000)]
now adapts sv.num_edicts according to how many edicts are found by SV_Physics, so if a lot of temporary stuff spawns and removes itself it will knock the num_edicts back down

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

15 years agoimplemented the 'don't move projectiles on first frame' hack a different way
havoc [Mon, 17 Jan 2005 23:17:31 +0000 (23:17 +0000)]
implemented the 'don't move projectiles on first frame' hack a different way

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

15 years agoreverted back to per-entity prethink-think-move-postthink process to fix mods
havoc [Mon, 17 Jan 2005 22:52:16 +0000 (22:52 +0000)]
reverted back to per-entity prethink-think-move-postthink process to fix mods

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

15 years agonow supports nextthink < 0 again... sigh
havoc [Mon, 17 Jan 2005 22:11:16 +0000 (22:11 +0000)]
now supports nextthink < 0 again... sigh

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

15 years agohush fraction out of bounds warnings in CL_SelectTraceline
havoc [Mon, 17 Jan 2005 05:35:55 +0000 (05:35 +0000)]
hush fraction out of bounds warnings in CL_SelectTraceline

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

15 years agoadded saving of particles/nexbeam.tga (commented out like the particles/particlefont...
havoc [Sat, 15 Jan 2005 02:23:51 +0000 (02:23 +0000)]
added saving of particles/nexbeam.tga (commented out like the particles/particlefont.tga saver is)

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

15 years agofixed a bug in texture generator that made all the particles too large in the particl...
havoc [Sat, 15 Jan 2005 02:11:53 +0000 (02:11 +0000)]
fixed a bug in texture generator that made all the particles too large in the particle font by one pixel (now they're smaller than their frame, like they were supposed to be), this fixes all the sharp edges on particles
changed nexbeam to be quite a bit brighter in the center than the sides (as I really wanted it all along)
nexbeam no longer scrolls its texture (looked odd)

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

15 years agonexbeam is now white and 8 units wide (rather than two beams, one 12 units and one...
havoc [Sat, 15 Jan 2005 02:09:46 +0000 (02:09 +0000)]
nexbeam is now white and 8 units wide (rather than two beams, one 12 units and one 5 units and each a different color)

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

15 years agonormalize after the CrossProduct
havoc [Sat, 15 Jan 2005 02:08:45 +0000 (02:08 +0000)]
normalize after the CrossProduct

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

15 years agofix the odd distortion on beam polygons that tends to make their end kind of vanish...
havoc [Sat, 15 Jan 2005 01:53:55 +0000 (01:53 +0000)]
fix the odd distortion on beam polygons that tends to make their end kind of vanish to a point

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

15 years agofixed a crash with lights that have no clusters (a light outside the level) by alloca...
havoc [Fri, 14 Jan 2005 23:39:47 +0000 (23:39 +0000)]
fixed a crash with lights that have no clusters (a light outside the level) by allocating the clusterpvs even if there are no clusters

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

15 years agonow skips entire rtlight rendering process if light is too dark or does not emit...
havoc [Thu, 13 Jan 2005 18:26:26 +0000 (18:26 +0000)]
now skips entire rtlight rendering process if light is too dark or does not emit any surface light - another 30% speed gain

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

15 years agomigrated push thinks back to SV_Physics_Pusher to fix a qc crash when touching a...
havoc [Thu, 13 Jan 2005 08:14:54 +0000 (08:14 +0000)]
migrated push thinks back to SV_Physics_Pusher to fix a qc crash when touching a door

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

15 years agoadded Ludwig Nussel to Thanks to section
havoc [Thu, 13 Jan 2005 07:06:19 +0000 (07:06 +0000)]
added Ludwig Nussel to Thanks to section

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

15 years agocloned and rewrote Collision_TraceLineTriangleFloat to optimize it slightly
havoc [Thu, 13 Jan 2005 07:02:00 +0000 (07:02 +0000)]
cloned and rewrote Collision_TraceLineTriangleFloat to optimize it slightly

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

15 years agoforgot a parameter to S_FreeSfx
havoc [Thu, 13 Jan 2005 06:45:34 +0000 (06:45 +0000)]
forgot a parameter to S_FreeSfx

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

15 years agono longer calls S_StopAllSounds when sound system restarts, and cleaned up a sound...
havoc [Thu, 13 Jan 2005 06:40:07 +0000 (06:40 +0000)]
no longer calls S_StopAllSounds when sound system restarts, and cleaned up a sound freeing loop (just nicer code)

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

15 years agoshuffled around some SCR_BeginLoadingPlaque calls so now SV_SpawnServer causes a...
havoc [Thu, 13 Jan 2005 06:36:57 +0000 (06:36 +0000)]
shuffled around some SCR_BeginLoadingPlaque calls so now SV_SpawnServer causes a loading plaque and ParseServerinfo only draws a loading plaque if there's no local server (which already did one), this cleans up the loading plaque management a great deal

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