]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agofix black fog outline bug on quake sprites
havoc [Sat, 5 Jan 2008 23:15:32 +0000 (23:15 +0000)]
fix black fog outline bug on quake sprites

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

16 years agoAdd CSQC rendering support to the menu (uses the same interface as the CSQC VM).
black [Sat, 5 Jan 2008 22:46:48 +0000 (22:46 +0000)]
Add CSQC rendering support to the menu (uses the same interface as the CSQC VM).
Move temp entities to the renderer code (because only temporary render entities are needed).
Rework the polygon code to support multiple VMs.
Credits and thanks to res2k (and me ;)).

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

16 years agorate limit the old quake protocols by frequency
havoc [Sat, 5 Jan 2008 22:33:58 +0000 (22:33 +0000)]
rate limit the old quake protocols by frequency
raised packet size limit on DP1-4 protocols to what they were in those
old versions of the engine (since they can not handle packet size
limiting of any kind)

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

16 years agocorrected a buffer size
havoc [Sat, 5 Jan 2008 22:32:36 +0000 (22:32 +0000)]
corrected a buffer size

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

16 years agoadded an optimization note (should be tracking number of active gecko
havoc [Sat, 5 Jan 2008 22:32:22 +0000 (22:32 +0000)]
added an optimization note (should be tracking number of active gecko
instances, not always iterating to max)

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

16 years agothe -profilegameonly option now stops profiling in CL_Disconnect to give
havoc [Sat, 5 Jan 2008 22:31:55 +0000 (22:31 +0000)]
the -profilegameonly option now stops profiling in CL_Disconnect to give
better results (especially if playing with it on, rather than just
profiling timedemos)
improved handling of cl.num_dlights

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

16 years agosignificant cleanup of GLSL setup code
havoc [Sat, 5 Jan 2008 22:28:55 +0000 (22:28 +0000)]
significant cleanup of GLSL setup code

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

16 years agoGLSL code now prints the number of lines of leading text for warnings as
havoc [Sat, 5 Jan 2008 22:25:08 +0000 (22:25 +0000)]
GLSL code now prints the number of lines of leading text for warnings as
well as error messages (making warnings easier to fix)

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

16 years agoadded two missing CL_SignonReply calls in qw protocol parsing (this
havoc [Sat, 5 Jan 2008 22:23:27 +0000 (22:23 +0000)]
added two missing CL_SignonReply calls in qw protocol parsing (this
fixes -profilegameonly on QW games)

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

16 years agoload rtlights file sooner in map change process, to avoid it showing up
havoc [Sat, 5 Jan 2008 22:22:32 +0000 (22:22 +0000)]
load rtlights file sooner in map change process, to avoid it showing up
in -profilegameonly

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

16 years agokeep track of number of active explosions rather than scanning up to
havoc [Sat, 5 Jan 2008 05:37:43 +0000 (05:37 +0000)]
keep track of number of active explosions rather than scanning up to
MAX_EXPLOSIONS every frame

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

16 years agoRemoved a bunch of warnings
molivier [Fri, 4 Jan 2008 23:20:54 +0000 (23:20 +0000)]
Removed a bunch of warnings

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

16 years agoMoved initializations of the pixel_size and attributes fields in the TGA header ealie...
molivier [Fri, 4 Jan 2008 23:13:27 +0000 (23:13 +0000)]
Moved initializations of the pixel_size and attributes fields in the TGA header ealier, so they would be properly set before the call to PrintTargaHeader()

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

16 years agoRefactor the code to make r_view and r_viewcache members of r_refdef,
black [Fri, 4 Jan 2008 22:15:36 +0000 (22:15 +0000)]
Refactor the code to make r_view and r_viewcache members of r_refdef,
Remove an unused variable from CL_VM_InputEvent.

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

16 years agoChanging passing of key event ASCII codes to CSQC to use an additional function argum...
res [Fri, 4 Jan 2008 18:06:31 +0000 (18:06 +0000)]
Changing passing of key event ASCII codes to CSQC to use an additional function argument for CSQC_InputEvent instead of a global.

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

16 years agoMade gecko bindings a bit more chatty in developer mode.
res [Fri, 4 Jan 2008 17:45:53 +0000 (17:45 +0000)]
Made gecko bindings a bit more chatty in developer mode.

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

16 years agomake keys line up in keys.c and key.h for easier verifying
divverent [Fri, 4 Jan 2008 12:35:35 +0000 (12:35 +0000)]
make keys line up in keys.c and key.h for easier verifying

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

16 years agoProvide 'ascii' key input to CSQC.
res [Thu, 3 Jan 2008 17:54:30 +0000 (17:54 +0000)]
Provide 'ascii' key input to CSQC.

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

16 years agoFix crash in MD3 loading when no animscenes are loaded
res [Thu, 3 Jan 2008 17:52:28 +0000 (17:52 +0000)]
Fix crash in MD3 loading when no animscenes are loaded

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

16 years agobefore calling Mod_CanSeeBox_Trace or TraceLineOfSight, check if the model actually...
divverent [Wed, 2 Jan 2008 13:48:57 +0000 (13:48 +0000)]
before calling Mod_CanSeeBox_Trace or TraceLineOfSight, check if the model actually supports them (prevents crash with missing worldmodel)

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

16 years agofix bug in saveconfig that caused config to get saved to weird random file names...
divverent [Wed, 2 Jan 2008 09:38:35 +0000 (09:38 +0000)]
fix bug in saveconfig that caused config to get saved to weird random file names on quit

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

16 years agoMade CSQC_AddRenderEdict compute the tag matrix if a tag is set.
res [Wed, 2 Jan 2008 01:08:11 +0000 (01:08 +0000)]
Made CSQC_AddRenderEdict compute the tag matrix if a tag is set.

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

16 years agoFixed flawed comparison in VM_CL_gettagindex that always reported the first precached...
res [Wed, 2 Jan 2008 01:03:41 +0000 (01:03 +0000)]
Fixed flawed comparison in VM_CL_gettagindex that always reported the first precached client model as not precached.

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

16 years agoFixed crash in CL_GetTagMatrix when no 'scale' entity field is present.
res [Wed, 2 Jan 2008 00:58:53 +0000 (00:58 +0000)]
Fixed crash in CL_GetTagMatrix when no 'scale' entity field is present.

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

16 years agoupdate of the Dev-C++ project
divverent [Tue, 1 Jan 2008 21:42:44 +0000 (21:42 +0000)]
update of the Dev-C++ project

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

16 years agoNexuiz: play intro video on startup by QC now
divverent [Tue, 1 Jan 2008 15:05:37 +0000 (15:05 +0000)]
Nexuiz: play intro video on startup by QC now

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

16 years agoadd cvar prvm_backtraceforwarning
divverent [Tue, 1 Jan 2008 14:19:44 +0000 (14:19 +0000)]
add cvar prvm_backtraceforwarning

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

17 years agoremoved #include of quakedef.h as it doesn't seem necessary
havoc [Mon, 31 Dec 2007 16:38:55 +0000 (16:38 +0000)]
removed #include of quakedef.h as it doesn't seem necessary

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

17 years agooptimized PolygonF_Divide/PolygonD_Divide functions, now performing only
havoc [Mon, 31 Dec 2007 16:36:14 +0000 (16:36 +0000)]
optimized PolygonF_Divide/PolygonD_Divide functions, now performing only
one dot-product per iteration rather than two
added PolygonF_Clip/PolygonD_Clip functions which keep only the front
side

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

17 years agoMade CSQC VM initialization prefer the program downloaded from the server over the...
res [Mon, 31 Dec 2007 13:49:54 +0000 (13:49 +0000)]
Made CSQC VM initialization prefer the program downloaded from the server over the local version.

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

17 years agoadd a new key dest key_menu_grabbed that behaves like key_menu, but also passes funct...
divverent [Mon, 31 Dec 2007 13:37:32 +0000 (13:37 +0000)]
add a new key dest key_menu_grabbed that behaves like key_menu, but also passes function keys to the menu; useful for key bind editors

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

17 years agoRevert r7881 since it's broken in it's current shape.
res [Sun, 30 Dec 2007 16:48:15 +0000 (16:48 +0000)]
Revert r7881 since it's broken in it's current shape.

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

17 years agoAdd CSQC ReadEntity to mirror SVQC's WriteEntity.
res [Sun, 30 Dec 2007 15:19:26 +0000 (15:19 +0000)]
Add CSQC ReadEntity to mirror SVQC's WriteEntity.

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

17 years agofix Con_Print that should have been Con_Printf
havoc [Fri, 28 Dec 2007 23:04:18 +0000 (23:04 +0000)]
fix Con_Print that should have been Con_Printf

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

17 years agomissing %s
divverent [Fri, 28 Dec 2007 19:25:12 +0000 (19:25 +0000)]
missing %s

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

17 years agosprite tracking distance fix; update inverse view matrix before rendering a scene...
divverent [Fri, 28 Dec 2007 17:39:13 +0000 (17:39 +0000)]
sprite tracking distance fix; update inverse view matrix before rendering a scene, as preceding code may have changed it

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

17 years agomake SPR_LABEL use neither depth test nor fog; make R_Draw_Sprite not fog nodepthtest...
divverent [Fri, 28 Dec 2007 16:36:48 +0000 (16:36 +0000)]
make SPR_LABEL use neither depth test nor fog; make R_Draw_Sprite not fog nodepthtest sprites at all because they can be treated as HUD items

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

17 years agooops, missed a "const"
divverent [Fri, 28 Dec 2007 16:22:03 +0000 (16:22 +0000)]
oops, missed a "const"

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

17 years agoextension to writeconfig command: also take a file name
divverent [Fri, 28 Dec 2007 15:12:27 +0000 (15:12 +0000)]
extension to writeconfig command: also take a file name

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

17 years agogecko:
res [Fri, 28 Dec 2007 12:55:02 +0000 (12:55 +0000)]
gecko:
- print gecko error code when embedding object init fails
- print message when browser object creation fails
- crash fix in CL_Gecko_NavigateToURI

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

17 years agocsqc setmodel: print a warning when the given model was not precached
res [Thu, 27 Dec 2007 18:55:59 +0000 (18:55 +0000)]
csqc setmodel: print a warning when the given model was not precached

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

17 years agooops... could not have optimized this, putting back old code (fixes fog too bright...
divverent [Thu, 27 Dec 2007 18:43:42 +0000 (18:43 +0000)]
oops... could not have optimized this, putting back old code (fixes fog too bright bug at r_glsl 0, but contrastboost being set)

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

17 years agowrap skins >= numskins to 0 in Mod_Alias_GetTagIndexForName (consistent to how textur...
divverent [Thu, 27 Dec 2007 08:34:03 +0000 (08:34 +0000)]
wrap skins >= numskins to 0 in Mod_Alias_GetTagIndexForName (consistent to how textures are chosen for an invlaid skin); prevents "big gun" bug in Nexuiz

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

17 years agofix "warping" bug MrBougo found in the protocol (namely, values near +4096 causing...
divverent [Tue, 25 Dec 2007 18:02:44 +0000 (18:02 +0000)]
fix "warping" bug MrBougo found in the protocol (namely, values near +4096 causing an integer overflow when errorneously sent as 13.3bit fixed points)

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

17 years agorevert the vid_grabkeyboard 0 support in fullscreen, due to
havoc [Tue, 25 Dec 2007 10:54:29 +0000 (10:54 +0000)]
revert the vid_grabkeyboard 0 support in fullscreen, due to
CWOverrideRedirect the window is never focused and thus completely
unusable with this approach, maybe a different method of initializing
fullscreen will be implemented in the future

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

17 years agosome minor cleanup
havoc [Tue, 25 Dec 2007 10:43:38 +0000 (10:43 +0000)]
some minor cleanup

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

17 years agovid_grabkeyboard 0 now works with fullscreen
havoc [Tue, 25 Dec 2007 10:00:31 +0000 (10:00 +0000)]
vid_grabkeyboard 0 now works with fullscreen

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

17 years agofog table now at developer >= 100
divverent [Tue, 25 Dec 2007 08:58:02 +0000 (08:58 +0000)]
fog table now at developer >= 100

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

17 years agofix t->lightmapcolor on fullbright surfaces
havoc [Tue, 25 Dec 2007 08:41:18 +0000 (08:41 +0000)]
fix t->lightmapcolor on fullbright surfaces

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

17 years agodon't call SV_CheckWaterTransition on MOVETYPE_STEP entities unless the
havoc [Tue, 25 Dec 2007 08:36:36 +0000 (08:36 +0000)]
don't call SV_CheckWaterTransition on MOVETYPE_STEP entities unless the
entity moves (or a pusher moves through the area)

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

17 years agoimplemented PointSuperContents model function as a lower-overhead
havoc [Tue, 25 Dec 2007 06:10:31 +0000 (06:10 +0000)]
implemented PointSuperContents model function as a lower-overhead
alternative to TraceBox, and this also makes profile reports more clear

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

17 years agoWorld_EntitiesInBox now takes const mins/maxs
havoc [Tue, 25 Dec 2007 06:09:39 +0000 (06:09 +0000)]
World_EntitiesInBox now takes const mins/maxs

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

17 years agoone more cl_ignoremousemove change to cl_ignoremousemoves
havoc [Tue, 25 Dec 2007 06:09:02 +0000 (06:09 +0000)]
one more cl_ignoremousemove change to cl_ignoremousemoves

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

17 years agochanged cl_ignoremousemove from a qboolean to an int named
havoc [Tue, 25 Dec 2007 06:08:32 +0000 (06:08 +0000)]
changed cl_ignoremousemove from a qboolean to an int named
cl_ignoremousemoves which is set to 2 whenever the mouse grab state
changes, the one-frame ignore was not working

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

17 years agocl_prydoncursor traces now trace against the model bounding box before
havoc [Tue, 25 Dec 2007 02:48:38 +0000 (02:48 +0000)]
cl_prydoncursor traces now trace against the model bounding box before
testing the geometry itself, this gives a substantial speed increase in
maps with lots of monsters

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

17 years agoconsistently move scenebrightness after contrastboost
divverent [Mon, 24 Dec 2007 05:09:55 +0000 (05:09 +0000)]
consistently move scenebrightness after contrastboost

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

17 years agothe formula for fog was right... note that it uses the unsimplified formula, as preca...
divverent [Sun, 23 Dec 2007 21:17:50 +0000 (21:17 +0000)]
the formula for fog was right... note that it uses the unsimplified formula, as precalculating stuff isn't needed here

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

17 years agofix fog help text
divverent [Sun, 23 Dec 2007 20:54:18 +0000 (20:54 +0000)]
fix fog help text

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

17 years agofix fog after r_restart
divverent [Sun, 23 Dec 2007 20:53:29 +0000 (20:53 +0000)]
fix fog after r_restart

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

17 years agoadd default for fog_end too
divverent [Sun, 23 Dec 2007 20:33:44 +0000 (20:33 +0000)]
add default for fog_end too

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

17 years agosorry, that one was wrong
divverent [Sun, 23 Dec 2007 18:14:19 +0000 (18:14 +0000)]
sorry, that one was wrong

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

17 years agofix wrong conversion factor of knots (Wikipedia has another opinion than feh on this)
divverent [Sun, 23 Dec 2007 17:57:02 +0000 (17:57 +0000)]
fix wrong conversion factor of knots (Wikipedia has another opinion than feh on this)

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

17 years agofix remaining fog bug with fixed function, r_view.colorscale != 0
divverent [Sun, 23 Dec 2007 17:08:21 +0000 (17:08 +0000)]
fix remaining fog bug with fixed function, r_view.colorscale != 0

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

17 years agoimproved NaN velocity/NaN origin warnings, they now print the entity
havoc [Sun, 23 Dec 2007 15:05:09 +0000 (15:05 +0000)]
improved NaN velocity/NaN origin warnings, they now print the entity
number

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

17 years agocolormod values above 1 1 1 should work properly with r_glsl now
havoc [Sun, 23 Dec 2007 14:57:52 +0000 (14:57 +0000)]
colormod values above 1 1 1 should work properly with r_glsl now
some optimizations and a major audit of the GLSL shader with respect to
colormod and fog handling
fixed nearly all bad interactions between fog and r_hdr 1 mode

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

17 years agoupdate movement_velocity in demos too
divverent [Sun, 23 Dec 2007 11:05:54 +0000 (11:05 +0000)]
update movement_velocity in demos too

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

17 years agoforgot to add fog_start to the fog range... now it behaves right
divverent [Sat, 22 Dec 2007 17:16:34 +0000 (17:16 +0000)]
forgot to add fog_start to the fog range... now it behaves right

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

17 years agooops, forgot this file
divverent [Sat, 22 Dec 2007 17:05:23 +0000 (17:05 +0000)]
oops, forgot this file

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

17 years agoforgot to compare fog mask table range, too
divverent [Sat, 22 Dec 2007 16:55:05 +0000 (16:55 +0000)]
forgot to compare fog mask table range, too

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

17 years agoimplemented fog texture building support for the new fog start and alpha
havoc [Sat, 22 Dec 2007 15:21:50 +0000 (15:21 +0000)]
implemented fog texture building support for the new fog start and alpha
parameters

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

17 years agofix fog_alpha checking bug that makes sky disappear in the wrong situation
havoc [Sat, 22 Dec 2007 15:17:25 +0000 (15:17 +0000)]
fix fog_alpha checking bug that makes sky disappear in the wrong situation

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

17 years agofirst part of fog changes: no longer use a complex glsl equation; modify the table...
divverent [Sat, 22 Dec 2007 13:50:39 +0000 (13:50 +0000)]
first part of fog changes: no longer use a complex glsl equation; modify the table instead; replace fog_end by fog_alpha

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

17 years agoqups -> qu/s, in Nexuiz in/s
divverent [Sat, 22 Dec 2007 10:40:20 +0000 (10:40 +0000)]
qups -> qu/s, in Nexuiz in/s

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

17 years agoshowspeed cvar ;)
divverent [Sat, 22 Dec 2007 10:17:43 +0000 (10:17 +0000)]
showspeed cvar ;)

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

17 years agothis may fix the word wrap issue, hopefully
divverent [Sat, 22 Dec 2007 09:34:52 +0000 (09:34 +0000)]
this may fix the word wrap issue, hopefully

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

17 years agofix sprintf for savegame comment to not overflow on long map titles
havoc [Sat, 22 Dec 2007 03:05:34 +0000 (03:05 +0000)]
fix sprintf for savegame comment to not overflow on long map titles

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

17 years agoonly CDAudio_SysStop if a CD was actually playing (fixes error message spam)
divverent [Fri, 21 Dec 2007 20:17:01 +0000 (20:17 +0000)]
only CDAudio_SysStop if a CD was actually playing (fixes error message spam)

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

17 years agomake precache_sound return the sound index (for using WriteStuff to send a sound...
divverent [Fri, 21 Dec 2007 14:00:52 +0000 (14:00 +0000)]
make precache_sound return the sound index (for using WriteStuff to send a sound just to some clients)

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

17 years agomove R_UpdateAllTextureInfo call back to DrawLight
havoc [Fri, 21 Dec 2007 11:05:56 +0000 (11:05 +0000)]
move R_UpdateAllTextureInfo call back to DrawLight

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

17 years agofix bug in RSurf_ActiveWorldEntity (now sets basepolygonoffset fields)
havoc [Fri, 21 Dec 2007 11:05:34 +0000 (11:05 +0000)]
fix bug in RSurf_ActiveWorldEntity (now sets basepolygonoffset fields)
added a fixme note

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

17 years agoa fs_offset_t is a fs_offset_t is a fs_offset_t is a fs_offset_t and not a long
divverent [Thu, 20 Dec 2007 10:16:04 +0000 (10:16 +0000)]
a fs_offset_t is a fs_offset_t is a fs_offset_t is a fs_offset_t and not a long

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

17 years agotab completion for arbitrary commands (works, but interface may be subject to change...
divverent [Thu, 20 Dec 2007 10:12:27 +0000 (10:12 +0000)]
tab completion for arbitrary commands (works, but interface may be subject to change, currently uses a cvar con_completion_playermodel "models/player/*.zym models/player/*.md3")

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

17 years agoreenabled R_UpdateAllTextureInfo calls when lighting the world model
havoc [Thu, 20 Dec 2007 09:49:37 +0000 (09:49 +0000)]
reenabled R_UpdateAllTextureInfo calls when lighting the world model
(necessary because of submodel entities sharing texture_t's with the
world model)
some tweaks and cleanup of R_UpdateAllTextureInfo calls
reworked texture_t->currentpolygonoffset stuff

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

17 years agominor cleanup of timedemo code
havoc [Thu, 20 Dec 2007 09:35:59 +0000 (09:35 +0000)]
minor cleanup of timedemo code

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

17 years agofix miscounting of timedemo frames on cold/warm runs in the same session
havoc [Thu, 20 Dec 2007 07:32:29 +0000 (07:32 +0000)]
fix miscounting of timedemo frames on cold/warm runs in the same session

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

17 years agofix a crash introduced in my BGRA commit (was providing no palette for a
havoc [Wed, 19 Dec 2007 22:00:38 +0000 (22:00 +0000)]
fix a crash introduced in my BGRA commit (was providing no palette for a
texture)

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

17 years agoMarked some gl_draw.c tables as "static const"
res [Tue, 18 Dec 2007 23:34:54 +0000 (23:34 +0000)]
Marked some gl_draw.c tables as "static const"

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

17 years agoMarked some sky tables as "static const"
res [Tue, 18 Dec 2007 23:31:38 +0000 (23:31 +0000)]
Marked some sky tables as "static const"

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

17 years agoadd a CRC_Block_CaseInsensitive that tolowers its input for use by hash functions...
divverent [Tue, 18 Dec 2007 21:08:08 +0000 (21:08 +0000)]
add a CRC_Block_CaseInsensitive that tolowers its input for use by hash functions for case insensitive hash tables; make the shader system use it (fixes accidentally introduced case sensitivity by res2k)

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

17 years agoprint ""gettagindex(entity #%i): tag \"%s\" not found" console spam only if developer...
divverent [Tue, 18 Dec 2007 13:47:31 +0000 (13:47 +0000)]
print ""gettagindex(entity #%i): tag \"%s\" not found" console spam only if developer >= 100

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

17 years agomoved entity_render_t modellight_* field updates from renderer to client
havoc [Tue, 18 Dec 2007 09:32:24 +0000 (09:32 +0000)]
moved entity_render_t modellight_* field updates from renderer to client
merged entity_render_t colormap_pantscolor and shirtcolor updates to a
single function called CL_SetEntityColormapColors
other little cleanups

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

17 years agomoved Mod_LoadQ3Shaders() call from CL_BeginDownloads to Mod_LoadModel
havoc [Tue, 18 Dec 2007 08:45:02 +0000 (08:45 +0000)]
moved Mod_LoadQ3Shaders() call from CL_BeginDownloads to Mod_LoadModel
(but only when isworldmodel is true, which indicates a level change)
this fixes a bug where downloaded maps have missing shaders on the first
load, and also fixes a crash introduced by res on dedicated servers

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

17 years agoGecko: set a profile path
res [Tue, 18 Dec 2007 02:41:46 +0000 (02:41 +0000)]
Gecko: set a profile path

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

17 years agoAdd full support for csqc's sensitivityscale (no clamping yet, so you can actually...
black [Mon, 17 Dec 2007 21:50:03 +0000 (21:50 +0000)]
Add full support for csqc's sensitivityscale (no clamping yet, so you can actually lock the view by setting it to 0).
Minor cleanups in the csqc (very very minor).
Change Key_Event a bit (and probably break it again :()

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

17 years agoremove basealpha checks in DrawQ_String_Font
havoc [Mon, 17 Dec 2007 08:54:54 +0000 (08:54 +0000)]
remove basealpha checks in DrawQ_String_Font

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

17 years agodon't R_UpdateAllTextureInfo when doing shadows or lighting on world,
havoc [Mon, 17 Dec 2007 08:51:45 +0000 (08:51 +0000)]
don't R_UpdateAllTextureInfo when doing shadows or lighting on world,
because its texture info only really needs to be updated once per frame,
it doesn't change because it is not instanced and can not have alternate
textures or colormod

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

17 years agosplit up DrawQ_String_Font_UntilX in DrawQ_TextWidth_Font_TrackColors and DrawQ_Strin...
divverent [Mon, 17 Dec 2007 08:21:08 +0000 (08:21 +0000)]
split up DrawQ_String_Font_UntilX in DrawQ_TextWidth_Font_TrackColors and DrawQ_String_Font; the latter no longer needs to check if the text is too long, and the former no longer needs alpha checks (to be removed later perhaps)

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

17 years agoredesigned box clipping code in R_Shadow_ScissorForBBox, now clips edges
havoc [Mon, 17 Dec 2007 06:24:19 +0000 (06:24 +0000)]
redesigned box clipping code in R_Shadow_ScissorForBBox, now clips edges
against the nearplane rather than doing brush building (too slow)

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

17 years agofix two warnings
havoc [Mon, 17 Dec 2007 03:59:35 +0000 (03:59 +0000)]
fix two warnings

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

17 years agouse strlcpy() instead of strcpy()
res [Mon, 17 Dec 2007 03:58:51 +0000 (03:58 +0000)]
use strlcpy() instead of strcpy()

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