]> git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agosignificant speed gain on collision_cache 1 by tweaking some numbers
havoc [Sat, 12 Mar 2011 10:56:44 +0000 (10:56 +0000)]
significant speed gain on collision_cache 1 by tweaking some numbers

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

13 years agofix two C++ errors
havoc [Fri, 11 Mar 2011 22:56:02 +0000 (22:56 +0000)]
fix two C++ errors

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

13 years agocache collision trace results from frame to frame
havoc [Fri, 11 Mar 2011 10:12:14 +0000 (10:12 +0000)]
cache collision trace results from frame to frame
increased r_shadow_bouncegrid_photons from 2000 to 5000 (same
performance, thanks to the collision cache)

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

13 years agofix GL20TU list for deluxemapping
divverent [Sun, 20 Mar 2011 19:44:49 +0000 (19:44 +0000)]
fix GL20TU list for deluxemapping

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

13 years agodeluxemapping support for dpsoftrast
divverent [Sun, 20 Mar 2011 17:31:23 +0000 (17:31 +0000)]
deluxemapping support for dpsoftrast

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

13 years agosaturated bloom subtract
eihrul [Sun, 20 Mar 2011 16:00:58 +0000 (16:00 +0000)]
saturated bloom subtract

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

13 years agofix post-process shader using invalid texcoord array
eihrul [Sun, 20 Mar 2011 15:23:27 +0000 (15:23 +0000)]
fix post-process shader using invalid texcoord array

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

13 years agofix row order of screen to texture copies
eihrul [Sun, 20 Mar 2011 14:32:43 +0000 (14:32 +0000)]
fix row order of screen to texture copies

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

13 years agofix some redundant shuffles
eihrul [Sun, 20 Mar 2011 14:14:47 +0000 (14:14 +0000)]
fix some redundant shuffles

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

13 years agomake it easier to benchmark steelstorm by stopping video playback when
havoc [Sun, 20 Mar 2011 13:32:18 +0000 (13:32 +0000)]
make it easier to benchmark steelstorm by stopping video playback when
a serverinfo packet is received, and ignoring attempts to connect to a
server when -benchmark is used

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

13 years agodefault vid_netwmfullscreen to 0 again because it doesn't work with
havoc [Sat, 19 Mar 2011 23:41:58 +0000 (23:41 +0000)]
default vid_netwmfullscreen to 0 again because it doesn't work with
XVideMode, and XRandR isn't implemented yet

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

13 years agoadded r_usesurfaceculling cvar which defaults on, this new code reduces
havoc [Sat, 19 Mar 2011 22:36:02 +0000 (22:36 +0000)]
added r_usesurfaceculling cvar which defaults on, this new code reduces
the number of surfaces drawn each frame, which is not always a speed
gain but is usually helpful

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

13 years agoadd "r_fog_clear" cvar which allows to disable framebuffer clearing to fog color...
vortex [Sat, 19 Mar 2011 22:13:11 +0000 (22:13 +0000)]
add "r_fog_clear" cvar which allows to disable framebuffer clearing to fog color (helps to fix bad borders on water reflections if fog is used), still, some old maps may want r_fog_clear = 1

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

