]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agodon't upload a fog texture for explosion shells if r_loadfog is false
havoc [Tue, 8 Dec 2009 04:33:18 +0000 (04:33 +0000)]
don't upload a fog texture for explosion shells if r_loadfog is false

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

14 years agoincrease _snd_mixahead to 0.15 to fix crackling sound on Vista
havoc [Tue, 8 Dec 2009 03:19:42 +0000 (03:19 +0000)]
increase _snd_mixahead to 0.15 to fix crackling sound on Vista

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

14 years agomoved gl_state definition higher in the code
havoc [Tue, 8 Dec 2009 01:46:18 +0000 (01:46 +0000)]
moved gl_state definition higher in the code
replaced backendunits, backendimageunits, and backendarrayunits
references with vid.texunits, vid.teximageunits, vid.texarrayunits

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

14 years agoan attempt to fix waveOut sound on Vista
havoc [Tue, 8 Dec 2009 01:25:38 +0000 (01:25 +0000)]
an attempt to fix waveOut sound on Vista
added snd_wav_partitionsize cvar (default 1024)

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

14 years agoremove unused tex1d parameters
havoc [Mon, 7 Dec 2009 20:33:32 +0000 (20:33 +0000)]
remove unused tex1d parameters

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

14 years agoadded vid.support struct containing extension detection flags, to
havoc [Mon, 7 Dec 2009 20:28:17 +0000 (20:28 +0000)]
added vid.support struct containing extension detection flags, to
replace gl_support_* variables

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

14 years agoremove a vid.support line I did not intend to be in here
havoc [Mon, 7 Dec 2009 20:25:57 +0000 (20:25 +0000)]
remove a vid.support line I did not intend to be in here

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

14 years agoR_UpdateTexture no longer calls R_RealGetTexture, and now causes a
havoc [Mon, 7 Dec 2009 20:21:30 +0000 (20:21 +0000)]
R_UpdateTexture no longer calls R_RealGetTexture, and now causes a
Host_Error if the texture has not been precached already, this should
fix a crash with dpv video playback

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

14 years agoremove an unneeded comment
havoc [Mon, 7 Dec 2009 20:09:08 +0000 (20:09 +0000)]
remove an unneeded comment

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

14 years agoremoved gl_videosyncavailable variable because on all known platforms it
havoc [Mon, 7 Dec 2009 16:04:50 +0000 (16:04 +0000)]
removed gl_videosyncavailable variable because on all known platforms it
is always true, and its only purpose was to ghost a menu item

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

14 years agorenamed gl_stencil to vid.stencil
havoc [Mon, 7 Dec 2009 16:00:13 +0000 (16:00 +0000)]
renamed gl_stencil to vid.stencil

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

14 years agochanged VID_InitMode to take a viddef_mode_t structure which contains
havoc [Mon, 7 Dec 2009 15:50:45 +0000 (15:50 +0000)]
changed VID_InitMode to take a viddef_mode_t structure which contains
the desired parameters, and allows it to modify them (previously only
width/height could be modified)

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

14 years agoload fog textures in all cases again
havoc [Mon, 7 Dec 2009 15:35:03 +0000 (15:35 +0000)]
load fog textures in all cases again
load gloss/normalmap based on hardware capabilities, rather than r_glsl
and gl_combine cvars

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

