]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
14 years agoilluminated surfaces are now sorted by texture, giving a good fps
havoc [Sun, 14 Nov 2010 13:24:27 +0000 (13:24 +0000)]
illuminated surfaces are now sorted by texture, giving a good fps
increase, especially in realtime world lighting, this can be turned off
with the r_shadow_sortsurfaces cvar if desired

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10599 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=14b5649a2b45037ad244a2d2c2dcae6049fc6ce6

14 years agoavoid NULL pointer access if a surface had an unsupported type
divverent [Sat, 13 Nov 2010 14:07:13 +0000 (14:07 +0000)]
avoid NULL pointer access if a surface had an unsupported type

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10596 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a0c28f5d37f75edd41a377b6eee32fa932097151

14 years agoshow more detail in "has no triangles" and "has no vertexes" warning
divverent [Sat, 13 Nov 2010 14:05:04 +0000 (14:05 +0000)]
show more detail in "has no triangles" and "has no vertexes" warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10595 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6acdb81fe2b7489fb2fa6c7c07b73e4a9ba374d0

14 years agofix serious bug with stencil shadows from world caused by a mysterious #if 0
havoc [Thu, 11 Nov 2010 00:39:20 +0000 (00:39 +0000)]
fix serious bug with stencil shadows from world caused by a mysterious #if 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10585 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=214432376054380f1f6ca38187510b8898057f52

14 years agofix leaked font fallbacks
divverent [Fri, 12 Nov 2010 18:40:51 +0000 (18:40 +0000)]
fix leaked font fallbacks

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10589 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b7ca51ab466afc1058294fd91688da472d391293

14 years agoStore the data pointer and free it on Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:47 +0000 (18:40 +0000)]
Store the data pointer and free it on Font_UnloadFont

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10588 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=179be6fd1f715bac570e73aa9cadb0e08d0f7979

14 years agoFree the data of each font attachment in Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:44 +0000 (18:40 +0000)]
Free the data of each font attachment in Font_UnloadFont

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10587 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=277da881871d0b87f044765618f2b3297457bea7

14 years agobe more clear in the overflow message of OGG_FetchSound
divverent [Thu, 11 Nov 2010 14:05:27 +0000 (14:05 +0000)]
be more clear in the overflow message of OGG_FetchSound

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10586 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d24de034fdb60c32bc0e6937362884443ad262f4

14 years agoadd joy_axiskeyevents cvar which turns on engine-side emulation of arrow button event...
vortex [Tue, 9 Nov 2010 19:04:48 +0000 (19:04 +0000)]
add joy_axiskeyevents cvar which turns on engine-side emulation of arrow button events since not all drivers generate button events for movement axes. Also made wgl joystick code a bit more similar to SDL one.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10584 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f02a0166f16a9745aab3e0139fa39ae97f66f23d

14 years agoDPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6...
divverent [Sun, 7 Nov 2010 18:37:40 +0000 (18:37 +0000)]
DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6 connectivity and don't mean DP won't work)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10583 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a50c2fe2f0c39462a60b9a9f8ccbe43942b75a28

14 years agonew shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_defa...
divverent [Sun, 7 Nov 2010 13:09:01 +0000 (13:09 +0000)]
new shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_default_polygonoffset and mod_q3shader_default_polygonfactor

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10582 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=44615233a17f7866d1c0f84e242802484f7a8c99

14 years agofix a small bug regarding bobfall
divverent [Sat, 6 Nov 2010 15:08:44 +0000 (15:08 +0000)]
fix a small bug regarding bobfall

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10581 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3e3a733d66e1e496893615ec9d998063350739c8

14 years agoremove some stupid \n chars in infobar strings
divverent [Thu, 4 Nov 2010 19:38:13 +0000 (19:38 +0000)]
remove some stupid \n chars in infobar strings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10578 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=aea6604c81982853a19600d44067197c28064528

14 years agoR_CompleteLightPoint: more correct sampling
vortex [Sat, 30 Oct 2010 23:10:35 +0000 (23:10 +0000)]
R_CompleteLightPoint: more correct sampling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10574 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=57b67e4e7fa223b3fb7d76fe5702ae636aa8fc0f

