]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
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

17 years agoMove Mem_strdup into zone.c
res [Mon, 17 Dec 2007 03:37:43 +0000 (03:37 +0000)]
Move Mem_strdup into zone.c

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

17 years agoDynamically allocate Q3 shader texture frames.
res [Mon, 17 Dec 2007 03:34:31 +0000 (03:34 +0000)]
Dynamically allocate Q3 shader texture frames.

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

17 years agoDynamically allocate Q3 shader texture frames.
res [Mon, 17 Dec 2007 03:04:48 +0000 (03:04 +0000)]
Dynamically allocate Q3 shader texture frames.

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

17 years agoFixed user font initialization writing beyond fonts array bounds.
res [Mon, 17 Dec 2007 02:41:34 +0000 (02:41 +0000)]
Fixed user font initialization writing beyond fonts array bounds.

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

17 years agoFix use of wrong pointer in Q3 shader hash add.
res [Mon, 17 Dec 2007 02:19:50 +0000 (02:19 +0000)]
Fix use of wrong pointer in Q3 shader hash add.

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

17 years agoChanged Q3 shaders to use dynamic memory allocation (instead of a gargantuan static...
res [Mon, 17 Dec 2007 01:50:47 +0000 (01:50 +0000)]
Changed Q3 shaders to use dynamic memory allocation (instead of a gargantuan static array). Also changed the Q3 shader lookup to use a hash while I was at it.

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

17 years agoAdd getsurfacepointattribute to svqc and csqc (untested yet).
black [Sun, 16 Dec 2007 23:00:57 +0000 (23:00 +0000)]
Add getsurfacepointattribute to svqc and csqc (untested yet).

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

17 years agochanged DP_MODPLUG_STATIC_PREFIX to DP_MODPLUG_STATIC_LIBDIR (so it works on Fedora...
divverent [Sat, 15 Dec 2007 14:53:43 +0000 (14:53 +0000)]
changed DP_MODPLUG_STATIC_PREFIX to DP_MODPLUG_STATIC_LIBDIR (so it works on Fedora too, which has libs in /usr/lib64 instead). Now append the /lib or /lib64 to the path too. Includes are assumed to be in ../include relative to the LIBDIR given, but are also searched in any other usual -I path.

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

17 years agomake "cd remap" also support named tracks
divverent [Fri, 14 Dec 2007 16:37:32 +0000 (16:37 +0000)]
make "cd remap" also support named tracks

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

17 years agoCDAudio_Stop: also stop a paused track (fixes bgmvolume 0 related segfault)
divverent [Fri, 14 Dec 2007 16:22:07 +0000 (16:22 +0000)]
CDAudio_Stop: also stop a paused track (fixes bgmvolume 0 related segfault)

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

17 years agoMove the code around a bit in cl_gecko and add the console command gecko_movecursor.
black [Fri, 14 Dec 2007 01:45:07 +0000 (01:45 +0000)]
Move the code around a bit in cl_gecko and add the console command gecko_movecursor.

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

17 years agofix detection of q3map2 deluxemapping in the case of one referenced but
havoc [Thu, 13 Dec 2007 22:17:02 +0000 (22:17 +0000)]
fix detection of q3map2 deluxemapping in the case of one referenced but
4 existing in the bsp file (lightmap deluxemap blank blank), a variant
of the existing problem with 2 existing in a non-deluxemapped bsp (which
are lightmap blank)

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

17 years agomodplug improvement: DP_MODPLUG_STATIC_PREFIX=/usr/local makes it use the modplug...
divverent [Thu, 13 Dec 2007 22:02:38 +0000 (22:02 +0000)]
modplug improvement: DP_MODPLUG_STATIC_PREFIX=/usr/local makes it use the modplug installed in /usr/local statically

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

17 years agoadded gl_vbo 2 mode to test performance of vertex buffers without element buffers
havoc [Thu, 13 Dec 2007 20:02:24 +0000 (20:02 +0000)]
added gl_vbo 2 mode to test performance of vertex buffers without element buffers

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

17 years agoadded -lmodplug if libmodplug.a is detected, and a corresponding #define
havoc [Thu, 13 Dec 2007 16:33:57 +0000 (16:33 +0000)]
added -lmodplug if libmodplug.a is detected, and a corresponding #define
to tell the code about this linkage, openSUSE 10.3 does not include
libmodplug.so so this is sadly necessary

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

17 years agooops, should use <>, not ""
divverent [Thu, 13 Dec 2007 16:07:07 +0000 (16:07 +0000)]
oops, should use <>, not ""

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

17 years agosupport the upcoming -DSND_MODPLUG_STATIC flag
divverent [Thu, 13 Dec 2007 16:06:35 +0000 (16:06 +0000)]
support the upcoming -DSND_MODPLUG_STATIC flag

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

17 years agooops, forgot to include snd_modplug.h here
divverent [Thu, 13 Dec 2007 15:49:20 +0000 (15:49 +0000)]
oops, forgot to include snd_modplug.h here

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

17 years agominor improvement to modplug (now cd loop 1 also would load a mod/it/xm/s3m/... file...
divverent [Thu, 13 Dec 2007 15:23:14 +0000 (15:23 +0000)]
minor improvement to modplug (now cd loop 1 also would load a mod/it/xm/s3m/... file named track001 (without extension).

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

17 years agooops... forgot this file, sorry
divverent [Wed, 12 Dec 2007 21:01:08 +0000 (21:01 +0000)]
oops... forgot this file, sorry

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

17 years agoAdd support for libmodplug (when found). Sound files with an extension are now all...
divverent [Wed, 12 Dec 2007 19:55:17 +0000 (19:55 +0000)]
Add support for libmodplug (when found). Sound files with an extension are now all eligible for modplug, if neither vorbis nor wav recognizes them. CD tracks now try to append the .wav and .ogg extension first, and if that fails, the file name is used as is - but tracker extensions need to be explicitly stated. Example: "cd loop Ending.umx"

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

17 years agoGecko: forward mouse wheel input
res [Wed, 12 Dec 2007 19:28:44 +0000 (19:28 +0000)]
Gecko: forward mouse wheel input

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

17 years agoGecko resizing support
res [Wed, 12 Dec 2007 00:08:17 +0000 (00:08 +0000)]
Gecko resizing support

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

17 years agonow really fix fog + HDR
divverent [Tue, 11 Dec 2007 08:19:46 +0000 (08:19 +0000)]
now really fix fog + HDR

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

17 years agooops... fog is now colorscaled, so handle this correctly. Now fog + HDR works again.
divverent [Tue, 11 Dec 2007 08:03:24 +0000 (08:03 +0000)]
oops... fog is now colorscaled, so handle this correctly. Now fog + HDR works again.

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

17 years agoMeh, stupid bug in cl_gecko. Sorry about that :-(
black [Mon, 10 Dec 2007 00:04:37 +0000 (00:04 +0000)]
Meh, stupid bug in cl_gecko. Sorry about that :-(

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

17 years agoCMDBUFSIZE increased to 128k. Hopefully it's enough this time.
divverent [Sun, 9 Dec 2007 22:44:24 +0000 (22:44 +0000)]
CMDBUFSIZE increased to 128k. Hopefully it's enough this time.

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

17 years agofog gets additional parameters mindist and maxdist that specify where fog "starts...
divverent [Sun, 9 Dec 2007 20:59:57 +0000 (20:59 +0000)]
fog gets additional parameters mindist and maxdist that specify where fog "starts" and "ends"; sky is only fogged as if it were distance "maxdist" away (example: fog 1 0.5 1 0 0 1 gives a slight greenish haze like a view tint)

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

17 years agomaking fog consistent with skybox fog when HDR, scenebrightness or contrastboost...
divverent [Sat, 8 Dec 2007 09:51:10 +0000 (09:51 +0000)]
making fog consistent with skybox fog when HDR, scenebrightness or contrastboost are involved

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

17 years agocolor r_shownromals white at the tips
havoc [Sat, 8 Dec 2007 08:04:26 +0000 (08:04 +0000)]
color r_shownromals white at the tips

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

17 years agomade r_shownormals value control the length of the vectors shown, rather
havoc [Sat, 8 Dec 2007 07:32:19 +0000 (07:32 +0000)]
made r_shownormals value control the length of the vectors shown, rather
than opacity, this also reduces the length by 8x compared to the
previous code

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

17 years agofix fog, it now matches GL_EXP2 fog as it was meant to (this makes
havoc [Fri, 7 Dec 2007 21:59:40 +0000 (21:59 +0000)]
fix fog, it now matches GL_EXP2 fog as it was meant to (this makes
Nehahra look correct, which it hasn't for years)

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

17 years agoChanged Win32 console logic to only allocate a console when a dedicated server.
res [Fri, 7 Dec 2007 09:18:34 +0000 (09:18 +0000)]
Changed Win32 console logic to only allocate a console when a dedicated server.

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

17 years agoChanged Q1 lightmap packing to put consecutive surfaces onto the same lightmap again.
res [Thu, 6 Dec 2007 20:42:48 +0000 (20:42 +0000)]
Changed Q1 lightmap packing to put consecutive surfaces onto the same lightmap again.

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

17 years agoadded DP_QC_VECTOANGLES_WITH_ROLL
havoc [Thu, 6 Dec 2007 17:32:45 +0000 (17:32 +0000)]
added DP_QC_VECTOANGLES_WITH_ROLL

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

17 years agoFix a bug - tbh I dont understand why the other menu control worked at all yesterday :o
black [Thu, 6 Dec 2007 17:12:10 +0000 (17:12 +0000)]
Fix a bug - tbh I dont understand why the other menu control worked at all yesterday :o

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

17 years agofix mistakes in the fix for the previous mistakes in default.glsl
havoc [Thu, 6 Dec 2007 16:32:41 +0000 (16:32 +0000)]
fix mistakes in the fix for the previous mistakes in default.glsl

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

17 years agofix two mistakes in glsl/default.glsl deluxemapping paths which broke on
havoc [Thu, 6 Dec 2007 15:55:58 +0000 (15:55 +0000)]
fix two mistakes in glsl/default.glsl deluxemapping paths which broke on
ATI

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

17 years agoRemove unused MP_Fallback from menu.c.
black [Thu, 6 Dec 2007 13:52:53 +0000 (13:52 +0000)]
Remove unused MP_Fallback from menu.c.
Add DP_GECKO_SUPPORT to the menu's extension string.
Automatically destroy gecko instances on restart.
Change the gecko builtins to take the full texture path always.

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

17 years agoMade Q1 face loading faster by using a faster lightmap packing algorithm.
res [Thu, 6 Dec 2007 12:57:32 +0000 (12:57 +0000)]
Made Q1 face loading faster by using a faster lightmap packing algorithm.

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

17 years agoChanged R_Upload() to not allocate memory for a texture when a NULL texture data...
res [Thu, 6 Dec 2007 05:19:25 +0000 (05:19 +0000)]
Changed R_Upload() to not allocate memory for a texture when a NULL texture data pointer is given. GL should cope with a NULL texture data pointer just fine, and it's slightly faster.

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

17 years agoLazily initialize Gecko - saves initialization when not used.
res [Wed, 5 Dec 2007 23:23:00 +0000 (23:23 +0000)]
Lazily initialize Gecko - saves initialization when not used.

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

17 years agoAdd helper header to simplify measuring time spent in a block or statement.
res [Wed, 5 Dec 2007 23:22:13 +0000 (23:22 +0000)]
Add helper header to simplify measuring time spent in a block or statement.

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

17 years agoChanged Win32 code to also support compilation of the executable for the console...
res [Wed, 5 Dec 2007 23:21:08 +0000 (23:21 +0000)]
Changed Win32 code to also support compilation of the executable for the console subsystem.

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

17 years agoAdd the gecko builtins to csqc, too. (#ifdefed again)
black [Wed, 5 Dec 2007 22:02:42 +0000 (22:02 +0000)]
Add the gecko builtins to csqc, too. (#ifdefed again)

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

17 years agoRemove the NG_MENU additions as it has never really been used.
black [Mon, 3 Dec 2007 15:04:04 +0000 (15:04 +0000)]
Remove the NG_MENU additions as it has never really been used.
Remove unused code from progs.h.
Add gecko qc builtins (only for the menu right now).
They are untested though.

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

17 years agoadded r_refdef.rtlightstylevalue which is a float version of the normal
havoc [Mon, 3 Dec 2007 11:57:09 +0000 (11:57 +0000)]
added r_refdef.rtlightstylevalue which is a float version of the normal
lightstylevalue array, but this one is always interpolated (lightstyle
interpolation does not harm rtworld performance)
cleaned up Q1BSP LightPoint code

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

17 years agofix crash on entities with missing models (bug introduced by div0)
havoc [Mon, 3 Dec 2007 11:50:15 +0000 (11:50 +0000)]
fix crash on entities with missing models (bug introduced by div0)

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

17 years agoreverted texel nudging code that was committed by divverent and credited
havoc [Mon, 3 Dec 2007 10:49:24 +0000 (10:49 +0000)]
reverted texel nudging code that was committed by divverent and credited
to Black, this was making all pics blurry in Quake (particularly the
crosshairs)

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

17 years agothe light has been defeated by the shadow (r_light moved into r_shadow)
havoc [Mon, 3 Dec 2007 10:47:57 +0000 (10:47 +0000)]
the light has been defeated by the shadow (r_light moved into r_shadow)
overhauled gl_draw.c draw_generate* code and embedded images
cleaned up and improved r_editlights light sprite handling

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

17 years agofixed bug that made r_water reflections use the wrong pvs origin, they
havoc [Mon, 3 Dec 2007 05:20:47 +0000 (05:20 +0000)]
fixed bug that made r_water reflections use the wrong pvs origin, they
were using the r_view.origin rather than the surface center
changed r_water reflection surface center calculations to use bbox
instead of vertices to make the results more consistent

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

17 years ago"Finish" cl_gecko.c (input handling is done now, too) for now. I need to update to...
black [Sun, 2 Dec 2007 23:03:04 +0000 (23:03 +0000)]
"Finish" cl_gecko.c (input handling is done now, too) for now. I need to update to a new offscreengecko release soon though..
I've also added a console command for text injection into a gecko browser.

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

17 years agoadd DP_FONT_VARIABLEWIDTH to menu extensions list; later plan: find a builtin number...
divverent [Sun, 2 Dec 2007 22:56:48 +0000 (22:56 +0000)]
add DP_FONT_VARIABLEWIDTH to menu extensions list; later plan: find a builtin number for it and add it to CSQC too

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

17 years agochanged r_speeds 2 and 3 reports to only list time spent during a single
havoc [Sun, 2 Dec 2007 16:51:51 +0000 (16:51 +0000)]
changed r_speeds 2 and 3 reports to only list time spent during a single
view render, no longer reports time spent on non-rendering stuff, this
makes the report easier to read (although it does have disadvantages)

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

17 years agoremoved all but ocrana qw master as the rest were not responding
havoc [Sun, 2 Dec 2007 16:49:17 +0000 (16:49 +0000)]
removed all but ocrana qw master as the rest were not responding
added 4 other qw masters from the quakeservers.net website
added player count on server browser
fixed bug in server browser that always showed number of players in red
(because numhumans was not being set by qw server query code)

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

17 years agofix r_waterscroll
havoc [Sun, 2 Dec 2007 13:33:08 +0000 (13:33 +0000)]
fix r_waterscroll

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

17 years agoadded r_lerplightstyles cvar which now defaults off for performance
havoc [Sun, 2 Dec 2007 10:03:46 +0000 (10:03 +0000)]
added r_lerplightstyles cvar which now defaults off for performance
reasons (lightmap updates caused by the small adjustments in
interpolation eat 50-75% of framerate when little else is going on)

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

17 years agor_speeds now shows number of lightmap updates (and pixels) each frame
havoc [Sun, 2 Dec 2007 09:59:49 +0000 (09:59 +0000)]
r_speeds now shows number of lightmap updates (and pixels) each frame

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

17 years agoadded r_speeds 3 mode which does not use glFinish
havoc [Sun, 2 Dec 2007 09:55:26 +0000 (09:55 +0000)]
added r_speeds 3 mode which does not use glFinish

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

17 years agoreworked lightstyle chains code to use a struct, and combine allocations
havoc [Sun, 2 Dec 2007 09:49:30 +0000 (09:49 +0000)]
reworked lightstyle chains code to use a struct, and combine allocations
for all submodels of world (to reduce memory overhead), this also
cleaned up the code somewhat

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

17 years agochanged default value of sv_fixedframeratesingleplayer to 1, and default
havoc [Sun, 2 Dec 2007 06:17:19 +0000 (06:17 +0000)]
changed default value of sv_fixedframeratesingleplayer to 1, and default
sys_ticrate from 0.05 (20fps) to 0.0138889 (72fps)

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

17 years agorenamed sv_gameplayfix_qwplayerphysics to sv_gameplayfix_easierwaterjump
havoc [Sun, 2 Dec 2007 04:07:37 +0000 (04:07 +0000)]
renamed sv_gameplayfix_qwplayerphysics to sv_gameplayfix_easierwaterjump
and removed the bunnyhopping enhancement for low framerates (as QW does
not have this enhancement, and simply relies on high framerate instead)

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

17 years agofix warning - this is still C, remember :)
sajt [Sun, 2 Dec 2007 01:25:31 +0000 (01:25 +0000)]
fix warning - this is still C, remember :)

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

17 years agothe big chat area/font patch... hope it works well. Tested in Nexuiz and Quake. Fonts...
divverent [Sat, 1 Dec 2007 14:29:38 +0000 (14:29 +0000)]
the big chat area/font patch... hope it works well. Tested in Nexuiz and Quake. Fonts and a font generator for it will follow. Font specification is: a TGA as usual, and a .width file defining all character widths (first line is character spacing, then width of 0, of 1, of 2, of 3, ..., of 65 == "A", ..., of 255). An existing font is in Nexuiz svn as gfx/font_user0

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

17 years agoan x for an i... fixed (this bug made sprites disappear completely)
divverent [Thu, 29 Nov 2007 21:48:27 +0000 (21:48 +0000)]
an x for an i... fixed (this bug made sprites disappear completely)

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

17 years agoAdd TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn...
black [Thu, 29 Nov 2007 20:45:19 +0000 (20:45 +0000)]
Add TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn't set. Changed the SkinFrame purging code accordingly (and the default texture creation calls).
Fixed a bug that caused dynamic textures not to survive map switches (LoadExternal would try to load pixel data because ->base was set to NULL - it now restores the pointer in SkinFrame_Find..)

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

17 years agofix access to shirt/pants palettes (they no longer have alpha!)
divverent [Thu, 29 Nov 2007 16:24:00 +0000 (16:24 +0000)]
fix access to shirt/pants palettes (they no longer have alpha!)

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

17 years agoswizzle RGBA to BGRA in png loader
havoc [Thu, 29 Nov 2007 06:18:44 +0000 (06:18 +0000)]
swizzle RGBA to BGRA in png loader

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

17 years agoimproved performance of dlight triangle batching in R_Q1BSP_DrawLight
havoc [Wed, 28 Nov 2007 12:42:11 +0000 (12:42 +0000)]
improved performance of dlight triangle batching in R_Q1BSP_DrawLight

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

17 years agopatch from VorteX which makes r_editlights mode use different icons for
havoc [Wed, 28 Nov 2007 12:38:54 +0000 (12:38 +0000)]
patch from VorteX which makes r_editlights mode use different icons for
lights based on their attributes (such as shadowcasting, cubemap, etc)

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

17 years agoprecalculate texture vectors on mdl/md2/md3 models, this improves
havoc [Wed, 28 Nov 2007 11:19:00 +0000 (11:19 +0000)]
precalculate texture vectors on mdl/md2/md3 models, this improves
rendering performance with rtlights or q3bsp lightgrid

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

17 years agosmall optimization to use of texture_t->currenttexmatrix (no longer
havoc [Wed, 28 Nov 2007 10:57:12 +0000 (10:57 +0000)]
small optimization to use of texture_t->currenttexmatrix (no longer
setting it to identitymatrix when there are no tcmods, because
uninitialized matrices are optimized more in the backend than identity)

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

17 years agofix warning
sajt [Wed, 28 Nov 2007 07:19:18 +0000 (07:19 +0000)]
fix warning

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

17 years agofix a mistake in the recent commit
havoc [Wed, 28 Nov 2007 07:10:48 +0000 (07:10 +0000)]
fix a mistake in the recent commit

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

17 years agoreverted code that used vid_grabkeyboard for SDL input grabbing, because
havoc [Wed, 28 Nov 2007 07:03:10 +0000 (07:03 +0000)]
reverted code that used vid_grabkeyboard for SDL input grabbing, because
this allowed the mouse to leave the window which is unacceptable

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

17 years agopatch from VorteX that makes GAME_DELUXEQUAKE mode reset a cvar in the
havoc [Wed, 28 Nov 2007 06:56:32 +0000 (06:56 +0000)]
patch from VorteX that makes GAME_DELUXEQUAKE mode reset a cvar in the
Map command

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

17 years agopatch from VorteX which removes special menu behavior for
havoc [Wed, 28 Nov 2007 06:46:25 +0000 (06:46 +0000)]
patch from VorteX which removes special menu behavior for
GAME_NETHERWORLD, and replaces GAME_NETHERWORLD with GAME_DELUXEQUAKE

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

17 years agochanged texture formats from RGBA to BGRA, yes this is a massive change,
havoc [Wed, 28 Nov 2007 05:22:48 +0000 (05:22 +0000)]
changed texture formats from RGBA to BGRA, yes this is a massive change,
aimed solely at reducing load times, but it failed at that.
this contains several cleanups, and shouldn't reduce performance on any
hardware, so it still goes in.

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

17 years agofix warnings
havoc [Wed, 28 Nov 2007 04:05:33 +0000 (04:05 +0000)]
fix warnings

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

17 years agoadd cl_dyntexture.o to makefile
havoc [Wed, 28 Nov 2007 04:02:30 +0000 (04:02 +0000)]
add cl_dyntexture.o to makefile

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

17 years agoupdated msvc6 project file
sajt [Tue, 27 Nov 2007 23:22:26 +0000 (23:22 +0000)]
updated msvc6 project file
fixed some errors when compiling on windows

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

17 years agoI believe this is what you meant... by the way, you're crazy
sajt [Tue, 27 Nov 2007 23:12:12 +0000 (23:12 +0000)]
I believe this is what you meant... by the way, you're crazy

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

17 years agoUse BGRA >_>
black [Tue, 27 Nov 2007 22:53:42 +0000 (22:53 +0000)]
Use BGRA >_>

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

17 years agoWoops - use -1 to mark dirty textures!
black [Tue, 27 Nov 2007 22:39:46 +0000 (22:39 +0000)]
Woops - use -1 to mark dirty textures!

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

17 years agoRework cl_video to use dyntextures.
black [Tue, 27 Nov 2007 22:26:56 +0000 (22:26 +0000)]
Rework cl_video to use dyntextures.
Add cl_gecko (needs SUPPORT_GECKO to be activated).
Fix r_replacemaptexture and make it use matchpattern to replace multiple textures at once.

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

17 years agoadded support for TEXTYPE_BGRA (GL_BGRA format), this doesn't require
havoc [Mon, 26 Nov 2007 22:05:56 +0000 (22:05 +0000)]
added support for TEXTYPE_BGRA (GL_BGRA format), this doesn't require
any difference in processing functions, but the initial data must be
encoded accordingly
this format was added because it uploads faster on some hardware, and
the engine will be migrating over to using it

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

17 years agoremoved support for TEXTYPE_RGB
havoc [Mon, 26 Nov 2007 21:54:11 +0000 (21:54 +0000)]
removed support for TEXTYPE_RGB
renamed Image_Resample to Image_Resample32 and removed bpp param
renamed Image_MipReduce to Image_MipReduce32 and removed bpp param
changed q3bsp lightmap loader to convert to 32bit before upload

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

17 years agopatch from Mario Schlack which fixes csqc precache_model
havoc [Sat, 24 Nov 2007 07:40:11 +0000 (07:40 +0000)]
patch from Mario Schlack which fixes csqc precache_model

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

17 years agodon't start up CD audio if -nocdaudio is given on commandline - it was
havoc [Sat, 24 Nov 2007 03:10:19 +0000 (03:10 +0000)]
don't start up CD audio if -nocdaudio is given on commandline - it was
already not being initialized, but it was being started

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

17 years agoAdd cl_dyntexture.h and .c (don't need to be added to the makefile or vc project...
black [Fri, 23 Nov 2007 00:26:10 +0000 (00:26 +0000)]
Add cl_dyntexture.h and .c (don't need to be added to the makefile or vc project yet). They expose a simple interface to manage dynamic textures.
It supports getting the current texture handle for a dynamic texture path, linking a dynamic texture path to a texture handle and unlinking a dynamic texture path.
This is pretty transparent and it could be used for arbitrary dynamic textures (even ones that aren't updated but only linked dynamically into the game world - alias texture names).
This works for both skinframes and cachepics. Still contains lots of todos.

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

17 years agobotclients don't set spawned... so fix the -666 for Nexuiz downloaders feature to...
divverent [Thu, 22 Nov 2007 22:23:48 +0000 (22:23 +0000)]
botclients don't set spawned... so fix the -666 for Nexuiz downloaders feature to not show botclients as -666 frags

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

17 years agoAdd support for dynamic textures to the low-level texture handler.
black [Thu, 22 Nov 2007 00:06:00 +0000 (00:06 +0000)]
Add support for dynamic textures to the low-level texture handler.
Use R_MakeTextureDynamic to make a standard texture dynamic and set its update callback, etc. and use R_MarkDirtyTexture to mark it dirty (ie. needs an update as soon as it is used again).

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

17 years agofix some warnings
havoc [Wed, 21 Nov 2007 00:43:02 +0000 (00:43 +0000)]
fix some warnings

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