xonotic/darkplaces.git
15 years agoAdded a "log_file" cvar to control the log file name (default: "" which means no...
molivier [Thu, 8 Apr 2004 13:11:51 +0000 (13:11 +0000)]
Added a "log_file" cvar to control the log file name (default: "" which means no log, "-condebug" sets it to "qconsole.log"). Added a "log_sync" cvar to control whether or not the log output is flushed at each write (default: 0, "-condebug" sets it to 1).
Note that we now need to wait until the cvars are initialized to start logging the console, so the logging system puts every message printed before that in a logging queue that is proceed when the log file is actually opened.
Renamed "Con_LogPrint" and "Con_LogPrintf" to "Log_Print" and "Log_Printf" respectively. Added "FS_VPrintf"

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

15 years ago"soundlist" now tells you if a sound is streamed and whether it is mono or stereo
molivier [Thu, 8 Apr 2004 12:59:34 +0000 (12:59 +0000)]
"soundlist" now tells you if a sound is streamed and whether it is mono or stereo

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

15 years agofixed entities disappearing when partially submerged in water (it was a very stupid...
havoc [Wed, 7 Apr 2004 04:36:11 +0000 (04:36 +0000)]
fixed entities disappearing when partially submerged in water (it was a very stupid bounding box bug)

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

15 years agoRemoved an unused cvar (logfile)
molivier [Tue, 6 Apr 2004 13:08:07 +0000 (13:08 +0000)]
Removed an unused cvar (logfile)

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

15 years agoFixed cl_nodelta 1
molivier [Tue, 6 Apr 2004 05:58:07 +0000 (05:58 +0000)]
Fixed cl_nodelta 1

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

15 years agoFake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead...
molivier [Mon, 5 Apr 2004 07:00:19 +0000 (07:00 +0000)]
Fake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead of CD track XX. If it fails, it tries "trackXX.ogg", and then the real CD track if any. CD console commands should work as expected.
"cd_shared.c" is now part of the common files so it allows people to compile DP without real CD support, but with fake CD tracks support. "cd_null.c" is now a null driver, at the same level as "cd_linux.c" or "cd_win.c".
Fixed the broken return value of S_StartSound and a potential memory leak in S_StopAllSounds in the process.

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

15 years agoFixed the "-path" option. A couple of FS variables were never initialized explicitly
molivier [Mon, 5 Apr 2004 06:51:41 +0000 (06:51 +0000)]
Fixed the "-path" option. A couple of FS variables were never initialized explicitly

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

15 years agoinlined Host_EndGame in CL_ParseServerMessage's svc_disconnect case and greatly reduc...
havoc [Mon, 5 Apr 2004 06:49:31 +0000 (06:49 +0000)]
inlined Host_EndGame in CL_ParseServerMessage's svc_disconnect case and greatly reduced its code (removing the server shutdown, etc), this fixed an infinite recursion shutdown crash introduced by the Host_ShutdownServer changes

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

15 years agoFixed Win32 dedicated server input
molivier [Mon, 5 Apr 2004 06:45:47 +0000 (06:45 +0000)]
Fixed Win32 dedicated server input

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

15 years agofixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client...
havoc [Mon, 5 Apr 2004 06:20:23 +0000 (06:20 +0000)]
fixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client was timing out on the NetConn_SendToAll because the server was ignoring the client's reply packets, by setting sv.active = false too early)
added Host_ShutdownServer call near every CL_Disconnect call, for consistency
CL_Disconnect and Host_ShutdownServer now report their calls as dprints (previously they were entirely silent)

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

15 years agomake shrak work (lots of SOLID_BSP/MOVETYPE_PUSH entities with no models)
havoc [Sat, 3 Apr 2004 23:20:30 +0000 (23:20 +0000)]
make shrak work (lots of SOLID_BSP/MOVETYPE_PUSH entities with no models)

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

15 years agofixed missing newline after map name in join message
havoc [Sat, 3 Apr 2004 01:34:56 +0000 (01:34 +0000)]
fixed missing newline after map name in join message

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

15 years agoAdded a CHANNELFLAG_LOCALSOUND flag for channels playing a client-side sound, such...
molivier [Fri, 2 Apr 2004 13:23:20 +0000 (13:23 +0000)]
Added a CHANNELFLAG_LOCALSOUND flag for channels playing a client-side sound, such as menu sounds for instance. Added the ability to pause/resume channels. When the game is paused, all non-local sounds are now automatically paused (previously, no new sound was started during the pause, but those already created were played normally).

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

15 years agoOops... It seems this malloc/free was actually intended (part of a piece of code...
molivier [Fri, 2 Apr 2004 07:27:05 +0000 (07:27 +0000)]
Oops... It seems this malloc/free was actually intended (part of a piece of code protected by a WORKINGLQUAKE define)

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

15 years agostrncpy -> {strlcpy,memcpy}. Replaced the "forceloop" boolean in "channel_t" by a...
molivier [Fri, 2 Apr 2004 07:12:10 +0000 (07:12 +0000)]
strncpy -> {strlcpy,memcpy}. Replaced the "forceloop" boolean in "channel_t" by a flags field.

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

15 years agoReplaced a direct call to "malloc" and "free", and removed several misuses of "Z_Mall...
molivier [Fri, 2 Apr 2004 07:08:54 +0000 (07:08 +0000)]
Replaced a direct call to "malloc" and "free", and removed several misuses of "Z_Malloc" where using the temp mempool was sufficient.

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

15 years agofixed animated textures in realtime lighting mode (now calls R_UpdateTextureInfo)
havoc [Thu, 1 Apr 2004 22:42:40 +0000 (22:42 +0000)]
fixed animated textures in realtime lighting mode (now calls R_UpdateTextureInfo)

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

15 years agofix the namelen parameter in the getsockname call
havoc [Thu, 1 Apr 2004 22:10:17 +0000 (22:10 +0000)]
fix the namelen parameter in the getsockname call

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

15 years agonow uses getsockname to find out what address/port a newly opened socket is at, so...
havoc [Thu, 1 Apr 2004 22:07:23 +0000 (22:07 +0000)]
now uses getsockname to find out what address/port a newly opened socket is at, so it won't say 0.0.0.0:0 anymore

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

15 years agoFixed a warning (unused variable)
molivier [Thu, 1 Apr 2004 09:46:46 +0000 (09:46 +0000)]
Fixed a warning (unused variable)

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

15 years agodefault to r_shadow_realtime_dlight 1 mode
havoc [Thu, 1 Apr 2004 02:06:20 +0000 (02:06 +0000)]
default to r_shadow_realtime_dlight 1 mode

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

15 years agodisabled triangle normal validation because the validator was broken and just spewing...
havoc [Wed, 31 Mar 2004 16:14:54 +0000 (16:14 +0000)]
disabled triangle normal validation because the validator was broken and just spewing warnings

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

15 years agoOpenBSD doesn't define _PATH_SOUND
molivier [Wed, 31 Mar 2004 13:41:22 +0000 (13:41 +0000)]
OpenBSD doesn't define _PATH_SOUND

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

15 years agodisabled the invalid model check in Mod_CheckLoaded as it was preventing the game...
havoc [Wed, 31 Mar 2004 01:33:56 +0000 (01:33 +0000)]
disabled the invalid model check in Mod_CheckLoaded as it was preventing the game from working with missing models

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

15 years agofix NODRAW flag check (don't draw NODRAW shaders)
havoc [Wed, 31 Mar 2004 01:33:16 +0000 (01:33 +0000)]
fix NODRAW flag check (don't draw NODRAW shaders)

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

15 years agonow supports missing models
havoc [Wed, 31 Mar 2004 01:08:50 +0000 (01:08 +0000)]
now supports missing models
trying to load a non-existent map no longer kills the server

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

15 years ago*** empty log message ***
havoc [Sun, 28 Mar 2004 16:19:36 +0000 (16:19 +0000)]
*** empty log message ***

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

15 years agoThe portable_samplepair_t structure has no need to be public
molivier [Fri, 26 Mar 2004 14:22:26 +0000 (14:22 +0000)]
The portable_samplepair_t structure has no need to be public

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

15 years agoRemoved a couple of useless inclusions
molivier [Fri, 26 Mar 2004 14:20:39 +0000 (14:20 +0000)]
Removed a couple of useless inclusions

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

15 years agoinclude <> above ""
havoc [Thu, 25 Mar 2004 14:36:17 +0000 (14:36 +0000)]
include <> above ""

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

15 years agoMoved the WAV loading code out of "snd_mem.c". Removed a couple of useless definition...
molivier [Thu, 25 Mar 2004 09:47:01 +0000 (09:47 +0000)]
Moved the WAV loading code out of "snd_mem.c". Removed a couple of useless definitions in "sound.h".

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

15 years agoFactorized some code in the shared library loaders
molivier [Wed, 24 Mar 2004 13:40:43 +0000 (13:40 +0000)]
Factorized some code in the shared library loaders

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

15 years agoFixed the sounds not being advanced in time while not being listened. This is a long...
molivier [Wed, 24 Mar 2004 08:06:56 +0000 (08:06 +0000)]
Fixed the sounds not being advanced in time while not being listened. This is a long standing bug I think, it looks like the original Quake source code has it too, though I haven't tested. Each channel now remembers the last time it was painted, and so it can resume the play at the appropriate position if it missed some painting rounds.
Also, added a check to avoid looped sounds being overridden when picking a channel.

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

15 years agortlights shouldn't do anything with sky and water (this fixes shadowing problems...
havoc [Tue, 23 Mar 2004 19:32:38 +0000 (19:32 +0000)]
rtlights shouldn't do anything with sky and water (this fixes shadowing problems mainly)

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

15 years agoFixed the WAV file loading code (loopstart was always 0 if the sound was looped)
molivier [Tue, 23 Mar 2004 15:59:10 +0000 (15:59 +0000)]
Fixed the WAV file loading code (loopstart was always 0 if the sound was looped)

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

15 years agoOgg vorbis streaming support; the code decides whether it will cache or stream the...
molivier [Tue, 23 Mar 2004 08:28:28 +0000 (08:28 +0000)]
Ogg vorbis streaming support; the code decides whether it will cache or stream the sound depending on the file and uncompressed sound sizes. It should be stable enough for a regular use now; you lose a few FPS once every second or so of course, it's not free, but you can expect the Vorbis stream to use between 5 and 12 times less memory than before, depending on the sound quality and the number of SFX sources using it. This patch also contains a couple of fixes (a pretty annoying typo in the OSS and BSD driver - 22051Hz instead of 22050Hz, and a potential memory leak in WAV loader)

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

15 years agoAdded a mempool parameter to FS_LoadFile
molivier [Tue, 23 Mar 2004 07:59:09 +0000 (07:59 +0000)]
Added a mempool parameter to FS_LoadFile

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

15 years agofixed a memory leak if an image file loaded but failed to decode
havoc [Tue, 23 Mar 2004 07:44:34 +0000 (07:44 +0000)]
fixed a memory leak if an image file loaded but failed to decode

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

15 years agocommented out mini scoreboard in nexuiz hud
havoc [Mon, 22 Mar 2004 18:43:32 +0000 (18:43 +0000)]
commented out mini scoreboard in nexuiz hud

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

15 years agofixed two warnings on glGetDoublev calls
havoc [Mon, 22 Mar 2004 16:15:19 +0000 (16:15 +0000)]
fixed two warnings on glGetDoublev calls

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

15 years agoq3bsp pvs works again (was checking loadmodel when it should have been checking model)
havoc [Mon, 22 Mar 2004 10:08:37 +0000 (10:08 +0000)]
q3bsp pvs works again (was checking loadmodel when it should have been checking model)

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

15 years agoworked around an ATI driver bug with glColor during GL_EXT_compiled_vertex_array...
havoc [Mon, 22 Mar 2004 10:04:48 +0000 (10:04 +0000)]
worked around an ATI driver bug with glColor during GL_EXT_compiled_vertex_array locks being ignored - R_Shadow_RenderLighting dot3 paths now lock around each pass instead of the whole set of final passes - ATI PLEASE FIX THIS, the GL_EXT_compiled_vertex_array spec says all settings can be changed during a lock!
reorganized R_Shadow_RenderLighting to reduce code duplication a bit
enabled scissor without stencil support (the bug was in the lack of a valid projectmatrix)
added 3 tmu vertex lighting path (uses XYZ attenuation via textures, and vertex shading) which is mainly for use on 3+ tmu cards in 16bit color mode
renamed R_Shadow_VertexLighting functions to R_Shadow_VertexShading and made their names more clear
fixed a bug in the R_Shadow_VertexShading math (now normalizes the vertex->light vector as well as normal vector)
made some functions static
added an #ifndef USETEXMATRIX around the cpu matrix transform functions as they're not used anymore due to USETEXMATRIX code

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

15 years agofix scissoring bugs with r_shadow_realtime_dlight - the projectmatrix was not being...
havoc [Mon, 22 Mar 2004 09:22:38 +0000 (09:22 +0000)]
fix scissoring bugs with r_shadow_realtime_dlight - the projectmatrix was not being set for glFrustum and glOrtho cases, now it is (by reading back from GL)

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

15 years agouncommented a lot of GL functions
havoc [Mon, 22 Mar 2004 09:19:28 +0000 (09:19 +0000)]
uncommented a lot of GL functions

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

15 years agoremoved -fexpensive-optimizations (which is turned on by -O2), added -funroll-loops
havoc [Fri, 19 Mar 2004 10:16:43 +0000 (10:16 +0000)]
removed -fexpensive-optimizations (which is turned on by -O2), added -funroll-loops

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

15 years agofixed 'black models' bugs in RecursiveLightPoint code
havoc [Thu, 18 Mar 2004 10:49:02 +0000 (10:49 +0000)]
fixed 'black models' bugs in RecursiveLightPoint code

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

15 years agofixed r_fullbright
havoc [Thu, 18 Mar 2004 05:15:08 +0000 (05:15 +0000)]
fixed r_fullbright

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

15 years agoexpanded cl_max_beams from 24 to 256
havoc [Wed, 17 Mar 2004 06:48:04 +0000 (06:48 +0000)]
expanded cl_max_beams from 24 to 256

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

15 years agobsp model shadows are now enlarged by r_shadow_projectdistance (to cure problems...
havoc [Wed, 17 Mar 2004 03:43:50 +0000 (03:43 +0000)]
bsp model shadows are now enlarged by r_shadow_projectdistance (to cure problems with nearby surfaces casting shadow volumes too small)

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

15 years ago*** empty log message ***
havoc [Tue, 16 Mar 2004 09:49:59 +0000 (09:49 +0000)]
*** empty log message ***

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

15 years agooptimized away most texmatrix comparisons (now checks unit->texmatrixenabled which...
havoc [Tue, 16 Mar 2004 09:49:16 +0000 (09:49 +0000)]
optimized away most texmatrix comparisons (now checks unit->texmatrixenabled which just dodges the comparisons)

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

15 years agofix newlines
coderjoe [Tue, 16 Mar 2004 06:40:42 +0000 (06:40 +0000)]
fix newlines

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

15 years agodoubled brightness of most dlights, and halved brightness of lightmap dlight renderin...
havoc [Tue, 16 Mar 2004 00:30:49 +0000 (00:30 +0000)]
doubled brightness of most dlights, and halved brightness of lightmap dlight rendering, this should make dlights and rtlights look mostly the same

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

15 years agoadded a note to optimize the MAX_DLIGHTS loop somehow
havoc [Tue, 16 Mar 2004 00:27:51 +0000 (00:27 +0000)]
added a note to optimize the MAX_DLIGHTS loop somehow

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

15 years agooptimized R_Mesh_State to only update most settings if there is an active texture...
havoc [Mon, 15 Mar 2004 23:49:18 +0000 (23:49 +0000)]
optimized R_Mesh_State to only update most settings if there is an active texture on the unit

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

15 years agoRenamed ogg.[ch] to snd_ogg.[ch]
molivier [Mon, 15 Mar 2004 08:52:06 +0000 (08:52 +0000)]
Renamed ogg.[ch] to snd_ogg.[ch]

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

15 years agoenabled USETEXMATRIX because it wasn't broken after all (testing mistake made me...
havoc [Mon, 15 Mar 2004 08:24:46 +0000 (08:24 +0000)]
enabled USETEXMATRIX because it wasn't broken after all (testing mistake made me think it was)

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

15 years agoRemoved the little endian -> native endian conversion from the sound resampling funct...
molivier [Mon, 15 Mar 2004 08:00:02 +0000 (08:00 +0000)]
Removed the little endian -> native endian conversion from the sound resampling function. The sound file reading functions now take care of that.

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

15 years agoMade use of the common functions BuffLittle{Short,Long} in "snd_mem.c" instead of...
molivier [Mon, 15 Mar 2004 07:56:04 +0000 (07:56 +0000)]
Made use of the common functions BuffLittle{Short,Long} in "snd_mem.c" instead of reinventing the wheel. Made a few variables static in the process.

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

15 years ago3d texcoords now must use rmeshstate_t.pointer_texcoord3f instead of pointer_texcoord...
havoc [Mon, 15 Mar 2004 07:00:14 +0000 (07:00 +0000)]
3d texcoords now must use rmeshstate_t.pointer_texcoord3f instead of pointer_texcoord, this allows texture matrices and such
implemented (broken and disabled) texture matrix optimizations in R_Shadow_RenderLighting, I'm still trying to figure out what is wrong

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

15 years agoreorganized texture setup code in R_Shadow_RenderLighting to be cleaner, fixed CVA...
havoc [Mon, 15 Mar 2004 05:27:02 +0000 (05:27 +0000)]
reorganized texture setup code in R_Shadow_RenderLighting to be cleaner, fixed CVA locking in voodoo1/2 paths (it was locked while the color array update was happening, no good)

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

15 years agofixed 2d attenuation texturing (it was all black due to an attenuationz matrix bug)
havoc [Sun, 14 Mar 2004 09:58:53 +0000 (09:58 +0000)]
fixed 2d attenuation texturing (it was all black due to an attenuationz matrix bug)

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

15 years agoadded a tip about using the color control menu to calibrate for proper quake viewing
havoc [Sun, 14 Mar 2004 09:50:52 +0000 (09:50 +0000)]
added a tip about using the color control menu to calibrate for proper quake viewing

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

15 years agogot rid of Cshader system as it really wasn't helping anything, now all surfaces...
havoc [Sun, 14 Mar 2004 05:31:45 +0000 (05:31 +0000)]
got rid of Cshader system as it really wasn't helping anything, now all surfaces types use one R_DrawSurfaceChain function, which calls the appropriate passes

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

15 years agodon't draw lighting on sky and water
havoc [Sat, 13 Mar 2004 23:50:03 +0000 (23:50 +0000)]
don't draw lighting on sky and water

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

15 years agomerged static and dynamic rtlight handling almost entirely (even uses DrawShadowVolum...
havoc [Sat, 13 Mar 2004 23:30:20 +0000 (23:30 +0000)]
merged static and dynamic rtlight handling almost entirely (even uses DrawShadowVolume and DrawLight to generate cached meshes - however this currently lost the r_shadow_portallight optimizations)
added a surfacelist to model_t containing surface indices for each submodel
merged R_Shadow_DiffuseLighting and R_Shadow_SpecularLighting into R_Shadow_RenderLighting (which takes a lighting parameter containing LIGHTING_DIFFUSE and LIGHTING_SPECULAR flags)
commented out cullradius/cullradius2 in rtlight structs because they weren't used

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

15 years agoadded texmatrix[] to rmeshstate_t and removed R_Mesh_TextureMatrix function
havoc [Sat, 13 Mar 2004 23:26:17 +0000 (23:26 +0000)]
added texmatrix[] to rmeshstate_t and removed R_Mesh_TextureMatrix function
reorganized water rendering code to make it a lot less confusing (especially the r_watershader code)

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

15 years agofixed gl_paranoid warnings in R_DrawQueue
havoc [Sat, 13 Mar 2004 23:14:29 +0000 (23:14 +0000)]
fixed gl_paranoid warnings in R_DrawQueue

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

15 years agofixed gl_paranoid warnings caused by gl_texture_anisotropy being less than 1, it...
havoc [Sat, 13 Mar 2004 23:12:35 +0000 (23:12 +0000)]
fixed gl_paranoid warnings caused by gl_texture_anisotropy being less than 1, it is now bound to 1-128 range

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

15 years agoDP should read the config files correcly again now.
black [Sat, 13 Mar 2004 14:43:04 +0000 (14:43 +0000)]
DP should read the config files correcly again now.

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

15 years ago*** empty log message ***
havoc [Sat, 13 Mar 2004 11:50:11 +0000 (11:50 +0000)]
*** empty log message ***

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

15 years agoadded const to most parameters to Mod_ShadowMesh_AddMesh
havoc [Sat, 13 Mar 2004 07:21:07 +0000 (07:21 +0000)]
added const to most parameters to Mod_ShadowMesh_AddMesh

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

15 years agoq3bsp rendering now uses visframe instead of markframe, also removed some cruft in...
havoc [Sat, 13 Mar 2004 07:12:13 +0000 (07:12 +0000)]
q3bsp rendering now uses visframe instead of markframe, also removed some cruft in R_Q3BSP_DrawShadowVolume/R_Q3BSP_DrawLight

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

15 years agoChanged the way DP detects and handles the CPU endianess. All the tests are done...
molivier [Thu, 11 Mar 2004 08:08:04 +0000 (08:08 +0000)]
Changed the way DP detects and handles the CPU endianess. All the tests are done at compile time now. Tested on Win32 (MSVC6 and MinGW32), Linux and NetBSD; should also work on the other BSDs.

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

15 years agoremoved special GAME_FNIGGIUM default for con_forcewhiledisconnected
havoc [Thu, 11 Mar 2004 00:43:46 +0000 (00:43 +0000)]
removed special GAME_FNIGGIUM default for con_forcewhiledisconnected

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

15 years agonow calls GL_LockArrays manually around each R_Mesh_Draw call instead of locking...
havoc [Wed, 10 Mar 2004 21:40:02 +0000 (21:40 +0000)]
now calls GL_LockArrays manually around each R_Mesh_Draw call instead of locking inside R_Mesh_Draw, so some things can render the same geometry repeatedly (shadow volumes and lighting) without unlocking)

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

15 years agoremoved r_shadow_showtris (superseded by r_showtris)
havoc [Wed, 10 Mar 2004 09:52:55 +0000 (09:52 +0000)]
removed r_shadow_showtris (superseded by r_showtris)

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

15 years agomerged CL_ColorPointer into R_Mesh_State
havoc [Wed, 10 Mar 2004 09:48:53 +0000 (09:48 +0000)]
merged CL_ColorPointer into R_Mesh_State

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

15 years agoR_Mesh_State_Texture and GL_VertexPointer merge once again to become the reborn R_Mes...
havoc [Wed, 10 Mar 2004 08:35:53 +0000 (08:35 +0000)]
R_Mesh_State_Texture and GL_VertexPointer merge once again to become the reborn R_Mesh_State function

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

15 years agoGL_Color no longer interacts with GL_ColorPointer (so be sure to set GL_ColorPointer...
havoc [Wed, 10 Mar 2004 07:43:41 +0000 (07:43 +0000)]
GL_Color no longer interacts with GL_ColorPointer (so be sure to set GL_ColorPointer if it have been left on something you don't want)
GL_ColorPointer now resets glColor when array is turned off, because glColor gets trashed while color array is on (so sayeth the GL spec, and so proveth the NVIDIA driver)

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

15 years agonow supports GL_EXT_stencil_two_side extension (found on NV30/R300 class cards),...
havoc [Wed, 10 Mar 2004 07:14:24 +0000 (07:14 +0000)]
now supports GL_EXT_stencil_two_side extension (found on NV30/R300 class cards), this halves the polycount thrown at the card for shadow volumes, which got me a 77% speed gain on my GFFX5200

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

15 years agosorted extension list again
havoc [Wed, 10 Mar 2004 06:34:43 +0000 (06:34 +0000)]
sorted extension list again

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

15 years agoadded DP_SV_ROTATINGBMODEL extension to list
havoc [Wed, 10 Mar 2004 06:33:22 +0000 (06:33 +0000)]
added DP_SV_ROTATINGBMODEL extension to list

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

15 years agoadded a few items to the client features list
havoc [Wed, 10 Mar 2004 06:20:56 +0000 (06:20 +0000)]
added a few items to the client features list

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

15 years agoadded -benchmark commandline option
havoc [Wed, 10 Mar 2004 06:17:56 +0000 (06:17 +0000)]
added -benchmark commandline option

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

15 years agoadded showtime/showtime_format and showdate/showdate_format cvars, and moved the...
havoc [Wed, 10 Mar 2004 05:51:53 +0000 (05:51 +0000)]
added showtime/showtime_format and showdate/showdate_format cvars, and moved the fps display to bottom right corner (above the optional time/date displays)

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

15 years agoadded convenience function Sys_TimeString which calls strftime into a temporary buffe...
havoc [Wed, 10 Mar 2004 05:48:41 +0000 (05:48 +0000)]
added convenience function Sys_TimeString which calls strftime into a temporary buffer and returns the string, now Sys_Print uses this

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

15 years agoadded an extern for cmdline cvar
havoc [Wed, 10 Mar 2004 05:47:18 +0000 (05:47 +0000)]
added an extern for cmdline cvar

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

15 years agoadded Print versions of Printf functions and made all calls that do not need formatin...
havoc [Wed, 10 Mar 2004 03:28:04 +0000 (03:28 +0000)]
added Print versions of Printf functions and made all calls that do not need formating use the Print versions; yes this is a cosmetic cleanup, prints are too rare to have any performance improvements.

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

15 years agoclean up an unnecessary snprintf
havoc [Wed, 10 Mar 2004 00:06:05 +0000 (00:06 +0000)]
clean up an unnecessary snprintf

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

15 years agoadded scr_conforcewhiledisconnected cvar so it is possible to disable the console...
havoc [Tue, 9 Mar 2004 22:25:44 +0000 (22:25 +0000)]
added scr_conforcewhiledisconnected cvar so it is possible to disable the console forcing (and defaults off in GAME_FNIGGIUM)

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

15 years ago"edict" command no longer crashes if given -1 as edict number
havoc [Tue, 9 Mar 2004 22:14:07 +0000 (22:14 +0000)]
"edict" command no longer crashes if given -1 as edict number

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

15 years ago*** empty log message ***
havoc [Tue, 9 Mar 2004 21:59:59 +0000 (21:59 +0000)]
*** empty log message ***

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

15 years agoreorganized SV_FlyMove to merge the two paths (new simple/old complex approaches)
havoc [Tue, 9 Mar 2004 21:56:49 +0000 (21:56 +0000)]
reorganized SV_FlyMove to merge the two paths (new simple/old complex approaches)

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

15 years agoworked around curve collision problems by doing special sort-of-axial edge planes...
havoc [Tue, 9 Mar 2004 20:35:51 +0000 (20:35 +0000)]
worked around curve collision problems by doing special sort-of-axial edge planes on triangle collisions (ultimately the collision routine needs to do edge/edge collisions somehow to make this unnecessary)
now snaps triangle mesh vertices to 1/32 of a unit precision to keep the plane calculations a little more accurate (note: this is done at collision time), although this doesn't seem to be necessary
collision nudge values are now configurable via cvars (collision_ cvars, warning: things tend to break if startnudge != endnudge, and enternudge should be the same as leavenudge)

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

15 years agonow supports loading skybox specified by q3 sky shaders
havoc [Tue, 9 Mar 2004 04:59:14 +0000 (04:59 +0000)]
now supports loading skybox specified by q3 sky shaders

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

15 years agofix saving of rtlights files (everything past cubemap was getting lost)
havoc [Tue, 9 Mar 2004 04:56:04 +0000 (04:56 +0000)]
fix saving of rtlights files (everything past cubemap was getting lost)

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

15 years agofix two signed/unsigned comparison warnings
havoc [Sun, 7 Mar 2004 08:15:17 +0000 (08:15 +0000)]
fix two signed/unsigned comparison warnings

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

15 years ago*** empty log message ***
havoc [Sun, 7 Mar 2004 01:06:17 +0000 (01:06 +0000)]
*** empty log message ***

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

15 years ago*** empty log message ***
havoc [Sat, 6 Mar 2004 02:09:08 +0000 (02:09 +0000)]
*** empty log message ***

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