14 years agowin32: don't use select() for waiting, use Sleep() again
divverent [Thu, 4 Nov 2010 08:10:10 +0000 (08:10 +0000)]
win32: don't use select() for waiting, use Sleep() again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10577 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=87665e3d8fa1c4ab1276becc1da124eea79a53dd

14 years agonew m_newmap() MenuQC function which gets executed each time client goes new level...
vortex [Sun, 31 Oct 2010 23:04:24 +0000 (23:04 +0000)]
new m_newmap() MenuQC function which gets executed each time client goes new level. +Option for Blood Omnicide which lets menu QC to control keys while playing video.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10576 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7e737da913d7dd502568fa32f3d72d30a971738d

14 years agoremove unnecessary Con_Printf
vortex [Sun, 31 Oct 2010 03:11:58 +0000 (03:11 +0000)]
remove unnecessary Con_Printf

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10575 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=409f1e598f852332f7cefc554c18c511af0388ed

14 years agofix SHADERSTATICPARMS_COUNT to right value
vortex [Sat, 30 Oct 2010 18:55:47 +0000 (18:55 +0000)]
fix SHADERSTATICPARMS_COUNT to right value

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10573 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e09c3d37a2261c5ae5370bb2e51d313bf1dcbe92

14 years agoFor lightgrid sampling move lightstyle[0] applying to shader domain as it seems to...
vortex [Sat, 30 Oct 2010 18:24:09 +0000 (18:24 +0000)]
For lightgrid sampling move lightstyle[0] applying to shader domain as it seems to be far more precise here (see http://omnicide.legacy-of-kain.ru/work/cbo_glslgridlightchangecomp.gif), while leaving the default way for < GL2 paths, dunno why it happens and i cant find any reasons for that, current approach 'just works'. Also added "_enable" cvars for all r_glsl_postprocess_uservec* which will toggle their usage (also creates USERVEC* define once enabled).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10572 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=18b296a035004c05afe62f48e164321ca863f4c7

14 years agooffsetmapping: make it work on ATI Radeon 9500-9800/X300 again
divverent [Sat, 30 Oct 2010 18:19:38 +0000 (18:19 +0000)]
offsetmapping: make it work on ATI Radeon 9500-9800/X300 again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10571 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2138c1a71154ae6661f42f9491f0a9e3d363d5c0

14 years agooops, video texture unlinking was accidentally removed, restore it
vortex [Fri, 29 Oct 2010 17:54:59 +0000 (17:54 +0000)]
oops, video texture unlinking was accidentally removed, restore it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10568 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8aecffa298082cc5daaf6f8ac0a44aa9d306c832

14 years agocvar "cl_video_keepaspectratio" which scales fullscreen video to keep original aspect...
vortex [Fri, 29 Oct 2010 17:50:35 +0000 (17:50 +0000)]
cvar "cl_video_keepaspectratio" which scales fullscreen video to keep original aspect ratio on widescreen resolutions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10567 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=25867339bfc6091a87bc90d54321954c2ac10633

14 years agofix some warnings
divverent [Fri, 29 Oct 2010 20:19:14 +0000 (20:19 +0000)]
fix some warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10570 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=018f5c7c845311a157da255d819683770c6543c4

14 years agoadd a "dummy protocol" support
divverent [Fri, 29 Oct 2010 20:19:10 +0000 (20:19 +0000)]
add a "dummy protocol" support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10569 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=82955f5db504bac6134c865d8a5efa40196724cd

14 years agoI suppose 0xE000 is a valid fontmap char... so render it as charmap item 0
divverent [Fri, 29 Oct 2010 14:30:24 +0000 (14:30 +0000)]
I suppose 0xE000 is a valid fontmap char... so render it as charmap item 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10566 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c9eef8bd881a5a38f9b2c0ff764a12fcb0062734

14 years agodon't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprinta...
divverent [Fri, 29 Oct 2010 14:27:07 +0000 (14:27 +0000)]
don't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprintable key then)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10565 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=392dbf4d5756cd56b80326aff4f85033a60b4b02

14 years agofix one issue with textshadow moving oddly around in an unknown situation
divverent [Fri, 29 Oct 2010 14:25:45 +0000 (14:25 +0000)]
fix one issue with textshadow moving oddly around in an unknown situation

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3e25fc54c098745485178c9ce1c9013615c00cdf

14 years agoFix nasty bug with dp_fonts structure expanding, once dp_fonts.f being reallocated...
vortex [Fri, 22 Oct 2010 21:56:14 +0000 (21:56 +0000)]
Fix nasty bug with dp_fonts structure expanding, once dp_fonts.f being reallocated, their corresponding ft2 settings links was messed up causing crash or postprocess to be lost.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10559 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=58f3c6005dba620506c939db3acb94a0e5bf1dcb

14 years agoadded GAME_MOONHELM
havoc [Fri, 22 Oct 2010 18:49:53 +0000 (18:49 +0000)]
added GAME_MOONHELM

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10558 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0c4ad44e83b1f492a691efd4e18b75b0a335f914

14 years agonew .gitattributes file, no visible change
divverent [Thu, 21 Oct 2010 16:11:33 +0000 (16:11 +0000)]
new .gitattributes file, no visible change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10556 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4cca66b0b7409ec631d20cbe3c7be8c4ef876430

14 years agofix in entity teleport detection of FlyMove
divverent [Tue, 19 Oct 2010 19:13:39 +0000 (19:13 +0000)]
fix in entity teleport detection of FlyMove

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10555 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=245e40043557def8aac7ec4d3c1c094086f2418d

14 years agonew r_stereo modes (horiz and vert split)
divverent [Tue, 19 Oct 2010 13:45:22 +0000 (13:45 +0000)]
new r_stereo modes (horiz and vert split)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10554 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a482cfb7d5b84ffa1bd66759ee528a108793718a

14 years agomake getsurface* not animate vertices if the model is not animated
divverent [Tue, 19 Oct 2010 06:24:42 +0000 (06:24 +0000)]
make getsurface* not animate vertices if the model is not animated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10552 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0c48e2d6fb65f8305fcf381b9da0fc3ab4f19a58

14 years agoas the SSE bug seems fixed now, use SSE in MSVC builds now too again
divverent [Mon, 18 Oct 2010 20:27:16 +0000 (20:27 +0000)]
as the SSE bug seems fixed now, use SSE in MSVC builds now too again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10551 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=69c4e03c2f10ba023dcd1f9c99f71cae95439bef

14 years agoexperimental: do not auto allocate a skeletonobject when a CSQC model just uses frame...
divverent [Mon, 18 Oct 2010 07:29:59 +0000 (07:29 +0000)]
experimental: do not auto allocate a skeletonobject when a CSQC model just uses frame based animation (NOTE: this MAY even cause crashes, please test, I just can't find any case where that object is really required); this moves blending of frame based animations back into Mod_Skeletal_AnimateVertices again (if this commit causes worse performance, a different course of action may be reverting it, and making sure a skeletonobject is ALWAYS created, even for SVQC managed legacy entities)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10550 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=56712b26644459a90ad48b8a796abdf1b0176dee

14 years agonew r_stereo modes (horiz and vert split)
Rudolf Polzer [Tue, 19 Oct 2010 10:17:05 +0000 (12:17 +0200)]
new r_stereo modes (horiz and vert split)

14 years agofix a Mem_Free(NULL) warning
divverent [Mon, 18 Oct 2010 07:29:44 +0000 (07:29 +0000)]
fix a Mem_Free(NULL) warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10549 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f3bdca63d113feb80947b7a49c61c9525814306f

14 years agofix a crash in R_CompleteLightPoint during rtworld sampling
vortex [Mon, 18 Oct 2010 01:26:27 +0000 (01:26 +0000)]
fix a crash in R_CompleteLightPoint during rtworld sampling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10548 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7e9c3e938f38753d22793b46018cfad9b0030bc5

14 years agoProperly unlink video texture and suspend videos on r_restart, so they actually survi...
vortex [Mon, 18 Oct 2010 01:07:41 +0000 (01:07 +0000)]
Properly unlink video texture and suspend videos on r_restart, so they actually survive it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10547 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3c58439e9d34602b755bd630d2fb96a83d2f82b6

14 years agoR_CompleteLightPoint bugfixed, dynamic lights actually matter for lit particles,...
vortex [Mon, 18 Oct 2010 00:47:19 +0000 (00:47 +0000)]
R_CompleteLightPoint bugfixed, dynamic lights actually matter for lit particles, lit sprites now sample lightning from rtlights and dlights instead of just lightgrid (by using R_CompleteLightPoint).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10546 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=382fbf2843f62c94752e809de977d0b4a2a2a113

14 years agoFix sprites whose name begins from ! (assumed lit sprites) to be actually lit with...
vortex [Sun, 17 Oct 2010 22:26:24 +0000 (22:26 +0000)]
Fix sprites whose name begins from ! (assumed lit sprites) to be actually lit with modellight/lightgrid, they are still not lit by realtime lightning at all.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10545 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6ce1bf66db6a9a49886ce9b929bedbb89841cebd

14 years agoadd sv_gameplayfix_nostepmoveonsteepslopes which prevents MOVETYPE_STEP monsters...
vortex [Sun, 17 Oct 2010 19:23:27 +0000 (19:23 +0000)]
add sv_gameplayfix_nostepmoveonsteepslopes which prevents MOVETYPE_STEP monsters (no FL_SWIM or FL_FLY ones) from walking very steep slopes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10544 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=30e5596cd568470a914064ee95df1428feccf2f7

14 years agofix two types to hopefulyl compile on MSVC
divverent [Sun, 17 Oct 2010 14:15:06 +0000 (14:15 +0000)]
fix two types to hopefulyl compile on MSVC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10543 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1c76312b52aad3565537a423344fa4d9f543e6c3

14 years agoextension (does this need a QC extension name?): allow legacy networked entities...
divverent [Sat, 16 Oct 2010 19:30:17 +0000 (19:30 +0000)]
extension (does this need a QC extension name?): allow legacy networked entities to be attached to CSQC entities added using R_AddEntities with a draw mask. Helps with adopting CSQC networked players in an otherwise legacy networked game.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10540 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a201aa8ae4beab46d0d56f3b21afc9ca92c9dbf4

14 years agotry fixing the SSE skeletonobjects case
divverent [Sat, 16 Oct 2010 08:54:06 +0000 (08:54 +0000)]
try fixing the SSE skeletonobjects case

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10539 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5039f8e7df829a3aab123dd7b6d62eed8b385f85

14 years agoonly enable SSE if __GNUC__ for the moment... needs fixing later
divverent [Sat, 16 Oct 2010 08:41:21 +0000 (08:41 +0000)]
only enable SSE if __GNUC__ for the moment... needs fixing later

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10538 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0ba4f50a0127342bf0c51526d4240bf4cc9c1db4

14 years agooops, add back 3 lines I accidentally removed
Rudolf Polzer [Fri, 15 Oct 2010 22:51:42 +0000 (00:51 +0200)]
oops, add back 3 lines I accidentally removed

14 years agoPolygonBegin: support a third argument "is2d"; fix a depth range bug
divverent [Fri, 15 Oct 2010 22:40:02 +0000 (22:40 +0000)]
PolygonBegin: support a third argument "is2d"; fix a depth range bug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10537 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ffccf763914c9e8345032a3bd99ccee93773a996

14 years agoR_BeginPolygon: if done in 3D stage, make sure depth test is done
divverent [Fri, 15 Oct 2010 22:39:58 +0000 (22:39 +0000)]
R_BeginPolygon: if done in 3D stage, make sure depth test is done

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10536 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a00a40ee831fe694c0e9874035cc7ca6093096ea

14 years agoonly apply the CFLAGS_CRYPTO to the crypto compile; helps in the Xonotic build system
divverent [Fri, 15 Oct 2010 14:23:12 +0000 (14:23 +0000)]
only apply the CFLAGS_CRYPTO to the crypto compile; helps in the Xonotic build system

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10535 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=92019048fd93cf79e5a71bd8fdea80cb68f4fcdd

14 years agoCryptographic authentication support for the d0_blind_id library available on http...
divverent [Fri, 15 Oct 2010 13:47:19 +0000 (13:47 +0000)]
Cryptographic authentication support for the d0_blind_id library available on http://github.com/divVerent/d0_blind_id

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10534 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1ea860909ea670451b5200ccd30aa19241cd081a

14 years agomove EXACTSPECULARMATH to the "lightweight" permutation system too, as there is no...
divverent [Thu, 14 Oct 2010 06:15:03 +0000 (06:15 +0000)]
move EXACTSPECULARMATH to the "lightweight" permutation system too, as there is no need to have it able to degrade

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10533 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=82eb8d3b24e98012d9335a34c3504ae6bc16b978

14 years agoadd back VorteX's "lightweight shader parameter" system, but have it detect cvar...
divverent [Thu, 14 Oct 2010 06:14:59 +0000 (06:14 +0000)]
add back VorteX's "lightweight shader parameter" system, but have it detect cvar changes and recompile all glsl shaders if any changed so these can be changed at runtime still

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10532 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fe0ac517fba262e817ecc5f06e077ad34b634057

14 years agoremove r_glsl_saturation_redcompensate, as it's considered a hack and can be done...
vortex [Wed, 13 Oct 2010 22:49:54 +0000 (22:49 +0000)]
remove r_glsl_saturation_redcompensate, as it's considered a hack and can be done with postprocess customizing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10531 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8877046a985b73b00ecf417208fd69519794282c

14 years agoAdded dp_waterscroll <scale> <speed> shader keyword as simple simulation of water...
vortex [Wed, 13 Oct 2010 22:00:16 +0000 (22:00 +0000)]
Added dp_waterscroll <scale> <speed> shader keyword as simple simulation of water movement, use with dp_water. Works only with r_water 1.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10530 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c5ff9341efbe92ce3c66b5c6f744a6efe49823fa

14 years agoadd r_glsl_saturation_redcompensate optional effect to r_glsl_saturate (only works...
vortex [Wed, 13 Oct 2010 20:57:26 +0000 (20:57 +0000)]
add r_glsl_saturation_redcompensate optional effect to r_glsl_saturate (only works when saturate is below 1), will produce desaturation with red channel compensated. Tweaked water shader parms, added slight water animation by counter-scrolling 2 water normalmap layers in shader.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10529 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=60735ece67a401288eb8f3cf957f726f9011b964

14 years agohope the scissor code is fine now
divverent [Wed, 13 Oct 2010 20:45:36 +0000 (20:45 +0000)]
hope the scissor code is fine now

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10528 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d1a0b2b601cbca0fac77e775924c704421d34bcd

14 years agobring old R_Shadow_ScissorForBBox code (new code still there, commented out), since...
vortex [Wed, 13 Oct 2010 20:33:30 +0000 (20:33 +0000)]
bring old R_Shadow_ScissorForBBox code (new code still there, commented out), since new code is broken on ATI cards, a temporary solution

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10527 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6aa5a03c470f7a0ee54459b3a9263b771626b8c4

14 years agooops, scissormode wasn't meant to be CVAR_SAVE
divverent [Wed, 13 Oct 2010 19:57:13 +0000 (19:57 +0000)]
oops, scissormode wasn't meant to be CVAR_SAVE

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10526 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=70276afb0a9206892cb1f4f9079b1c39ea2707d7

14 years agoshut up a gcc warning
divverent [Wed, 13 Oct 2010 19:46:10 +0000 (19:46 +0000)]
shut up a gcc warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10525 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=613f06b867cca45c2fc29aed93b82517d398abfe

14 years agofix D3D scissoring
divverent [Wed, 13 Oct 2010 19:32:40 +0000 (19:32 +0000)]
fix D3D scissoring

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10524 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1c0077b12b379813c5ed6caeeb7385e88e10ff8e

14 years agofix another typo in the water rendering improvement
divverent [Wed, 13 Oct 2010 17:42:50 +0000 (17:42 +0000)]
fix another typo in the water rendering improvement

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10523 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=89a044f065d368295a805d75fa38639150a75ab5

14 years agor_water_scissormode: 0 = none, 1 = scissor only, 2 = cull only, 3 = both
divverent [Wed, 13 Oct 2010 17:22:56 +0000 (17:22 +0000)]
r_water_scissormode: 0 = none, 1 = scissor only, 2 = cull only, 3 = both

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10522 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=82673bcd65394c9a261c9396e14f15f384c1f9a2

14 years agoadjust for left handed coordinate system in a reflected view
divverent [Wed, 13 Oct 2010 17:18:55 +0000 (17:18 +0000)]
adjust for left handed coordinate system in a reflected view

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10521 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5e15507f0fc13b7f22d39bf2cc77b16d606e8660

14 years agor_water_scissormode: 0 = none, 1 = glScissor, 2 = glScissor and frustum culling
divverent [Wed, 13 Oct 2010 16:08:13 +0000 (16:08 +0000)]
r_water_scissormode: 0 = none, 1 = glScissor, 2 = glScissor and frustum culling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10520 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8bbf1d28e7c0f0195cab09ca0f31398fa3b89191

14 years ago"cl_movement_replay 0" to disable the built-in prediction
divverent [Wed, 13 Oct 2010 09:56:29 +0000 (09:56 +0000)]
"cl_movement_replay 0" to disable the built-in prediction

From: Jānis Rūcis <parasti@gmail.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10519 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6d82f45c9a2d332323be1546f7929a921ade9b02

14 years agoI have no idea why, but R_Viewport_TransformToScreen apparently should NOT invert...
divverent [Sun, 10 Oct 2010 16:36:44 +0000 (16:36 +0000)]
I have no idea why, but R_Viewport_TransformToScreen apparently should NOT invert y, as doing so breaks dynamic light rendering in size-reduced views (HDR, water)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10518 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f485da47bd3a3737bb1db4e42b21e9e3b6c58dd9

14 years agoSSE patch by kyre, with runtime CPU detection and a cvar r_skeletal_use_sse if SSE...
divverent [Fri, 8 Oct 2010 17:54:16 +0000 (17:54 +0000)]
SSE patch by kyre, with runtime CPU detection and a cvar r_skeletal_use_sse if SSE is detected

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10517 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8823e14b9482ce5779c09a48e9b81f397f94b55f

14 years agofix another warning
divverent [Wed, 6 Oct 2010 11:20:45 +0000 (11:20 +0000)]
fix another warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10516 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=939c572d67d451f33a977ab1ed1cb937e6c558c2

14 years agofix a syntax error. Why didn't my gcc catch it? clang does...
divverent [Wed, 6 Oct 2010 11:19:27 +0000 (11:19 +0000)]
fix a syntax error. Why didn't my gcc catch it? clang does...

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10515 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f57d9c23e169d7b996ee332adac7f2608024e177

14 years agofix misparsing of portless IPv6 addresses
divverent [Wed, 6 Oct 2010 09:48:53 +0000 (09:48 +0000)]
fix misparsing of portless IPv6 addresses

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10514 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=560eb405cfebc3c582f09d1358c170aa4e885e1a

14 years agoadding my own IPv6 master server: dpmaster.div0.qc.to - default master server 4 ...
divverent [Wed, 6 Oct 2010 09:48:52 +0000 (09:48 +0000)]
adding my own IPv6 master server: dpmaster.div0.qc.to - default master server 4 (admin: divVerent) (only enabled if SUPPORTIPV6)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10513 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d63a3c8a9951cfdb81741d7478261411473f790a

14 years agoturn off the weird "%interface_name" thing in IPv6 addresses, as it won't compare...
divverent [Sun, 3 Oct 2010 13:59:29 +0000 (13:59 +0000)]
turn off the weird "%interface_name" thing in IPv6 addresses, as it won't compare right

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10512 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=13f5cfe3e80c22eaf001856423dd03e68c476a33

14 years agomake IPv6 addresses actually work in server queries
divverent [Sun, 3 Oct 2010 13:59:19 +0000 (13:59 +0000)]
make IPv6 addresses actually work in server queries

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10511 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a99f9360b7301b2cde94d176b450fc708f50d5d1

14 years agomake "status" support IPv6
divverent [Sun, 3 Oct 2010 13:06:58 +0000 (13:06 +0000)]
make "status" support IPv6

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10510 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ab91734e41c1b02ff74222d17e3e89819c5f06ed

14 years agofix a stupid and trivial IPv6 bug that causes a v6 supporting engine to HANG
divverent [Sat, 2 Oct 2010 19:20:48 +0000 (19:20 +0000)]
fix a stupid and trivial IPv6 bug that causes a v6 supporting engine to HANG

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10509 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ffc42cb750e2e3b941a79d4acf95e3a3f67f5058

14 years agodon't crash in obj loading if v, vt, or vn are NULL or the indices are
havoc [Thu, 30 Sep 2010 20:35:12 +0000 (20:35 +0000)]
don't crash in obj loading if v, vt, or vn are NULL or the indices are
invalid

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10508 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=efe66e1a99b2ad1b6aaa2a5c131237b9cb7b4ee4

14 years agodepthonly, prepass: do not compare lightmap texture for batching (less meshes)
divverent [Wed, 29 Sep 2010 07:23:15 +0000 (07:23 +0000)]
depthonly, prepass: do not compare lightmap texture for batching (less meshes)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10507 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3e2531a30de55e9b77ad90931f865b14a3ccb89c

14 years agofix lightmap switching/batching in fakelight
Rudolf Polzer [Wed, 29 Sep 2010 07:18:32 +0000 (09:18 +0200)]
fix lightmap switching/batching in fakelight

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10506 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=369bccdb9b45de01e7d0ba4225e12884e0dc0951

14 years agoRevert "for some reason, it's faster to always set the lightmaptexture (more than...
divverent [Wed, 29 Sep 2010 07:10:44 +0000 (07:10 +0000)]
Revert "for some reason, it's faster to always set the lightmaptexture (more than double fps) even if fakelight is enabled. LordHavoc, any idea why?"

This reverts commit 1a2ab86f0789c4b473dad83368c86634e4b7eb2c.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10505 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=02de8946ccfab1fffc695735152d2a97cccee2a6

14 years agofix vertextextureblend in fakelight
Rudolf Polzer [Tue, 28 Sep 2010 19:09:13 +0000 (21:09 +0200)]
fix vertextextureblend in fakelight

14 years agofor some reason, it's faster to always set the lightmaptexture (more than double...
Rudolf Polzer [Tue, 28 Sep 2010 12:36:46 +0000 (14:36 +0200)]
for some reason, it's faster to always set the lightmaptexture (more than double fps) even if fakelight is enabled. LordHavoc, any idea why?

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10504 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1a2ab86f0789c4b473dad83368c86634e4b7eb2c

14 years agor_fakelight: 1 = use "fake" lighting (falloff-less light source at eye origin) if...
divverent [Tue, 28 Sep 2010 12:04:33 +0000 (12:04 +0000)]
r_fakelight: 1 = use "fake" lighting (falloff-less light source at eye origin) if the loaded worldmodel is unlit, 2 = always use "fake" lighting; controlling cvar r_fakelight_intensity (0.75 is an empiric default value that on average seems to match the lightmap brightness of a selection of nexuiz maps)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10503 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2fe74a1bd078fa8684b11fc555d6501cbdd3513c

14 years agoavoid crashes if MAX_SVBSP_POLYGONPOINTS would be exceeded
havoc [Mon, 27 Sep 2010 02:44:16 +0000 (02:44 +0000)]
avoid crashes if MAX_SVBSP_POLYGONPOINTS would be exceeded

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10502 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1ea73c92f65f5f8342edef1d7b4bba7580217176

14 years agocameras: when new eye pos == old eye pos, do not create a network eye
divverent [Sun, 26 Sep 2010 17:48:31 +0000 (17:48 +0000)]
cameras: when new eye pos == old eye pos, do not create a network eye

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10501 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=44bfaab727457c0b4d084da92bedea1969cfb1db

14 years agofix alpha in water rendering
divverent [Sun, 26 Sep 2010 17:37:40 +0000 (17:37 +0000)]
fix alpha in water rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10500 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=284906f540ab8a7a704c0d4135d93009ff0441ad

14 years agofix autoload semantics of drawpics
divverent [Sun, 26 Sep 2010 16:45:18 +0000 (16:45 +0000)]
fix autoload semantics of drawpics

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10499 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e8aced660a23cd4ad64764b8ed161a8811262fd3

14 years agofix a display issue with warpzone decals I caused in my last change
divverent [Sun, 26 Sep 2010 12:14:21 +0000 (12:14 +0000)]
fix a display issue with warpzone decals I caused in my last change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10498 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=41b3bfc57e21b55b823da97f4edcfc4fb8f4919c

14 years agofix warnings in terencehill's code
divverent [Sun, 26 Sep 2010 06:40:31 +0000 (06:40 +0000)]
fix warnings in terencehill's code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10497 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e2ca60e84ef1525d1b097548534e6ab1c96885b2

14 years agoallow .alpha to fade out water/refraction/reflection surfaces (only tested on refract...
divverent [Sat, 25 Sep 2010 19:48:30 +0000 (19:48 +0000)]
allow .alpha to fade out water/refraction/reflection surfaces (only tested on refraction at the moment, sorry)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10496 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=77f5e1094bbab7eaca225154d1f566845f37c394

14 years agoFix a typo (v_idlescale is always 0 there)
divverent [Sat, 25 Sep 2010 08:39:40 +0000 (08:39 +0000)]
Fix a typo (v_idlescale is always 0 there)

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10495 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fcdaa4edcc329da6cebc246e0e2db876603f0e05

14 years agoFix showsound that cannot be shown alone cause of a missing check Simplify a bit...
divverent [Sat, 25 Sep 2010 08:39:37 +0000 (08:39 +0000)]
Fix showsound that cannot be shown alone cause of a missing check Simplify a bit the code to avoid redundant checks

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10494 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ecc62789a22a9b7161a863a1c046b8b170c6cca8

14 years agoloadfont now prints a warning if it gets more than MAX_FONT_SIZES sizes and skips...
divverent [Sat, 25 Sep 2010 08:39:33 +0000 (08:39 +0000)]
loadfont now prints a warning if it gets more than MAX_FONT_SIZES sizes and skips duplicated sizes

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10493 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=df715e90671b3ea25ce8e79ebb9f7afc86b42bd0

14 years agoFix again u8_COM_StringLengthNoColors returning always 0 if end is NULL (strlennocol...
divverent [Sat, 25 Sep 2010 08:39:29 +0000 (08:39 +0000)]
Fix again u8_COM_StringLengthNoColors returning always 0 if end is NULL (strlennocol case), and counting 1 less character if the last character is multibyte and end is not NULL

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10492 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a315e532aafafc62929aeed9662cdcb66a454172

14 years agoNew command 'history' and new shortcuts to search through the commands history
divverent [Sat, 25 Sep 2010 08:35:59 +0000 (08:35 +0000)]
New command 'history' and new shortcuts to search through the commands history

ctrl-, goes to the first command of the history
ctrl-. goes to the last command of the history

type a string (wildcards allowed) and
ctrl-f prints all the matching commands
ctrl-r searches backwards
ctrl-shift-r searches forwards

The last 2 shortcuts also point the history's index to the matching command but without fetching it to let one continue the search. To fetch it, it suffices to just press UP or DOWN.

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10491 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0961be131f8762ddd1d659a7a3a2803b42c6bad4

14 years agoFix a possible crash when an invalid skinframe gets accessed after cl.time steps...
divverent [Fri, 24 Sep 2010 21:37:43 +0000 (21:37 +0000)]
Fix a possible crash when an invalid skinframe gets accessed after cl.time steps backwards (e.g. due to time syncing) right after an entity has been created. Might fix the steel storm crash, but certainly IS a segfault on unstable network connection. Note that a%b can be negative for a<0, b>0 (unlike mathematical 'mod' operation, C '%' is based on rounding towards zero)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10490 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e63a0114bbd617c020c6217f5e1fe1145b1d2c78

14 years agocomment out another unused var
divverent [Fri, 24 Sep 2010 11:21:33 +0000 (11:21 +0000)]
comment out another unused var

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10489 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1ae269e1612265dc7c54fbccdb1ca0f285752b79

14 years agoUNMERGE
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Sat, 1 May 2010 16:48:33 +0000 (16:48 +0000)]
UNMERGE
overhauled vertex formats, now supports 100% interleaved arrays
rendering mode, reworked vertexbuffer management to be a more robust
system, added fully vertex buffered rendering options
(gl_vbo_dynamicvertex, gl_vbo_dynamicindex) which are off by default
(they seem to hurt fps in tests here)
centralized handling of "generic" mesh rendering (fixed function stuff)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10109 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=38185bc1aea210514d6970e3c36a25ad97615e5f

14 years agoUNMERGE
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Sun, 2 May 2010 14:19:27 +0000 (14:19 +0000)]
UNMERGE
fix a crash on deformvertexes wave

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10163 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=83541505084139df34de53d084b40fc0b807822c

14 years agoUNMERGE
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Sun, 2 May 2010 15:08:22 +0000 (15:08 +0000)]
UNMERGE
fix water/reflection/camera surface rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10164 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=b55ff03e177e5c4f9e10f1f91bbd5a9e6eb01cdb