13 years agouse vid_netwmfullscreen 1 by default (yes I know auto-detection is not
havoc [Sat, 19 Mar 2011 18:50:30 +0000 (18:50 +0000)]
use vid_netwmfullscreen 1 by default (yes I know auto-detection is not
coded, but xorg supports it so I don't really care...)

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

13 years agofix a syntax error in the non-glsl13 case
divverent [Sat, 19 Mar 2011 21:03:09 +0000 (21:03 +0000)]
fix a syntax error in the non-glsl13 case

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

13 years agoAdd "originscale" parameter to r_editlights (may be useful if map was scaled)
vortex [Sat, 19 Mar 2011 20:24:43 +0000 (20:24 +0000)]
Add "originscale" parameter to r_editlights (may be useful if map was scaled)

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

13 years agoadd -maxtempents switch to increase starting 256/4000 tempentities limit.
vortex [Sat, 19 Mar 2011 17:37:07 +0000 (17:37 +0000)]
add -maxtempents switch to increase starting 256/4000 tempentities limit.

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

13 years agodefine GLSL version explicitly to work around a problem with ATI/AMD drivers not...
divverent [Sat, 19 Mar 2011 15:44:19 +0000 (15:44 +0000)]
define GLSL version explicitly to work around a problem with ATI/AMD drivers not getting __VERSION__ right (?)

From: Maik Merten <maikmerten@googlemail.com>

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

13 years agofix a possible glsl compile error (no idea why it didn't throw any yet, weird cpp...
divverent [Sat, 19 Mar 2011 12:47:55 +0000 (12:47 +0000)]
fix a possible glsl compile error (no idea why it didn't throw any yet, weird cpp on nvidia?)

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

13 years agoturn "assignment to world" from dprint into warning (so backtraces can work)
divverent [Sat, 19 Mar 2011 12:23:09 +0000 (12:23 +0000)]
turn "assignment to world" from dprint into warning (so backtraces can work)

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

13 years agonew con_closeontoggleconsole logic:
divverent [Fri, 18 Mar 2011 11:03:31 +0000 (11:03 +0000)]
new con_closeontoggleconsole logic:

1 now only works at the start of the line, for all toggleconsole keys
2 works anywhere, if the key is not ^
3 works anywhere, even if the key is ^

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

13 years agochange default r_shadow_deferred_8bitrange to 4 to reduce saturating
havoc [Thu, 17 Mar 2011 17:52:31 +0000 (17:52 +0000)]
change default r_shadow_deferred_8bitrange to 4 to reduce saturating
artifacts in common usage

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

13 years agofixes for GLSL syntax errors in the deferred geometry shader
havoc [Thu, 17 Mar 2011 17:34:47 +0000 (17:34 +0000)]
fixes for GLSL syntax errors in the deferred geometry shader

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

13 years agoavoid a crash when creating model decals if RSurf_ActiveModel does not
havoc [Thu, 17 Mar 2011 16:50:33 +0000 (16:50 +0000)]
avoid a crash when creating model decals if RSurf_ActiveModel does not
produce normals (why not?)

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

13 years agoadded r_shadow_bouncegrid_directionalshading cvar, if enabled this uses
havoc [Mon, 14 Mar 2011 12:34:49 +0000 (12:34 +0000)]
added r_shadow_bouncegrid_directionalshading cvar, if enabled this uses
a much larger texture to store first-order spherical harmonics data
(average color and directional gradients) for bumpmapped diffuse shading
which also reduces light-bleed issues on thin walls

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

13 years agoimproved vid_touchscreen - it now adapts to screen shape (using
havoc [Mon, 14 Mar 2011 08:43:27 +0000 (08:43 +0000)]
improved vid_touchscreen - it now adapts to screen shape (using
corner-relative values) and is compatible with mouse input for testing

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

13 years agoadd cvars r_glsl_offsetmapping_steps and r_glsl_offsetmapping_reliefmapping_steps
divverent [Sun, 13 Mar 2011 18:08:47 +0000 (18:08 +0000)]
add cvars r_glsl_offsetmapping_steps and r_glsl_offsetmapping_reliefmapping_steps

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

13 years agohuge glsl change: avoid #defining reserved keywords
divverent [Sun, 13 Mar 2011 17:19:32 +0000 (17:19 +0000)]
huge glsl change: avoid #defining reserved keywords

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

13 years agofix some warnings in the shader
divverent [Sun, 13 Mar 2011 17:19:24 +0000 (17:19 +0000)]
fix some warnings in the shader

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

13 years agoproperly detect glsl 1.3 support
divverent [Sun, 13 Mar 2011 17:19:18 +0000 (17:19 +0000)]
properly detect glsl 1.3 support

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

13 years agobetter support non-GLSL130 in offsetmapping
divverent [Sun, 13 Mar 2011 14:21:35 +0000 (14:21 +0000)]
better support non-GLSL130 in offsetmapping

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

13 years agoreduced number of varying variables required in a certain case in
havoc [Sun, 13 Mar 2011 10:43:03 +0000 (10:43 +0000)]
reduced number of varying variables required in a certain case in
steelstorm by 1, to bring the shader within limits of older cards

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

13 years agor_shadow_bouncegrid now uses floats for accumulating photons, to allow
havoc [Sun, 13 Mar 2011 10:23:00 +0000 (10:23 +0000)]
r_shadow_bouncegrid now uses floats for accumulating photons, to allow
higher photon counts without issues
minor optimization to r_shadow_bouncegrid pixel conversion (now does a
batch conversion on the array rather than on each photon contribution)
removed r_shadow_bouncegrid_nolerpsplat cvar to reduce code

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

13 years agofix an HLSL warning
havoc [Sun, 13 Mar 2011 07:39:13 +0000 (07:39 +0000)]
fix an HLSL warning

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

13 years agofix a typo (Fogcolor should be FogColor)
havoc [Sun, 13 Mar 2011 07:23:48 +0000 (07:23 +0000)]
fix a typo (Fogcolor should be FogColor)

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

13 years agofix offset/reliefmapping by using the proper miplevel - NOTE: this makes use of a...
divverent [Sat, 12 Mar 2011 20:46:27 +0000 (20:46 +0000)]
fix offset/reliefmapping by using the proper miplevel - NOTE: this makes use of a GLSL 1.30 function in offsetmapping, non-GLSL 1.30 drivers will have to degrade

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

13 years agoreduce number of varying variables required in shaders by 1
havoc [Sat, 12 Mar 2011 05:40:32 +0000 (05:40 +0000)]
reduce number of varying variables required in shaders by 1

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

13 years agoactually the culling in
havoc [Wed, 9 Mar 2011 09:25:55 +0000 (09:25 +0000)]
actually the culling in
Mod_Q1BSP_TraceLineAgainstSurfacesFindTextureOnNode is a slight speed
loss compared to having it entirely disabled...  so disable it.

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

13 years agofixed a flaw in the culling in
havoc [Wed, 9 Mar 2011 09:13:52 +0000 (09:13 +0000)]
fixed a flaw in the culling in
Mod_Q1BSP_TraceLineAgainstSurfacesFindTextureOnNode which was preventing
culling from working in most cases, minor speed gain

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

13 years agofixed bug with toggling r_shadow_bouncegrid where the texture binding
havoc [Mon, 7 Mar 2011 20:53:53 +0000 (20:53 +0000)]
fixed bug with toggling r_shadow_bouncegrid where the texture binding
state was incorrect, causing bouncegrid to not work after being toggled
once

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

13 years ago::stable-branch::reset=c0b5a9d4a829afdee87b9ef5fc508dfff77eee4e
Rudolf Polzer [Mon, 7 Mar 2011 14:02:13 +0000 (15:02 +0100)]
::stable-branch::reset=c0b5a9d4a829afdee87b9ef5fc508dfff77eee4e

13 years agofix a warning about an unsigned array on ios
havoc [Sun, 6 Mar 2011 20:59:46 +0000 (20:59 +0000)]
fix a warning about an unsigned array on ios

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

13 years agoimprove the evaluation script
divverent [Sun, 6 Mar 2011 19:21:05 +0000 (19:21 +0000)]
improve the evaluation script

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

13 years agoadd a hack to support fog on premultiplied alpha surfaces too
divverent [Sun, 6 Mar 2011 18:42:35 +0000 (18:42 +0000)]
add a hack to support fog on premultiplied alpha surfaces too

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

13 years agofix fog/colormodability evaluation
divverent [Sun, 6 Mar 2011 18:25:02 +0000 (18:25 +0000)]
fix fog/colormodability evaluation

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

13 years agofix fog for GL_SRC_ALPHA GL_ONE
divverent [Sun, 6 Mar 2011 17:36:37 +0000 (17:36 +0000)]
fix fog for GL_SRC_ALPHA GL_ONE

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

13 years agofix drawclipsetarea in D3D9, this fixes the minimap in steelstorm and also the menu...
havoc [Sun, 6 Mar 2011 17:28:14 +0000 (17:28 +0000)]
fix drawclipsetarea in D3D9, this fixes the minimap in steelstorm and also the menu scrolling

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

13 years agoadded shader_glsl.h and shader_hlsl.h to the project files
havoc [Sun, 6 Mar 2011 17:27:39 +0000 (17:27 +0000)]
added shader_glsl.h and shader_hlsl.h to the project files

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

13 years agoalso turn off fog on blendfuncs that cannot handle it
divverent [Sun, 6 Mar 2011 15:51:39 +0000 (15:51 +0000)]
also turn off fog on blendfuncs that cannot handle it

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

13 years agomove glsl/default.glsl embedded file out to its own header file
havoc [Sat, 5 Mar 2011 23:38:23 +0000 (23:38 +0000)]
move glsl/default.glsl embedded file out to its own header file
move hlsl/default.hlsl embedded file out to its own header file

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

13 years agoinstead, define the FILE_OFFSET_BITS part in the build environment, and remove it...
divverent [Sat, 5 Mar 2011 14:59:14 +0000 (14:59 +0000)]
instead, define the FILE_OFFSET_BITS part in the build environment, and remove it from quakedef.h as it is not reliable there

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

13 years agofix compile problem on win32
divverent [Sat, 5 Mar 2011 06:46:23 +0000 (06:46 +0000)]
fix compile problem on win32

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

13 years agomove the "quakedef.h" include, which gives us _FILE_OFFSET_BITS=64, above all system...
divverent [Fri, 4 Mar 2011 23:36:37 +0000 (23:36 +0000)]
move the "quakedef.h" include, which gives us _FILE_OFFSET_BITS=64, above all system header includes

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

13 years agoput back the changes that make >2GB work (fix signedness)
divverent [Fri, 4 Mar 2011 23:36:34 +0000 (23:36 +0000)]
put back the changes that make >2GB work (fix signedness)

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

13 years agoRevert "properly use lseek64 on Linux for files larger than 2GB" because it breaks...
divverent [Fri, 4 Mar 2011 23:36:31 +0000 (23:36 +0000)]
Revert "properly use lseek64 on Linux for files larger than 2GB" because it breaks compilation on FreeBSD (no lseek64 there, file offsets are always 64bit)

This reverts commit 6095a33fdc4a434d11de102b445515021847cfce.

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

13 years agoCSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per...
divverent [Sun, 20 Feb 2011 21:32:47 +0000 (21:32 +0000)]
CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per frame; to compensate, increase max frames from 64 to 256.

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

13 years agoCSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this...
divverent [Sun, 20 Feb 2011 15:50:40 +0000 (15:50 +0000)]
CSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this needs not trigger a new resend!

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

13 years agofix zfighting on decals in D3D9 (where negative polygon offset isn't possible)
havoc [Fri, 4 Mar 2011 00:36:36 +0000 (00:36 +0000)]
fix zfighting on decals in D3D9 (where negative polygon offset isn't possible)

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

13 years agoupdate HLSL shader to no longer swap R/B color components on vertex
havoc [Thu, 3 Mar 2011 17:53:37 +0000 (17:53 +0000)]
update HLSL shader to no longer swap R/B color components on vertex
colors, as they are no longer being sent as D3DCOLOR

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

13 years agoeliminated color4ub vertex formats, now everything is float, this fixes color wrappin...
havoc [Thu, 3 Mar 2011 17:48:26 +0000 (17:48 +0000)]
eliminated color4ub vertex formats, now everything is float, this fixes color wrapping/clamping issues in D3D9 renderer

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

13 years agofix rounding error that caused a memory block overflow in steelstorm when loading...
havoc [Thu, 3 Mar 2011 15:56:55 +0000 (15:56 +0000)]
fix rounding error that caused a memory block overflow in steelstorm when loading certain sound files

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

13 years agobouncegrid now uses interpolated photon accumulation, looks better
havoc [Thu, 3 Mar 2011 01:43:32 +0000 (01:43 +0000)]
bouncegrid now uses interpolated photon accumulation, looks better

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

13 years agoskip backfaces in surface traceline
havoc [Thu, 3 Mar 2011 00:48:23 +0000 (00:48 +0000)]
skip backfaces in surface traceline

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

13 years agoreplaced r_shadow_bouncegrid_particlespacing with
havoc [Thu, 3 Mar 2011 00:41:14 +0000 (00:41 +0000)]
replaced r_shadow_bouncegrid_particlespacing with
r_shadow_bouncegrid_photons which makes the number of photons traced per
frame completely uniform, fixing performance issues in some maps

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

13 years agofixed surface traceline code, bouncegrid looks a lot better now
havoc [Wed, 2 Mar 2011 23:58:20 +0000 (23:58 +0000)]
fixed surface traceline code, bouncegrid looks a lot better now

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

13 years agomake r_shadow_shadowmapping 1 by default, this loses some fps but the
havoc [Wed, 2 Mar 2011 20:31:33 +0000 (20:31 +0000)]
make r_shadow_shadowmapping 1 by default, this loses some fps but the
quality is worth it

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

13 years agowe don't like typos in cvar descriptions
havoc [Wed, 2 Mar 2011 18:51:56 +0000 (18:51 +0000)]
we don't like typos in cvar descriptions

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

13 years agofix two compile errors in D3D9 build
havoc [Tue, 1 Mar 2011 23:02:05 +0000 (23:02 +0000)]
fix two compile errors in D3D9 build

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

13 years agoq1bsp traceline code now hits surfaces, this comes at a performance cost
havoc [Tue, 1 Mar 2011 18:16:44 +0000 (18:16 +0000)]
q1bsp traceline code now hits surfaces, this comes at a performance cost
but was necessary for bouncegrid to acquire color of surfaces, it also
means that quakec code can now use trace_dphittexture on q1bsp maps
disabled bouncegrid on fullbright surfaces (fixes bright coronas bug)
tweaked bouncegrid settings again now that texture color works

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

13 years agoremove more r_shadow_particletrace code I missed in the last commit
havoc [Tue, 1 Mar 2011 07:24:43 +0000 (07:24 +0000)]
remove more r_shadow_particletrace code I missed in the last commit

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

13 years agoremoved r_shadow_particletrace code and shader because it was never
havoc [Tue, 1 Mar 2011 07:23:37 +0000 (07:23 +0000)]
removed r_shadow_particletrace code and shader because it was never
usable performance, made obsolete by r_shadow_bouncegrid which looks
much nicer

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

13 years agofix two typos (one a compile error, one a code error)
havoc [Tue, 1 Mar 2011 05:33:58 +0000 (05:33 +0000)]
fix two typos (one a compile error, one a code error)

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

13 years agobouncegrid particles now scale by 0.5 if texture is not reported
havoc [Tue, 1 Mar 2011 03:42:36 +0000 (03:42 +0000)]
bouncegrid particles now scale by 0.5 if texture is not reported

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

13 years agobouncegrid now uses high precision 48bpp accumulation array while also
havoc [Tue, 1 Mar 2011 01:18:10 +0000 (01:18 +0000)]
bouncegrid now uses high precision 48bpp accumulation array while also
updating the 32bpp low precision texture, so low particleintensity
values no longer break, and high maxbounces values actually do work,
bouncegrid maxbounces reduced to 3 and particleintensity adjusted,
bouncegrid no longer reallocates the pixel array every update (this
fixed the black flicker bug... odd)

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

13 years agoonly update r_shadow_bouncegridmatrix when a texture update occurs -
havoc [Mon, 28 Feb 2011 23:46:50 +0000 (23:46 +0000)]
only update r_shadow_bouncegridmatrix when a texture update occurs -
otherwise it can render very weirdly while moving if the updateinterval
is greater than the frametime

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

13 years agochanged offsetmapping to use forward step math, greatly improved quality
havoc [Mon, 28 Feb 2011 20:34:51 +0000 (20:34 +0000)]
changed offsetmapping to use forward step math, greatly improved quality
changed HLSL shader offsetmapping to 2 sample to match GLSL

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

13 years agoproperly use lseek64 on Linux for files larger than 2GB
havoc [Mon, 28 Feb 2011 19:48:49 +0000 (19:48 +0000)]
properly use lseek64 on Linux for files larger than 2GB
fix pak and pk3 loading to use unsigned int to allow 4GB archives rather
than erroring on files beyond 2GB

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

13 years agofix compilation on SDL 1.2 again
havoc [Mon, 28 Feb 2011 19:33:00 +0000 (19:33 +0000)]
fix compilation on SDL 1.2 again

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

13 years agoexperimental touchscreen support, intended for mobile devices, not very playable yet
havoc [Sun, 27 Feb 2011 18:38:25 +0000 (18:38 +0000)]
experimental touchscreen support, intended for mobile devices, not very playable yet
some hacks for keyboard input on ios because SDL 1.3 has some bugs still

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

13 years agoadded support for SDL_Window API but it is disabled by default until SDL
havoc [Sat, 26 Feb 2011 18:02:16 +0000 (18:02 +0000)]
added support for SDL_Window API but it is disabled by default until SDL
1.3 is more mature (this API's mouse input seems to be broken on Linux)
rewrote MapKey to use a switch statement on the actual SDLK_ enum values
rather than a lookup table (the lookup table did not work with SDL 1.3
events because SDLK_ values changed)
added vid_touchscreen cvar as part of mobile device support

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

13 years agofix a crash with non-power-of-two particle textures
havoc [Sat, 26 Feb 2011 17:55:03 +0000 (17:55 +0000)]
fix a crash with non-power-of-two particle textures

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

13 years agoa fix for the gamemode table if someone edits it to have a "" prog_name
havoc [Sat, 26 Feb 2011 17:54:18 +0000 (17:54 +0000)]
a fix for the gamemode table if someone edits it to have a "" prog_name
match string in a position after the first slot

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

13 years agoreworked the entire config loading system for the gamedir command
havoc [Fri, 25 Feb 2011 19:05:21 +0000 (19:05 +0000)]
reworked the entire config loading system for the gamedir command
gamedir switch now fully resets command/alias/cvar state
FS_Rescan function now automatically switches gamemode based on
first specified gamedir (mission pack hud, gameplayfix cvars, etc)

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

13 years agotypo fix
eihrul [Fri, 25 Feb 2011 12:37:49 +0000 (12:37 +0000)]
typo fix

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

13 years agoattempted fix for macosx compilation issues
eihrul [Fri, 25 Feb 2011 11:50:01 +0000 (11:50 +0000)]
attempted fix for macosx compilation issues

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

13 years agofix two compile errors on D3D9
havoc [Thu, 24 Feb 2011 08:36:56 +0000 (08:36 +0000)]
fix two compile errors on D3D9

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

13 years agofix compile error on D3D9
havoc [Thu, 24 Feb 2011 08:31:48 +0000 (08:31 +0000)]
fix compile error on D3D9

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

13 years agouse dynamic eye position-centered bouncegrid when rendering in dynamic
havoc [Thu, 24 Feb 2011 08:02:39 +0000 (08:02 +0000)]
use dynamic eye position-centered bouncegrid when rendering in dynamic
mode, to reduce upload memory usage on large maps (albeit at a cost of
not covering the entire map in some cases)
changed back to specular reflection (true mirror) bouncing of particles
(can be changed with the r_shadow_bouncegrid_bounceanglediffuse cvar)
because it gets rid of some dark corner artifacts

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

13 years agooops, forgot to include the shader code for the r_shadow_bouncegrid feature
havoc [Wed, 23 Feb 2011 17:02:03 +0000 (17:02 +0000)]
oops, forgot to include the shader code for the r_shadow_bouncegrid feature

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

13 years agoadded r_shadow_bouncegrid cvar, this feature does realtime global
havoc [Wed, 23 Feb 2011 16:13:24 +0000 (16:13 +0000)]
added r_shadow_bouncegrid cvar, this feature does realtime global
illumination by particle tracing and uploading a new 3D texture every
frame containing the lighting

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

13 years agoimplemented r_shadow_particletrace cvar which enables an exceptionally
havoc [Mon, 21 Feb 2011 10:57:49 +0000 (10:57 +0000)]
implemented r_shadow_particletrace cvar which enables an exceptionally
slow realtime global illumination deferred rendering technique,
UNPLAYABLE framerates with this option on, some rendering artifacts,
experimental only

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

13 years agoCSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per...
divverent [Sun, 20 Feb 2011 21:32:47 +0000 (21:32 +0000)]
CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per frame; to compensate, increase max frames from 64 to 256.

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

13 years agoCSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this...
divverent [Sun, 20 Feb 2011 15:50:40 +0000 (15:50 +0000)]
CSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this needs not trigger a new resend!

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

13 years agoadd missing args to Cmd_QuoteString in other files
divverent [Sat, 19 Feb 2011 20:00:18 +0000 (20:00 +0000)]
add missing args to Cmd_QuoteString in other files

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

13 years agoadd missing args to Cmd_QuoteString in other files
divverent [Sat, 19 Feb 2011 20:00:18 +0000 (20:00 +0000)]
add missing args to Cmd_QuoteString in other files

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

13 years agoFix bad ipv6 support in status 1 and 2 commands:
divverent [Sat, 19 Feb 2011 16:36:39 +0000 (16:36 +0000)]
Fix bad ipv6 support in status 1 and 2 commands:

header not adapted to the new layout and overall ipv6 IPs not fully displayed

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

13 years agoCmd_QuoteString: make it also able to put the enclosing quotation marks
divverent [Sat, 19 Feb 2011 16:31:16 +0000 (16:31 +0000)]
Cmd_QuoteString: make it also able to put the enclosing quotation marks

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

13 years agoFix bad ipv6 support in status 1 and 2 commands:
divverent [Sat, 19 Feb 2011 16:36:39 +0000 (16:36 +0000)]
Fix bad ipv6 support in status 1 and 2 commands:

header not adapted to the new layout and overall ipv6 IPs not fully displayed

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10850 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoCmd_QuoteString: make it also able to put the enclosing quotation marks
divverent [Sat, 19 Feb 2011 16:31:16 +0000 (16:31 +0000)]
Cmd_QuoteString: make it also able to put the enclosing quotation marks

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

13 years agofix an unused variable
divverent [Wed, 16 Feb 2011 10:47:47 +0000 (10:47 +0000)]
fix an unused variable

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