14 years agomdl skin loading is now more memory-efficient (now stores the original
havoc [Mon, 7 Dec 2009 15:27:09 +0000 (15:27 +0000)]
mdl skin loading is now more memory-efficient (now stores the original
pixels and uploads textures on demand - many skins are never used, so
this saves some system memory)
added palette_featureflags[] for use by mdl skin loading
added TEXF_PRECACHE to all texture uploads that did not use it
added skinframe->hasalpha flag to clean up code
removed R_TextureHasAlpha function
r_glsl 1 no longer uploads fog textures
r_glsl 0, gl_combine 0 no longer loads gloss/normalmaps

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

14 years agoscr_loadingscreen_background cvar: when set, show loading screen with previous backgr...
divverent [Mon, 7 Dec 2009 14:48:55 +0000 (14:48 +0000)]
scr_loadingscreen_background cvar: when set, show loading screen with previous background, when not set, show loading screen on black screen

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

14 years agofix a warning (gl_driver is not a pointer)
havoc [Mon, 7 Dec 2009 14:18:15 +0000 (14:18 +0000)]
fix a warning (gl_driver is not a pointer)

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

14 years agoif gridsize is parsed wrong and DP would normally abort when loading the map, instead...
divverent [Sun, 6 Dec 2009 18:51:22 +0000 (18:51 +0000)]
if gridsize is parsed wrong and DP would normally abort when loading the map, instead make it ignore the lightgrid and spit out a warning

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

14 years agoparse gridsize like q3map2 does (less strict)
divverent [Sun, 6 Dec 2009 18:48:16 +0000 (18:48 +0000)]
parse gridsize like q3map2 does (less strict)

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

14 years agowe cannot skip the next 3 vars after encounting a vector - so we instead have to...
divverent [Sun, 6 Dec 2009 17:58:43 +0000 (17:58 +0000)]
we cannot skip the next 3 vars after encounting a vector - so we instead have to filter for names that end with _x, _y or _z. Sucks.

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

14 years agonow autocvars can have default values when the progs are compiled with fteqcc
divverent [Sun, 6 Dec 2009 13:09:55 +0000 (13:09 +0000)]
now autocvars can have default values when the progs are compiled with fteqcc
or a similar compiler:

var float autocvar_foo = 3;
var string autocvar_whatever = "foo";

will create the cvar with value 3, or foo, if it does not exist, and otherwise
take over the value from the cvar into the global.

NOTE: THE var KEYWORD IS NECESSARY HERE! NOT USING IT MEANS THE COMPILER WILL
MERGE WITH CONSTANTS, AND YIELD VERY UNFUNNY RESULTS!

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

14 years agoforgot the downtrace cvar
divverent [Sun, 6 Dec 2009 12:06:16 +0000 (12:06 +0000)]
forgot the downtrace cvar

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

14 years agoturn this into sv_gameplayfix_downtracesupportsongroundflag
divverent [Sat, 5 Dec 2009 20:18:23 +0000 (20:18 +0000)]
turn this into sv_gameplayfix_downtracesupportsongroundflag

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

14 years agofix onground clearing by ANDing it with a downtrace by 1 unit - this does NOT cause...
divverent [Sat, 5 Dec 2009 20:14:22 +0000 (20:14 +0000)]
fix onground clearing by ANDing it with a downtrace by 1 unit - this does NOT cause any doublejump bugs, as it is just for CLEARING the onground flag, and fixes problems with short moves (high netfps)

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

14 years agofix endposnudge
divverent [Sat, 5 Dec 2009 19:04:20 +0000 (19:04 +0000)]
fix endposnudge

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

14 years agoAdd several gl_info_ cvars which holds gl_vendor, gl_driver, gl_platform, extensions...
vortex [Sat, 5 Dec 2009 17:49:50 +0000 (17:49 +0000)]
Add several gl_info_ cvars which holds gl_vendor, gl_driver, gl_platform, extensions found by engine and some other. QC can read them and use. Example of use: locking or restricting certain controls in menu if feature is not supported.

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

14 years agoDP_QC_AUTOCVARS: declare a QC variable float/vector/string autocvar_foo, and it will...
divverent [Sat, 5 Dec 2009 15:33:56 +0000 (15:33 +0000)]
DP_QC_AUTOCVARS: declare a QC variable float/vector/string autocvar_foo, and it will always reflect the cvar "foo" when read

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

14 years agofixed a bug with sv_gameplayfix_nudgeoutofsolid where the player might
havoc [Fri, 4 Dec 2009 16:13:26 +0000 (16:13 +0000)]
fixed a bug with sv_gameplayfix_nudgeoutofsolid where the player might
get put on the opposite side of a brush because of being very near the
plane that should be used for nudging, which caused it not to be
considered as a nudging plane
added some checks to ensure more consistency on trace direction (should
be able to swap start and end without startsolid trouble, at least less)

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

14 years agofix Mem_Free NULL pointer warnings
havoc [Fri, 4 Dec 2009 16:11:14 +0000 (16:11 +0000)]
fix Mem_Free NULL pointer warnings

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

14 years agomake the endpos-in-solid workaround a cvar collision_endposnudge
divverent [Fri, 4 Dec 2009 12:32:45 +0000 (12:32 +0000)]
make the endpos-in-solid workaround a cvar collision_endposnudge

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

14 years agodisable COLLISION_STUPID_TRACE_ENDPOS_IN_SOLID_WORKAROUND because it
havoc [Fri, 4 Dec 2009 06:29:45 +0000 (06:29 +0000)]
disable COLLISION_STUPID_TRACE_ENDPOS_IN_SOLID_WORKAROUND because it
breaks quake (radius damage is not affecting exploboxes if the rocket is
shot at a wall - but does work if shot at the floor, proximity mines in
mission pack 1 don't stick to walls, only floors)

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

14 years agoclean up field offset handling a bit, now uses vec_t instead of float,
havoc [Fri, 4 Dec 2009 05:51:37 +0000 (05:51 +0000)]
clean up field offset handling a bit, now uses vec_t instead of float,
and does not assume anything about the size of it

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

14 years agoremove const qualifiers on Mem_Free calls on r_surfacelist
havoc [Fri, 4 Dec 2009 03:50:55 +0000 (03:50 +0000)]
remove const qualifiers on Mem_Free calls on r_surfacelist

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

14 years agoadd support for a filename parameter on screenshot command
havoc [Wed, 2 Dec 2009 04:21:33 +0000 (04:21 +0000)]
add support for a filename parameter on screenshot command

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

14 years agoadded a few more CHECKGLERROR lines, and the possibility of not having
havoc [Sun, 29 Nov 2009 17:19:08 +0000 (17:19 +0000)]
added a few more CHECKGLERROR lines, and the possibility of not having
qglPolygonStipple

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

14 years agoremoved 1D texture management code, not used by anything
havoc [Sun, 29 Nov 2009 17:05:26 +0000 (17:05 +0000)]
removed 1D texture management code, not used by anything

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

14 years agoadded Mem_Memalign function
havoc [Sun, 29 Nov 2009 11:16:25 +0000 (11:16 +0000)]
added Mem_Memalign function
added Mem_Realloc function

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

14 years agoGAME_BLOODOMNICIDE: disable quake gfx precaches
vortex [Sun, 29 Nov 2009 00:49:51 +0000 (00:49 +0000)]
GAME_BLOODOMNICIDE: disable quake gfx precaches

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

14 years agor_replacemaptexture: no printings for GAME_BLOODOMNICIDE
vortex [Sun, 29 Nov 2009 00:31:15 +0000 (00:31 +0000)]
r_replacemaptexture: no printings for GAME_BLOODOMNICIDE

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

14 years agocompile without IPV6 support by default (-DSUPPORTIPV6 to reenable) for
havoc [Sat, 28 Nov 2009 09:02:11 +0000 (09:02 +0000)]
compile without IPV6 support by default (-DSUPPORTIPV6 to reenable) for
better platform compatibility

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

14 years agomore work on mod_generatelightmaps:
havoc [Fri, 27 Nov 2009 15:31:58 +0000 (15:31 +0000)]
more work on mod_generatelightmaps:
don't accept lights behind a surface, they mess up shading

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

14 years agochanged mod_generatelightmaps_* cvar defaults to better settings
havoc [Fri, 27 Nov 2009 15:18:56 +0000 (15:18 +0000)]
changed mod_generatelightmaps_* cvar defaults to better settings

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

14 years agomore work on mod_generatelightmaps:
havoc [Fri, 27 Nov 2009 15:15:34 +0000 (15:15 +0000)]
more work on mod_generatelightmaps:
now uses svbsp shadow testing instead of traceline, much faster
fixed several bugs in lightmap/lightgrid brightness and tuned parameters
to match realtime lighting as closely as possible

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

14 years agomore work on mod_generatelightmaps:
havoc [Fri, 27 Nov 2009 10:29:15 +0000 (10:29 +0000)]
more work on mod_generatelightmaps:
migrated light sampling code from r_shadow.c to model_shared.c

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

14 years agomore work on mod_generatedlightmaps:
havoc [Fri, 27 Nov 2009 09:21:50 +0000 (09:21 +0000)]
more work on mod_generatedlightmaps:
implemented multi-sample raytraced shadows (SLOW!)

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

14 years agomore work on mod_generatelightmaps:
havoc [Fri, 27 Nov 2009 07:42:13 +0000 (07:42 +0000)]
more work on mod_generatelightmaps:
calculate bent normal for light dir instead of trying to convert sh1
use half-angle shading (soft lighting) instead of hard shading

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

14 years agomore work on mod_generatelightmaps
havoc [Thu, 26 Nov 2009 10:55:15 +0000 (10:55 +0000)]
more work on mod_generatelightmaps

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

14 years agomore work on mod_generatelightmaps
havoc [Tue, 24 Nov 2009 12:23:53 +0000 (12:23 +0000)]
more work on mod_generatelightmaps

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

14 years agomod_generatelightmaps is much closer to usable now
havoc [Tue, 24 Nov 2009 09:48:23 +0000 (09:48 +0000)]
mod_generatelightmaps is much closer to usable now

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

14 years agomore work on mod_generatelightmaps command
havoc [Tue, 24 Nov 2009 06:09:22 +0000 (06:09 +0000)]
more work on mod_generatelightmaps command

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

14 years agofix another typo
divverent [Mon, 23 Nov 2009 07:47:20 +0000 (07:47 +0000)]
fix another typo

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

14 years agofix typo
divverent [Mon, 23 Nov 2009 06:36:45 +0000 (06:36 +0000)]
fix typo

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

14 years agofix sound spatialization of edited sounds
divverent [Mon, 23 Nov 2009 06:36:19 +0000 (06:36 +0000)]
fix sound spatialization of edited sounds

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

14 years agobeginning work on mod_generatelightmaps command
havoc [Sun, 22 Nov 2009 22:57:55 +0000 (22:57 +0000)]
beginning work on mod_generatelightmaps command

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

14 years agoimplemented FTE_CSQC_SKELETONOBJECTS (clientside support)
havoc [Sun, 22 Nov 2009 21:06:10 +0000 (21:06 +0000)]
implemented FTE_CSQC_SKELETONOBJECTS (clientside support)
implemented DP_SKELETONOBJECTS (serverside support)
reworked all tag queries to support animation lerp and skeletonindex
MOVE_HITMODEL / SOLID_BSP now support animation lerp and skeletonindex
server qc now has identical animation fields to that of csqc (engine
networking still only networks .frame however)

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

14 years agopatches: experimental mode that allows setting collision stride to -1 to avoid ANY...
divverent [Sat, 21 Nov 2009 15:03:21 +0000 (15:03 +0000)]
patches: experimental mode that allows setting collision stride to -1 to avoid ANY bounding box tests on curves. Slows down things a lot, merely for debugging to see whether the bbox test may cause any harm.

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

14 years agoreworked decal system to limit the number of decal splats active at once
havoc [Fri, 20 Nov 2009 05:43:07 +0000 (05:43 +0000)]
reworked decal system to limit the number of decal splats active at once
rather than simply allowing things to timeout, this does not directly
limit the number of triangles (because decal events on models may
produce hundreds or thousands of triangles) but it does reduce
worst-case performance issues
implemented compacting code for the new decal system, so there are no
wasted triangles when decals expire

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

14 years agofix crash on Nexuiz demos/demo2 with new decal system enabled - now
havoc [Fri, 20 Nov 2009 02:04:59 +0000 (02:04 +0000)]
fix crash on Nexuiz demos/demo2 with new decal system enabled - now
defers new decal splats until the rendering code

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

14 years agofix typo in lerpfrac fix
havoc [Tue, 17 Nov 2009 22:48:08 +0000 (22:48 +0000)]
fix typo in lerpfrac fix

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

14 years agoadded timedemo_screenshotframelist cvar which lets you take screenshots
havoc [Tue, 17 Nov 2009 19:04:26 +0000 (19:04 +0000)]
added timedemo_screenshotframelist cvar which lets you take screenshots
on specific frames during a timedemo, for image quality comparisons

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

14 years agoimplemented special showfps display of timedemo statistics while running
havoc [Tue, 17 Nov 2009 18:28:44 +0000 (18:28 +0000)]
implemented special showfps display of timedemo statistics while running
a timedemo (or the -benchmark option)

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

14 years agofixed a bug with CSQC compatibility - .lerpfrac was wrong, it should
havoc [Tue, 17 Nov 2009 14:49:48 +0000 (14:49 +0000)]
fixed a bug with CSQC compatibility - .lerpfrac was wrong, it should
control blend strength of .frame2 but it controlled .frame instead,
which meant that mods with .lerpfrac at the default (0) value would
always have to set .frame2 as well as .frame to the same frame, which
was not the intention of the spec

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

14 years agofix typo in extresponse handling
divverent [Tue, 17 Nov 2009 14:31:29 +0000 (14:31 +0000)]
fix typo in extresponse handling

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

14 years agofirst preliminary version of DP_SND_SETPARAMS: let sound() calls with sample set...
divverent [Sun, 15 Nov 2009 19:31:15 +0000 (19:31 +0000)]
first preliminary version of DP_SND_SETPARAMS: let sound() calls with sample set to "" modify an existing sound on the given entity and channel

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

14 years agoextresponse: make svqc receive only those on the server socket, and csqc/menuqc only...
divverent [Sat, 14 Nov 2009 23:39:26 +0000 (23:39 +0000)]
extresponse: make svqc receive only those on the server socket, and csqc/menuqc only receive those on the client socket

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

14 years agoODE: add two missing symbols
divverent [Sat, 14 Nov 2009 23:08:37 +0000 (23:08 +0000)]
ODE: add two missing symbols

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

14 years agoextresponse: use double quotes, not single quotes, for the IP (makes ALL tokenizers...
divverent [Sat, 14 Nov 2009 22:58:44 +0000 (22:58 +0000)]
extresponse: use double quotes, not single quotes, for the IP (makes ALL tokenizers happy)

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

14 years agoput extresponse in server vm too
divverent [Sat, 14 Nov 2009 22:40:32 +0000 (22:40 +0000)]
put extresponse in server vm too

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

14 years agoexperimental feature to load the alpha channel of foo.jpg from foo_alpha.jpg (JPEG...
divverent [Sat, 14 Nov 2009 21:39:35 +0000 (21:39 +0000)]
experimental feature to load the alpha channel of foo.jpg from foo_alpha.jpg (JPEG specific) to allow transparency even when using JPEG

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

14 years agomake csqc render entities persistent (except the temp ones created by a
havoc [Sat, 14 Nov 2009 19:30:37 +0000 (19:30 +0000)]
make csqc render entities persistent (except the temp ones created by a
builtin), this enables r_cullentities_trace again on most csqc entities,
and allows decals to stick to csqc entities

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

14 years agono longer checking texture_t->currentalpha < 1 in
havoc [Sat, 14 Nov 2009 19:28:56 +0000 (19:28 +0000)]
no longer checking texture_t->currentalpha < 1 in
R_DecalSystem_SplatEntity because it is falsely (?) failing to apply
decals to player models in Nexuiz
added cl_decals_newsystem_intensitymultiplier cvar (default 2) to make
decals more visible

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

14 years agoincrease some limits in DP_SMALLMEMORY
havoc [Sat, 14 Nov 2009 15:19:08 +0000 (15:19 +0000)]
increase some limits in DP_SMALLMEMORY

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

14 years agoalways stream decode ogg, this reduces Nexuiz sound memory usage even
havoc [Sat, 14 Nov 2009 14:06:50 +0000 (14:06 +0000)]
always stream decode ogg, this reduces Nexuiz sound memory usage even
more

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

14 years agoreduced memory usage of sound in Nexuiz by about 70MB by using shorter
havoc [Sat, 14 Nov 2009 02:08:16 +0000 (02:08 +0000)]
reduced memory usage of sound in Nexuiz by about 70MB by using shorter
ogg/modplug buffers

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

14 years agoautomatically load/unload cachepic_t textures from disk on demand, this
havoc [Sat, 14 Nov 2009 01:09:09 +0000 (01:09 +0000)]
automatically load/unload cachepic_t textures from disk on demand, this
drops Nexuiz memory usage (and texture memory usage) by a huge amount

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

14 years agoincrease MAX_CACHED_PICS in DP_SMALLMEMORY case back to the normal
havoc [Fri, 13 Nov 2009 22:01:28 +0000 (22:01 +0000)]
increase MAX_CACHED_PICS in DP_SMALLMEMORY case back to the normal
level, it simply can't be reduced

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

14 years agoavoid a memory allocation on each directly uploaded texture
havoc [Fri, 13 Nov 2009 21:47:36 +0000 (21:47 +0000)]
avoid a memory allocation on each directly uploaded texture
resize deferred upload textures before storage if possible

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

14 years agorewrote clump allocation system, added an experimental global clump
havoc [Fri, 13 Nov 2009 20:09:49 +0000 (20:09 +0000)]
rewrote clump allocation system, added an experimental global clump
(note: clumping is still not on by default, and probably never will be)
reworked sentinel code to always use the MEMPARANOIA approach
(address-dependent sentinels)

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

14 years agodon't call Mem_CheckSentinelsGlobal in image loaders (wastes time)
havoc [Fri, 13 Nov 2009 19:26:44 +0000 (19:26 +0000)]
don't call Mem_CheckSentinelsGlobal in image loaders (wastes time)
call Mem_CheckSentinelsGlobal every frame if developer_memorydebug cvar
is on (or MEMPARANOIA is on)

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

14 years agofix two typos in last commit
havoc [Fri, 13 Nov 2009 18:46:34 +0000 (18:46 +0000)]
fix two typos in last commit

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

14 years agoseparate handling of num_pvsclusterbytes in ViewCache code
havoc [Fri, 13 Nov 2009 18:45:54 +0000 (18:45 +0000)]
separate handling of num_pvsclusterbytes in ViewCache code

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

14 years agobump a few limits in DP_SMALLMEMORY (cachedpics was too low for even
havoc [Fri, 13 Nov 2009 11:14:41 +0000 (11:14 +0000)]
bump a few limits in DP_SMALLMEMORY (cachedpics was too low for even
Quake...)

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

14 years agomove R_Main_ResizeViewCache call to fix a crash
havoc [Thu, 12 Nov 2009 14:00:48 +0000 (14:00 +0000)]
move R_Main_ResizeViewCache call to fix a crash

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

14 years agono longer uses trace culling on csqc entities and other temp entities,
havoc [Thu, 12 Nov 2009 13:01:02 +0000 (13:01 +0000)]
no longer uses trace culling on csqc entities and other temp entities,
because they flicker too much

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

14 years agoalways VIEWCACHEDYNAMIC
havoc [Thu, 12 Nov 2009 13:00:41 +0000 (13:00 +0000)]
always VIEWCACHEDYNAMIC

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

14 years agoresize view cache each frame instead of at newmap
havoc [Thu, 12 Nov 2009 12:58:14 +0000 (12:58 +0000)]
resize view cache each frame instead of at newmap

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

14 years agofix crash with predicted player locations
havoc [Thu, 12 Nov 2009 12:44:23 +0000 (12:44 +0000)]
fix crash with predicted player locations

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

14 years agofix bug with VIEWCACHEDYNAMIC
havoc [Thu, 12 Nov 2009 10:44:33 +0000 (10:44 +0000)]
fix bug with VIEWCACHEDYNAMIC

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

14 years agodisable dynamic viewcache until bugs are fixed
havoc [Thu, 12 Nov 2009 10:36:34 +0000 (10:36 +0000)]
disable dynamic viewcache until bugs are fixed

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

14 years agofix crash if CVAR_HASHSIZE was set to a value below 65536
havoc [Thu, 12 Nov 2009 10:30:20 +0000 (10:30 +0000)]
fix crash if CVAR_HASHSIZE was set to a value below 65536

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

14 years agoset the isaabb/hasaabbplanes fields on box brushes
havoc [Wed, 11 Nov 2009 22:55:40 +0000 (22:55 +0000)]
set the isaabb/hasaabbplanes fields on box brushes

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

14 years agoreduce gl_rmain size a bit
havoc [Wed, 11 Nov 2009 19:54:45 +0000 (19:54 +0000)]
reduce gl_rmain size a bit

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

14 years agorename R_MAX_OCCLUSION_QUERIES to MAX_OCCLUSION_QUERIES and move it to
havoc [Wed, 11 Nov 2009 16:40:26 +0000 (16:40 +0000)]
rename R_MAX_OCCLUSION_QUERIES to MAX_OCCLUSION_QUERIES and move it to
quakedef.h

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

14 years agomigrated a large number of #define MAX values to quakedef.h and added a
havoc [Wed, 11 Nov 2009 16:04:42 +0000 (16:04 +0000)]
migrated a large number of #define MAX values to quakedef.h and added a
#ifdef DP_SMALLMEMORY case which drops darkplaces-sdl from 42MB to 24MB
of reserved space (according to size command)

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

14 years agomore work on the unfinished OBJ loading
havoc [Wed, 11 Nov 2009 14:09:34 +0000 (14:09 +0000)]
more work on the unfinished OBJ loading

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

14 years agosome optimizations to model decals
havoc [Wed, 11 Nov 2009 14:09:08 +0000 (14:09 +0000)]
some optimizations to model decals

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

14 years agobetter to use NET_MAXMESSAGE than 65536 for download buffering
havoc [Wed, 11 Nov 2009 14:08:41 +0000 (14:08 +0000)]
better to use NET_MAXMESSAGE than 65536 for download buffering

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

14 years agocomments
havoc [Wed, 11 Nov 2009 14:08:17 +0000 (14:08 +0000)]
comments

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

14 years agoimproving MEMCLUMP handling
havoc [Wed, 11 Nov 2009 13:25:58 +0000 (13:25 +0000)]
improving MEMCLUMP handling

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

14 years agofix typo
divverent [Mon, 9 Nov 2009 08:34:31 +0000 (08:34 +0000)]
fix typo

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

14 years agocorrect a typo in the ogg cdtracks installation instructions
havoc [Sun, 8 Nov 2009 22:04:38 +0000 (22:04 +0000)]
correct a typo in the ogg cdtracks installation instructions

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