]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
18 years agoremoved the flawed detection of modelspace deluxemaps (it was always concluding they...
havoc [Wed, 19 Apr 2006 07:04:05 +0000 (07:04 +0000)]
removed the flawed detection of modelspace deluxemaps (it was always concluding they were modelspace because of unused black pixels and such), now assumes q3bsp deluxemaps are always modelspace

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

18 years agoanother attempt to fix the warnings
havoc [Tue, 18 Apr 2006 11:24:19 +0000 (11:24 +0000)]
another attempt to fix the warnings

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

18 years agoattempting to fix a warning about setjmp clobbering variables
havoc [Tue, 18 Apr 2006 11:19:02 +0000 (11:19 +0000)]
attempting to fix a warning about setjmp clobbering variables

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

18 years agofix a bug in AUTOSPRITE2 code caused by overzealous optimization, thanks to Elric...
havoc [Tue, 18 Apr 2006 11:10:10 +0000 (11:10 +0000)]
fix a bug in AUTOSPRITE2 code caused by overzealous optimization, thanks to Elric for reporting this

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

18 years agoreworked most of q3bsp q3 shader loading, now supports more shader effects (the first...
havoc [Tue, 18 Apr 2006 10:44:11 +0000 (10:44 +0000)]
reworked most of q3bsp q3 shader loading, now supports more shader effects (the first layer's blendfunc is now used for rendering), still no multilayer stuff though, and still no tcgen environment so some surfaces now look worse because their first pass is an environment effect, but most others look better...
q3 fog shaders are usually invisible now (looks better than blinding white surfaces)
added support for more hacky q3 shaders (like sky shaders that don't have surfaceparm sky, and transparent shaders that don't have surfaceparm trans)
added support for alpha test in q3 shaders (improves some shaders)

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

18 years agoreset a bit more state each frame
havoc [Tue, 18 Apr 2006 10:37:43 +0000 (10:37 +0000)]
reset a bit more state each frame

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

18 years agoconback lives... again!
havoc [Tue, 18 Apr 2006 06:28:17 +0000 (06:28 +0000)]
conback lives...  again!

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

18 years agoremoved showfps mode 2 (which was weird), modified showfps 1 to use 0.1 second pollin...
havoc [Tue, 18 Apr 2006 06:19:10 +0000 (06:19 +0000)]
removed showfps mode 2 (which was weird), modified showfps 1 to use 0.1 second polling intervals so it updates much more often

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

18 years agoconback support is dead.
havoc [Tue, 18 Apr 2006 06:16:13 +0000 (06:16 +0000)]
conback support is dead.

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

18 years agoremoved scr_conspeed, now always instantaneous console opening/closing
havoc [Tue, 18 Apr 2006 06:03:37 +0000 (06:03 +0000)]
removed scr_conspeed, now always instantaneous console opening/closing

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

18 years agorewrote timing code, now a much better and very different sleeping method, no longer...
havoc [Tue, 18 Apr 2006 05:49:22 +0000 (05:49 +0000)]
rewrote timing code, now a much better and very different sleeping method, no longer wastes any cpu time
changed timing code to have independent sleeping for client and server frames in a listen server
changed console execution to occur in sync with server frames if a server is running, this fixes frikbot loading of .way files
eliminated several host_* variables, replaced host_realframetime with cl.realframetime (which is how long since the last client frame)
removed the clamping of sys_ticrate to >= 0.1, so now sys_ticrate 0 is allowed (run as fast as possible), as well as silly values like 0.001
removed serverprofile cvar as it was not easy to preserve it in the rewritten timing
merged Host_FilterTime, Host_ServerFrame, Host_Frame, _Host_Frame into Host_Main (which also calls Host_Init), this eliminates some duplicate code in all the sys_ modules

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

18 years agobatch by lightmap as well as texture, this cures problems with vertex lit surfaces...
havoc [Mon, 17 Apr 2006 01:58:32 +0000 (01:58 +0000)]
batch by lightmap as well as texture, this cures problems with vertex lit surfaces in deluxemapped q3bsp files (the vertex lit surfaces can't be deluxemapped)

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

18 years agono longer recalculated q3bsp surface normals, this makes q3map2 'phong shading' featu...
havoc [Sun, 16 Apr 2006 11:38:37 +0000 (11:38 +0000)]
no longer recalculated q3bsp surface normals, this makes q3map2 'phong shading' features work, no more seams on terrain and such

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

18 years agofix crash when loading .dpm models
havoc [Sun, 16 Apr 2006 11:37:07 +0000 (11:37 +0000)]
fix crash when loading .dpm models

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

18 years agochanged where vertex coloring is applied in the fragment shader, this fixes problems...
havoc [Sun, 16 Apr 2006 11:36:20 +0000 (11:36 +0000)]
changed where vertex coloring is applied in the fragment shader, this fixes problems with vertex colored surfaces (note: does not help deluxemapping mode, there is another bug affecting that)

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

18 years agomodified Mod_BuildTextureVectorsAndNormals to become Mod_BuildTextureVectorsFromNorma...
havoc [Sun, 16 Apr 2006 10:19:05 +0000 (10:19 +0000)]
modified Mod_BuildTextureVectorsAndNormals to become Mod_BuildTextureVectorsFromNormals, this is in preparation for properly honoring the surface normals in models and maps (doesn't do anything yet)

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

18 years agocommented out r_texture_fogintensity texture generation as it's not used anywhere
havoc [Sun, 16 Apr 2006 09:34:02 +0000 (09:34 +0000)]
commented out r_texture_fogintensity texture generation as it's not used anywhere

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

18 years agofix bug in glsl surface shader setup code which was breaking fog
havoc [Sun, 16 Apr 2006 09:30:21 +0000 (09:30 +0000)]
fix bug in glsl surface shader setup code which was breaking fog

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

18 years agoeliminated rmeshstate_t .pointer_vertex and .pointer_color (now must use R_Mesh_Verte...
havoc [Sun, 16 Apr 2006 09:21:17 +0000 (09:21 +0000)]
eliminated rmeshstate_t .pointer_vertex and .pointer_color (now must use R_Mesh_VertexPointer and R_Mesh_ColorPointer instead - in a lot of code these don't need to be called as often)
renamed R_Mesh_State to R_Mesh_TextureState
made an alternate variant of R_Mesh_TextureState called R_Mesh_ResetTextureState which acts like it was given an empty rmeshstate_t (but is faster than R_Mesh_TextureState)
moved R_Mesh_VertexPointer and R_Mesh_TexCoordPointer calls out of the inner loops of the GLSL surface path
other related cleanups

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

18 years agoredesigned some of the model animation code, should be a speed gain (no longer proces...
havoc [Sun, 16 Apr 2006 06:44:17 +0000 (06:44 +0000)]
redesigned some of the model animation code, should be a speed gain (no longer processes animation multiple times on models with multiple textures), and executes less code per surface (should speed up map rendering)

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

18 years agofixed zym loading bugs that made models lose surfaces
havoc [Sun, 16 Apr 2006 06:40:20 +0000 (06:40 +0000)]
fixed zym loading bugs that made models lose surfaces

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

18 years agoAGL fixes: fixed a crash when switching to and from fullscreen several times; explici...
molivier [Sun, 16 Apr 2006 06:28:28 +0000 (06:28 +0000)]
AGL fixes: fixed a crash when switching to and from fullscreen several times; explicitely release the display when closing the video module; fixed initial test in VID_Shutdown(); a bit of code cleaning

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

18 years agouse entity bbox for network culling if model was not found (this allows dedicated...
havoc [Sun, 16 Apr 2006 04:02:32 +0000 (04:02 +0000)]
use entity bbox for network culling if model was not found (this allows dedicated servers to run properly without models installed)

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

18 years agosome cleanup of Mod_Alias_GetMesh_Vertex3f
havoc [Sun, 16 Apr 2006 01:08:00 +0000 (01:08 +0000)]
some cleanup of Mod_Alias_GetMesh_Vertex3f
fixed md3 animation loading bug (this was causing all frames other than 0 to be corrupt)

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

18 years agoFixes and cleanups related to the recent AGL patches
molivier [Sat, 15 Apr 2006 11:33:29 +0000 (11:33 +0000)]
Fixes and cleanups related to the recent AGL patches

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

18 years agoadded darkplaces-agl to .cvsignore
havoc [Sat, 15 Apr 2006 08:24:35 +0000 (08:24 +0000)]
added darkplaces-agl to .cvsignore

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

18 years agofix more warnings
havoc [Sat, 15 Apr 2006 08:14:55 +0000 (08:14 +0000)]
fix more warnings

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

18 years agoadded -framework AGL to the Mac OSX client libs to make it compile
havoc [Sat, 15 Apr 2006 08:13:14 +0000 (08:13 +0000)]
added -framework AGL to the Mac OSX client libs to make it compile

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

18 years agofix some warnings
havoc [Sat, 15 Apr 2006 08:04:10 +0000 (08:04 +0000)]
fix some warnings

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

18 years agofix really stupid typo in SV_Move code, this cures the 'monsters walking through...
havoc [Sat, 15 Apr 2006 07:53:27 +0000 (07:53 +0000)]
fix really stupid typo in SV_Move code, this cures the 'monsters walking through walls' bug

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

18 years agofix clientside bmodel collisions (now can walk around on the start.bsp main room...
havoc [Sat, 15 Apr 2006 06:46:09 +0000 (06:46 +0000)]
fix clientside bmodel collisions (now can walk around on the start.bsp main room floor, lifts, be blocked by doors, etc)

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

18 years agoprints entity number of MOVETYPE_PUSH entities without models (this is mostly useful...
havoc [Sat, 15 Apr 2006 06:45:12 +0000 (06:45 +0000)]
prints entity number of MOVETYPE_PUSH entities without models (this is mostly useful to level designers who accidentally left a brushless door lying around)

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

18 years agoadditional debugging code
havoc [Sat, 15 Apr 2006 06:44:03 +0000 (06:44 +0000)]
additional debugging code

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

18 years agofixed stair step up bug in cl_movement code which caused prediction to go through...
havoc [Sat, 15 Apr 2006 06:41:22 +0000 (06:41 +0000)]
fixed stair step up bug in cl_movement code which caused prediction to go through walls in some cases

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

18 years agofixed really stupid typo in CL_TraceBox regarding bmodel entity collisions (doors...
havoc [Sat, 15 Apr 2006 06:38:09 +0000 (06:38 +0000)]
fixed really stupid typo in CL_TraceBox regarding bmodel entity collisions (doors and such) which was breaking their collisions
eliminated CL_PointQ1Contents

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

18 years agoaudit of checkstuck/unstickentity code and relates stuff, this seems to fix the falli...
havoc [Fri, 14 Apr 2006 03:46:39 +0000 (03:46 +0000)]
audit of checkstuck/unstickentity code and relates stuff, this seems to fix the falling out of level bug

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

18 years agobetter SUPERCONTENTS masks for a few TraceBox and PointContents calls
havoc [Fri, 14 Apr 2006 03:45:43 +0000 (03:45 +0000)]
better SUPERCONTENTS masks for a few TraceBox and PointContents calls
slight cleanups

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

18 years agomoved SVC_PARTICLE code to fallback code, this does allow effectinfo.txt to override...
havoc [Thu, 13 Apr 2006 16:48:09 +0000 (16:48 +0000)]
moved SVC_PARTICLE code to fallback code, this does allow effectinfo.txt to override SVC_PARTICLE but that isn't recommended

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

18 years agostop complaining about SVC_PARTICLE
havoc [Thu, 13 Apr 2006 16:41:23 +0000 (16:41 +0000)]
stop complaining about SVC_PARTICLE

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

18 years agotwo Mac OSX fixes from ds01 on alientrap forums - input fixed, and fullscren fixed
havoc [Thu, 13 Apr 2006 16:33:19 +0000 (16:33 +0000)]
two Mac OSX fixes from ds01 on alientrap forums - input fixed, and fullscren fixed

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

18 years agochanged cshifts[] to use floats instead of ints, this reduces framerate dependence...
havoc [Wed, 12 Apr 2006 22:41:27 +0000 (22:41 +0000)]
changed cshifts[] to use floats instead of ints, this reduces framerate dependence (where damage flashes faded faster at lower framerates)

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

18 years agoSys_Sleep more to save cpu time
havoc [Wed, 12 Apr 2006 22:40:32 +0000 (22:40 +0000)]
Sys_Sleep more to save cpu time

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

18 years agodon't hide console when entering a map, only do so for timedemo
havoc [Wed, 12 Apr 2006 22:40:14 +0000 (22:40 +0000)]
don't hide console when entering a map, only do so for timedemo

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

18 years agoMacOSX g++ setjmp fix from div0
havoc [Tue, 11 Apr 2006 21:47:51 +0000 (21:47 +0000)]
MacOSX g++ setjmp fix from div0

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

18 years agoThis works for me, works on Windows according to MSDN and should also work
black [Tue, 11 Apr 2006 11:31:04 +0000 (11:31 +0000)]
This works for me, works on Windows according to MSDN and should also work
everywhere else according to the C standard.

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

18 years agoreverted Black's change to the effectinfo.txt color command
havoc [Mon, 10 Apr 2006 22:03:40 +0000 (22:03 +0000)]
reverted Black's change to the effectinfo.txt color command

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

18 years agoAn attempt to fix the particle color bug (it coudlnt read hex values).
black [Mon, 10 Apr 2006 20:41:57 +0000 (20:41 +0000)]
An attempt to fix the particle color bug (it coudlnt read hex values).
Also extend it to make it support "R G B" color pairs.

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

18 years agodo apply mixahead math as int
havoc [Sun, 9 Apr 2006 01:11:39 +0000 (01:11 +0000)]
do apply mixahead math as int

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

18 years agofix cl.completed_time math after that last commit
havoc [Sat, 8 Apr 2006 20:02:56 +0000 (20:02 +0000)]
fix cl.completed_time math after that last commit

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

18 years agomade darkplaces able to compile as C++ again, and fixed all conversion warnings when...
havoc [Sat, 8 Apr 2006 18:56:35 +0000 (18:56 +0000)]
made darkplaces able to compile as C++ again, and fixed all conversion warnings when doing so
changed several malloc and free calls to Z_Malloc and Z_Free

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

18 years agodefault sv_gameplayfix_stepdown to 0 because it's generally undesirable
havoc [Sat, 8 Apr 2006 16:17:06 +0000 (16:17 +0000)]
default sv_gameplayfix_stepdown to 0 because it's generally undesirable

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

18 years ago466
havoc [Tue, 4 Apr 2006 19:08:45 +0000 (19:08 +0000)]
466

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

18 years agoincreased sv_maxrate limit to 150000 from 25000
havoc [Tue, 4 Apr 2006 14:01:23 +0000 (14:01 +0000)]
increased sv_maxrate limit to 150000 from 25000

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

18 years agoadded particle effect scripting using effectinfo.txt, this means configurable effects...
havoc [Tue, 4 Apr 2006 13:51:22 +0000 (13:51 +0000)]
added particle effect scripting using effectinfo.txt, this means configurable effects in any game that wishes to do so

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

18 years agodon't render skymasking polygons when noclipping
havoc [Tue, 4 Apr 2006 13:49:12 +0000 (13:49 +0000)]
don't render skymasking polygons when noclipping

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

18 years agoadded some extra prints to net_slistqw to figure out which masters are working, and...
havoc [Tue, 4 Apr 2006 13:36:21 +0000 (13:36 +0000)]
added some extra prints to net_slistqw to figure out which masters are working, and removed a few duplicate references to the id qw masters from the list

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

18 years agosome cleanup of the GLSL shader, no longer uses #ifdef variable declarations because...
havoc [Sun, 2 Apr 2006 08:12:44 +0000 (08:12 +0000)]
some cleanup of the GLSL shader, no longer uses #ifdef variable declarations because the shader compiler removes unused variables anyway, and now always calculates the eye vector for simplicity reasons
removed the SURFACENORMALIZE option (now always on, since it doesn't cost much render time and was on by default)
removed all use and detection of half floats (these were originally around 11% speedup on GF6 hardware but but in more recent drivers they've dropped to around 3-6%, and spit out a lot of warnings during shader compilation with no apparent way to fix the warnings)

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

18 years agoremoved a piece of debugging code
havoc [Sun, 2 Apr 2006 08:05:42 +0000 (08:05 +0000)]
removed a piece of debugging code

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

18 years agorewrote much of SV_Trace_Toss to fix bugs (it basically wasn't working, though I...
havoc [Sat, 1 Apr 2006 13:49:46 +0000 (13:49 +0000)]
rewrote much of SV_Trace_Toss to fix bugs (it basically wasn't working, though I was unable to figure out why)

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

18 years agoprint out the contents of the GLSL shader when it is compiled when using developer...
havoc [Fri, 31 Mar 2006 03:38:34 +0000 (03:38 +0000)]
print out the contents of the GLSL shader when it is compiled when using developer 100 or higher

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

18 years agofix a crash in r_showsurfaces
havoc [Wed, 29 Mar 2006 13:25:09 +0000 (13:25 +0000)]
fix a crash in r_showsurfaces

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

18 years agooptimizations to surface rendering setup
havoc [Wed, 29 Mar 2006 12:54:11 +0000 (12:54 +0000)]
optimizations to surface rendering setup

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

18 years agoeliminated model->meshlist, replaced with an embedded model->surfmesh to cut down...
havoc [Wed, 29 Mar 2006 11:11:46 +0000 (11:11 +0000)]
eliminated model->meshlist, replaced with an embedded model->surfmesh to cut down on pointer indirections, this also eliminated surface->groupmesh
some minor optimizations of code to keep track of ent->model in a local variable rather than dereferencing ent every time

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

18 years agovery very minor optimization
havoc [Wed, 29 Mar 2006 11:08:11 +0000 (11:08 +0000)]
very very minor optimization

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

18 years agoadded LDFLAGS_SDL to the pmake file
havoc [Wed, 29 Mar 2006 11:04:08 +0000 (11:04 +0000)]
added LDFLAGS_SDL to the pmake file

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

18 years agoremove a superfluous -L
havoc [Wed, 29 Mar 2006 10:54:31 +0000 (10:54 +0000)]
remove a superfluous -L

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

18 years agomerged special SUNOS LDFLAGS_UNIXCL into LDFLAGS_SUNOSCL to eliminate an ifeq which...
havoc [Wed, 29 Mar 2006 10:52:14 +0000 (10:52 +0000)]
merged special SUNOS LDFLAGS_UNIXCL into LDFLAGS_SUNOSCL to eliminate an ifeq which was breaking on pmake

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

18 years agoremove the -f makefile.bsd
havoc [Wed, 29 Mar 2006 10:51:31 +0000 (10:51 +0000)]
remove the -f makefile.bsd

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

18 years agorenamed makefile.bsd to BSDmakefile so that pmake will automatically find it (no...
havoc [Wed, 29 Mar 2006 10:37:23 +0000 (10:37 +0000)]
renamed makefile.bsd to BSDmakefile so that pmake will automatically find it (no -f necessary), thanks to div0 for the tip

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

18 years agono longer uses multiple meshes for model loading, they each use one mesh for all...
havoc [Wed, 29 Mar 2006 09:18:50 +0000 (09:18 +0000)]
no longer uses multiple meshes for model loading, they each use one mesh for all surfaces combined
now puts all q3bsp map geometry into one mesh at load rather than splitting it into 65536 vertex meshes to crutch up broken drivers (they've been fixed already so this is no longer necessary)

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

18 years agoin Host_ServerFrame, give the server a bit more execution time
havoc [Wed, 29 Mar 2006 09:14:28 +0000 (09:14 +0000)]
in Host_ServerFrame, give the server a bit more execution time

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

18 years agodefault scr_menuforcewhiledisconnected to 0
havoc [Wed, 29 Mar 2006 06:50:53 +0000 (06:50 +0000)]
default scr_menuforcewhiledisconnected to 0

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

18 years agoadded rampsize parameter to BuildGammaTable8 and 16
havoc [Wed, 29 Mar 2006 00:31:12 +0000 (00:31 +0000)]
added rampsize parameter to BuildGammaTable8 and 16

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

18 years agoan optimization to call XF86VidModeGetGammaRampSize only when opening the window...
havoc [Tue, 28 Mar 2006 13:09:42 +0000 (13:09 +0000)]
an optimization to call XF86VidModeGetGammaRampSize only when opening the window, and assume the rampsize doesn't change after that

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

18 years agomodified gamma handling, now VID_UpdateGamma is only called from VID_Finish, and...
havoc [Tue, 28 Mar 2006 13:02:06 +0000 (13:02 +0000)]
modified gamma handling, now VID_UpdateGamma is only called from VID_Finish, and VID_SetGamma/VID_GetGamma/VID_UpdateGamma take rampsize parameters
VID_UpdateGamma now supports ramp sizes other than 256, and automatically allocates memory accordingly, this allows hardware gamma on X11 to work on Quadro cards (which report 1024 gamma entries according to div0), and allows any other platform to do whatever it wishes

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

18 years agoadded loading of hmap2 .dlit tangentspace deluxemap files and a rather lame method...
havoc [Tue, 28 Mar 2006 10:17:21 +0000 (10:17 +0000)]
added loading of hmap2 .dlit tangentspace deluxemap files and a rather lame method of lightstyle support (blending the deluxemaps according to lightstyles, not rendering them separately like it should)

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

18 years agoadded two more psk/psa versions reported by Kazashi
havoc [Tue, 28 Mar 2006 03:01:52 +0000 (03:01 +0000)]
added two more psk/psa versions reported by Kazashi

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

18 years agopatch from div0 to fix disappearing items in nexuiz (trace_* globals in qc were not...
havoc [Tue, 28 Mar 2006 01:04:23 +0000 (01:04 +0000)]
patch from div0 to fix disappearing items in nexuiz (trace_* globals in qc were not being cleared before calling touch)

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

18 years agofixed r_speeds stats with r_showsurfaces 1 mode
havoc [Sun, 26 Mar 2006 08:09:45 +0000 (08:09 +0000)]
fixed r_speeds stats with r_showsurfaces 1 mode

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

18 years agoadded r_showsurfaces rendering mode which illustrates how many surfaces are on screen...
havoc [Sun, 26 Mar 2006 07:17:32 +0000 (07:17 +0000)]
added r_showsurfaces rendering mode which illustrates how many surfaces are on screen (and renders REALLY FAST)
moved r_showcollisionbrushes code to gl_rmain.c

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

18 years agoeliminated the hacky r_showtris code, now r_glsl 1 mode works with r_showtris
havoc [Sun, 26 Mar 2006 06:43:50 +0000 (06:43 +0000)]
eliminated the hacky r_showtris code, now r_glsl 1 mode works with r_showtris
rewrote r_showtris and r_shownormals to use opaque lines that write to the depth buffer, this makes them show up quite clearly in all cases
moved r_showtris and r_shownormals code into R_DrawSurfaces

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

18 years agodisable skymasking in q3bsp because it causes issues with q3map2 sky tricks (and...
havoc [Sun, 26 Mar 2006 03:28:37 +0000 (03:28 +0000)]
disable skymasking in q3bsp because it causes issues with q3map2 sky tricks (and reenabled the skipping of skymasking on hlbsp also)

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

18 years agofixed bug that was preventing some deluxemapped q3bsp files from being identified...
havoc [Sun, 26 Mar 2006 02:26:44 +0000 (02:26 +0000)]
fixed bug that was preventing some deluxemapped q3bsp files from being identified as deluxemapped

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

18 years ago448
havoc [Sat, 25 Mar 2006 22:31:21 +0000 (22:31 +0000)]
448

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

18 years ago452
sajt [Sat, 25 Mar 2006 10:56:16 +0000 (10:56 +0000)]
452

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

18 years agocl_autodemo, when set to true, automatically records every game you play. The filenam...
sajt [Sat, 25 Mar 2006 07:58:18 +0000 (07:58 +0000)]
cl_autodemo, when set to true, automatically records every game you play. The filename of the demo is determined by cl_autodemo_nameformat (UNIX time string) and the map name.

Note - I'm pretty sure this currently lumps all games played successively into one demo. Feel free to fix that :)

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

18 years ago'Cruft' removal (removed GAME_FNIGGIUM)
sajt [Sat, 25 Mar 2006 07:25:45 +0000 (07:25 +0000)]
'Cruft' removal (removed GAME_FNIGGIUM)
Fixed a very minor 'potential' leak in JPEG loading

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

18 years agofix some TraceBox calls that weren't updated like they should have been, so they...
havoc [Thu, 23 Mar 2006 12:34:27 +0000 (12:34 +0000)]
fix some TraceBox calls that weren't updated like they should have been, so they were using a totally bogus bounding box

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

18 years agofix EF_SELECTABLE flickering bug with prydon cursor
havoc [Thu, 23 Mar 2006 12:33:46 +0000 (12:33 +0000)]
fix EF_SELECTABLE flickering bug with prydon cursor

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

18 years agoand a GL_DepthMask call
havoc [Thu, 23 Mar 2006 12:04:10 +0000 (12:04 +0000)]
and a GL_DepthMask call

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

18 years agochanged several DPrint's and developer cvar checks to higher developer cvar levels...
havoc [Thu, 23 Mar 2006 11:53:11 +0000 (11:53 +0000)]
changed several DPrint's and developer cvar checks to higher developer cvar levels (>= 10 and >= 100 for example), this makes developer 1 much more pleasant to use, also changed the memory clearing on free to depend on developer_memorydebug (which is already quite slow) rather than developer (which shouldn't slow things down much)

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

18 years agoa GL_DepthTest call I forgot in the last commit
havoc [Thu, 23 Mar 2006 11:49:22 +0000 (11:49 +0000)]
a GL_DepthTest call I forgot in the last commit

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

18 years agofixed bug that made light filter cubemaps not work in GLSL mode (was binding a cubema...
havoc [Thu, 23 Mar 2006 11:47:11 +0000 (11:47 +0000)]
fixed bug that made light filter cubemaps not work in GLSL mode (was binding a cubemap as a 2D texture...  oops)
fixed bug that made sky brush entities not appear when not looking at sky brushes in the world (GL_DepthTest/GL_DepthMask were messed up)

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

18 years agocorrected PFLAGS_FULLDYNAMIC pitch angle handling
havoc [Thu, 23 Mar 2006 11:44:47 +0000 (11:44 +0000)]
corrected PFLAGS_FULLDYNAMIC pitch angle handling

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

18 years agofix bugs with bbox vs bbox traces (the collision box's planes didn't have correct...
havoc [Thu, 23 Mar 2006 11:43:46 +0000 (11:43 +0000)]
fix bugs with bbox vs bbox traces (the collision box's planes didn't have correct contents/surfaceflags/texture information)

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

18 years agofixed really stupid bug in Matrix4x4_Normalize - it was transposing the matrix (a...
havoc [Thu, 23 Mar 2006 11:41:34 +0000 (11:41 +0000)]
fixed really stupid bug in Matrix4x4_Normalize - it was transposing the matrix (a legacy of the fact it was based on Invert_Simple)

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

18 years agoadd back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashe...
havoc [Thu, 23 Mar 2006 02:34:51 +0000 (02:34 +0000)]
add back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashes on level change in singleplayer and listen servers

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

18 years agoadded more validation of clipnodes loaded from a q1bsp file
havoc [Thu, 23 Mar 2006 02:34:16 +0000 (02:34 +0000)]
added more validation of clipnodes loaded from a q1bsp file

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

18 years agoanother WIN32_LEAN_AND_MEAN patch from Willis, this one for non-SDL client and dedica...
havoc [Wed, 22 Mar 2006 09:18:03 +0000 (09:18 +0000)]
another WIN32_LEAN_AND_MEAN patch from Willis, this one for non-SDL client and dedicated server

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

18 years agoimplemented DP_TRACE_HITCONTENTSMASK_SURFACEINFO extension, this allows QC to find...
havoc [Wed, 22 Mar 2006 08:51:35 +0000 (08:51 +0000)]
implemented DP_TRACE_HITCONTENTSMASK_SURFACEINFO extension, this allows QC to find out if a projectile hit sky, among other capabilities

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