]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
havoc [Sat, 17 Oct 2009 11:21:37 +0000 (11:21 +0000)]
limit shadowmap maxsize to a value based on gl_max_size
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9344
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 17 Oct 2009 10:11:11 +0000 (10:11 +0000)]
changed submodel polygonoffset from 2 to 4 to fix the lift to the quad
secret in e1m1
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9343
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 16 Oct 2009 18:31:38 +0000 (18:31 +0000)]
added r_shadow_dot3 cvar to control whether GL1.3 hardware uses dot3
bumpmapping or not, since on older hardware it can be quite demanding it
defaults off
changed default of gl_combine back to 1 now that the only expensive
feature (dot3 bumpmapping) is on a separate cvar
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9342
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 16 Oct 2009 16:31:44 +0000 (16:31 +0000)]
turn off gl_combine by default, it's just too nasty for old cards
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9341
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 16 Oct 2009 15:28:36 +0000 (15:28 +0000)]
reorganized sv.writeentitiestoclient handling of Mod_CanSeeBox, no
longer tests player prediction for every entity, reworked to accommodate
support for portals and other remote cameras at some point in the future
added mod_q3bsp_tracelineofsight_brushes cvar (defaults to 0)
added sv_cullentities_trace_entityocclusion cvar (defaults to 0) which
enables a form of visibility culling even in entirely dynamic scenes
(for example instanced buildings)
these cvars allow much more aggressive culling at a higher cost
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9340
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 16 Oct 2009 15:07:57 +0000 (15:07 +0000)]
changed handling of forbidden world writes - they are now only a
warning, and still perform the actual write, additionally the check has
been moved from OP_ADDRESS to OP_STOREP_* and now prints what field is
being written
changed the nature of pointer fields (which are only written by
OP_ADDRESS and read by OP_STOREP_*) to use an index (like field offsets)
instead of a byte offset, this made it a little easier to print the
field offset on world write warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9339
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Oct 2009 09:44:46 +0000 (09:44 +0000)]
do not use VBOs when gl_mesh_testarrayelement is 1
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9337
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Oct 2009 09:20:11 +0000 (09:20 +0000)]
fixed bug with gl_paranoid 1 when gl_vbo is 0 where element3s contained
no valid triangles because they were not initialized by Mod_BuildVBOs
moved unfinished OBJ loader from alias code to brush code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9336
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Oct 2009 09:18:02 +0000 (09:18 +0000)]
process particles/decals movement even if r_drawparticles/r_drawdecals is 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9335
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Oct 2009 09:13:35 +0000 (09:13 +0000)]
disable glLineWidth setting because it is producing gl errors on ATI
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9334
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Mon, 12 Oct 2009 20:03:55 +0000 (20:03 +0000)]
disabled old shadowmap lod formula entirely
renamed r_shadow_shadowmapping_precision cvar to r_shadow_shadowmapping_depthbits
r_shadow_shadowmapping_precision cvar now describes the ratio of shadowmap texels to world units
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9333
d7cf8633 -e32d-0410-b094-
e92efae38249
vortex [Mon, 12 Oct 2009 19:30:54 +0000 (19:30 +0000)]
Experimental r_shadow_shadowmapping_quality cvar which makes a lightradius-based shadowmap resolution calculation instead of LOD'ed one. Quality 1 will make shadowmapres 200 for light with radius 200, quality 0.5 will make 100 for same light. LOD is used, but in other manner, currently no parms for it.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9332
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Mon, 12 Oct 2009 16:01:09 +0000 (16:01 +0000)]
support slope-dependent shadowmap biasing with polygon offset
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9331
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 11 Oct 2009 17:18:51 +0000 (17:18 +0000)]
restrict the protocols libcurl allows when redirecting for security reasons, and show a message if this fails
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9330
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 11 Oct 2009 10:00:47 +0000 (10:00 +0000)]
increase the accuracy of r_bloom_brighten a bit (or make high values work at all)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9329
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 10 Oct 2009 11:57:26 +0000 (11:57 +0000)]
fix bug that caused newlines of console lines to be cut off (this made pasting fail)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9328
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 10 Oct 2009 11:52:40 +0000 (11:52 +0000)]
fix r_bloom_blur logic to not change brightness any more
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9327
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 8 Oct 2009 14:54:05 +0000 (14:54 +0000)]
rearrange r_shadow_shadowmap_texturetype settings so -1 = autoselect, 0 = 2D, 1 = rect, 2 = cubemap
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9326
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 8 Oct 2009 14:43:44 +0000 (14:43 +0000)]
use R_SHADOW_SHADOWMODE_ enum for shadowmode for readability
fix regression in cubemap texturetype for shadowmapping
only use one FBO per shadowmap cubemap lod and update depth attachment per side transition
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9325
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 8 Oct 2009 13:40:14 +0000 (13:40 +0000)]
only honor r_shadow_shadowmapping cvar if both GLSL & FBO support are available
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9324
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Oct 2009 13:38:07 +0000 (13:38 +0000)]
check gl_support_fragment_shader before setting up shadowmode
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9323
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 7 Oct 2009 17:37:48 +0000 (17:37 +0000)]
fix for noselfshadow entities no culling from shadowmap sides properly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9322
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 7 Oct 2009 17:10:47 +0000 (17:10 +0000)]
avoid repeatedly thrashing GL state when switching shadowmap sides
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9321
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 7 Oct 2009 13:18:13 +0000 (13:18 +0000)]
improved culling of shadowmap sides against view frustum
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9320
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 7 Oct 2009 01:00:32 +0000 (01:00 +0000)]
use bounding boxes for shadowmap side culling instead of spheres for better accuracy
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9319
d7cf8633 -e32d-0410-b094-
e92efae38249
vortex [Tue, 6 Oct 2009 22:44:11 +0000 (22:44 +0000)]
Added reliable Q3BSP tangentspace/modelspace deluxemaps detection method to support q3map2 FS-R8 (and maybe other q3map2 forks). Entity loader checks for "deluxeMaps" worldspawn key. It should be '1' if deluxemaps are modelspace, and '2' for tangentspace ones. Otherwise old modelspace deluxemaps detection is used.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9318
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Tue, 6 Oct 2009 19:57:39 +0000 (19:57 +0000)]
fixed biasing issue in shadowmap frustum culling
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9317
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Tue, 6 Oct 2009 19:24:41 +0000 (19:24 +0000)]
improved shadowmap side culling
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9316
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Tue, 6 Oct 2009 12:11:24 +0000 (12:11 +0000)]
use cached matrix elements for calculating determinant
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9315
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 6 Oct 2009 11:47:58 +0000 (11:47 +0000)]
even better matrix inversion (will test it later), in benchmarks it was slightly faster than the mesa one
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9314
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Tue, 6 Oct 2009 10:14:39 +0000 (10:14 +0000)]
disable some slow code (clearing unused parameters in an array)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9313
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 15:05:07 +0000 (15:05 +0000)]
fix typo :P
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9312
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 14:25:57 +0000 (14:25 +0000)]
fix typo elsif
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9311
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 14:07:09 +0000 (14:07 +0000)]
add yet another (disabled) variant of determinants
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9310
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Mon, 5 Oct 2009 10:45:29 +0000 (10:45 +0000)]
if(foo = false) -> if(foo == false) bug fix
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9309
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 5 Oct 2009 09:55:00 +0000 (09:55 +0000)]
faster Matrix4x4_Invert_Full based on David Moore code in Mesa 7.6
(SGI Free License B - which is MIT/X11-type), previous version was from
Mesa 5.0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9308
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 08:25:22 +0000 (08:25 +0000)]
rename them to dp_glossintensitymod and dp_glossexponentmod
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9307
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 08:01:43 +0000 (08:01 +0000)]
while I am at it, also dp_specularscalemod
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9306
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 5 Oct 2009 07:59:44 +0000 (07:59 +0000)]
new shader keyword: dp_specularpowermod 2, makes gloss have 2x the usual specular power
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9305
d7cf8633 -e32d-0410-b094-
e92efae38249
vortex [Sun, 4 Oct 2009 22:38:47 +0000 (22:38 +0000)]
-added game Blood Omnicide
-added r_shadow_gloss2exponent (gloss exponent for forced gloss surfaces), this don't work for Dot3 pieline however, i'm used this to make "wet surfaces when rain falls" in Blood Omnicide
-added DP_CSQC_ENTITYTRANSPARENTSORTING_OFFSET, DP_CSQC_ENTITYNOCULL, DP_CSQC_SPAWNPARTICLE. Definitions are here: http://darkmaster.quakedev.com/work/csqc_new_ext.qc
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9304
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 4 Oct 2009 18:35:00 +0000 (18:35 +0000)]
also don't call PostThink on disconnected clients ;)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9303
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 12:35:50 +0000 (12:35 +0000)]
added sv_gameplayfix_consistentplayerprethink which defaults on - this
cvar causes SV_Physics to call all PlayerPreThink functions, then move
all players, then call PlayerPostThink functions, then move all
entities, to improve consistency of firing/moving in multiplayer
in singleplayer this has no effect at all (because there is only one
client)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9302
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 11:35:47 +0000 (11:35 +0000)]
added DP_ENT_GLOWMOD extension, like DP_ENT_COLORMOD but alters glow
color (fullbrights or glow texture) instead of diffuse
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9300
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 4 Oct 2009 10:12:57 +0000 (10:12 +0000)]
tell QC about pixelheight too
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9299
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 02:59:46 +0000 (02:59 +0000)]
changed uniform GlowScale to GlowColor
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9298
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 02:10:35 +0000 (02:10 +0000)]
duplicated PRVM_ExecuteProgram to become MVM_ExecuteProgram,
CLVM_ExecuteProgram, SVVM_ExecuteProgram - all identical but this
greatly improves profiling reports
split calls to SV_LinkEdict into SV_LinkEdict and
SV_LinkEdict_TouchAreaGrid because the SV_LinkEdict profile report
looked nasty but it was only SV_LinkEdict_TouchAreaGrid to blame
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9297
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 02:07:05 +0000 (02:07 +0000)]
use one markframe variable
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9296
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 00:32:47 +0000 (00:32 +0000)]
audited trace.endpos code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9295
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 00:31:48 +0000 (00:31 +0000)]
fix another case of Trace.endpos being set too early
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9294
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 4 Oct 2009 00:31:17 +0000 (00:31 +0000)]
fix bug in last patch - must set trace.endpos AFTER calling TracePoint
function, because it memsets the trace
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9293
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Oct 2009 22:53:55 +0000 (22:53 +0000)]
split CL_Move into CL_TracePoint, CL_TraceLine, CL_TraceBox and similar
for SV_Move
split code paths for tracing lines and points out from box code
this is for better profiling reports because single statistics for Box,
Line and Point traces are unfair to the performance of line and point
traces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9292
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Oct 2009 22:47:13 +0000 (22:47 +0000)]
added r_renderview cvar (similar to scr_refresh but disables only 3D
renders)
reworked scr_refresh and r_render cvars to only disable certain
rendering operations
changed where Sbar_ShowFPS code is called so that it appears even if
r_letterbox is on, and updates even while scr_refresh is 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9291
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 3 Oct 2009 17:37:04 +0000 (17:37 +0000)]
fix two not freed search handles
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9290
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 3 Oct 2009 11:44:02 +0000 (11:44 +0000)]
remove now unneeded code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9289
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 3 Oct 2009 11:37:12 +0000 (11:37 +0000)]
fix connect after getchallenge, rcon, getchallenge sequence
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9288
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 3 Oct 2009 11:06:49 +0000 (11:06 +0000)]
fix two bugs in srcon/rcon_secure 2. It now WORKS.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9287
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Oct 2009 04:07:39 +0000 (04:07 +0000)]
minor optimization to CL_RelinkLightFlashes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9286
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Oct 2009 02:09:51 +0000 (02:09 +0000)]
enable networking clients as legacy even with sv_onlycsqcnetworking
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9285
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Oct 2009 02:01:16 +0000 (02:01 +0000)]
added cvar sv_onlycsqcnetworking which disables legacy entity
networking, improving server performance for games that do not use
legacy entities
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9284
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Sat, 3 Oct 2009 01:20:51 +0000 (01:20 +0000)]
compile separate index lists for each cubemap shadowmap side
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9283
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 2 Oct 2009 10:25:17 +0000 (10:25 +0000)]
try making srcon work better with many rcon comamnds queued
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9282
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Oct 2009 09:57:06 +0000 (09:57 +0000)]
another fix
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9281
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Oct 2009 09:44:41 +0000 (09:44 +0000)]
possible bugfix for r_water bugs introduced recently
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9280
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 2 Oct 2009 09:22:33 +0000 (09:22 +0000)]
sorry for this 100% untested change... making srcon use the new challenge-based protocol (but rcon_secure 1 and rcon still uses the time-based one as that's faster and more reliable).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9279
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 2 Oct 2009 08:19:58 +0000 (08:19 +0000)]
rcon_secure: alternative getchallenge-based authentication that doesn't rely on the system time (server side only at the moment)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9278
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Fri, 2 Oct 2009 04:47:56 +0000 (04:47 +0000)]
added cvar r_shadow_shadowmapping_precision to control minimum shadowmap depth precision
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9277
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Fri, 2 Oct 2009 04:13:31 +0000 (04:13 +0000)]
stub out face culling for shadowmapping temporarily
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9276
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Fri, 2 Oct 2009 02:55:06 +0000 (02:55 +0000)]
enable backface culling for shadowmap rendering
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9275
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 18:32:29 +0000 (18:32 +0000)]
use nearest filtering on VSDCT
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9274
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 17:30:00 +0000 (17:30 +0000)]
avoid unnecessary texture offset scaling in shadowmap lookups
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9273
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 16:09:44 +0000 (16:09 +0000)]
better VSDCT transform
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9272
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 06:31:41 +0000 (06:31 +0000)]
GLSL compiler variable declaration workaround
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9271
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 06:08:31 +0000 (06:08 +0000)]
default to using texture rectangle shadowmaps when available
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9270
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 05:43:23 +0000 (05:43 +0000)]
automagically select best shadowmapping filter mode depending on hardware
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9269
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 1 Oct 2009 03:05:06 +0000 (03:05 +0000)]
use 4 periods in ALSA instead of 2 for lower latency if possible
request a power of 2 buffer size in ALSA (maybe better compatibility)
thanks to Diablo-D3 for a patch I based this functionality on
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9268
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 02:36:37 +0000 (02:36 +0000)]
added a cheaper 3x3 PCF settings for shadowmaps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9267
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Thu, 1 Oct 2009 01:32:42 +0000 (01:32 +0000)]
depth texture mode fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9266
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 30 Sep 2009 19:40:12 +0000 (19:40 +0000)]
fixed water rendering in shrunken views
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9265
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 15:26:55 +0000 (15:26 +0000)]
shadowmap projection fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9264
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 12:49:54 +0000 (12:49 +0000)]
make use of virtual shadow depth cube texture optional
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9263
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 11:39:12 +0000 (11:39 +0000)]
ALU cubemap indirection fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9262
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 30 Sep 2009 10:51:36 +0000 (10:51 +0000)]
clarify surfedge handling with a comment about surfedge 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9261
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 10:20:58 +0000 (10:20 +0000)]
added support for more shadowmap2D PCF modes and provisional fetch4 PCF
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9260
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 30 Sep 2009 09:59:33 +0000 (09:59 +0000)]
use hash lookups on shader permutations to greatly reduce memory usage
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9259
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 09:05:19 +0000 (09:05 +0000)]
disable compare mode on shadowmapcube when not using filtering
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9258
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 08:59:11 +0000 (08:59 +0000)]
added in stub permutations for shadowmap2d and shadowmapcube cases
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9257
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 08:22:10 +0000 (08:22 +0000)]
restoring scaffolding for cubemap and 2D shadowmaps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9256
d7cf8633 -e32d-0410-b094-
e92efae38249
eihrul [Wed, 30 Sep 2009 06:00:37 +0000 (06:00 +0000)]
added indirection cube map for shadowmapping and revised filtering modes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9255
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 28 Sep 2009 23:06:34 +0000 (23:06 +0000)]
fix two bugs related to textype_t pointed out by Lee Salzman, both
affecting shadowmap setup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9254
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 28 Sep 2009 22:20:32 +0000 (22:20 +0000)]
fix stencil clear
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9253
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 28 Sep 2009 22:09:19 +0000 (22:09 +0000)]
fix allocation of 2D shadowmap textures when the first light LOD is
below maxsize
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9252
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Sep 2009 14:47:36 +0000 (14:47 +0000)]
when fixing vertex indexes, reject the map instead of segfaulting if vertex index 0 is invalid too
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9251
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 27 Sep 2009 20:23:44 +0000 (20:23 +0000)]
fix screenshot hw gamma check
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9250
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 27 Sep 2009 19:08:23 +0000 (19:08 +0000)]
fix inverse logic in "important" local
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9249
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Sep 2009 18:09:38 +0000 (18:09 +0000)]
change cl.time check back
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9248
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Sep 2009 17:59:14 +0000 (17:59 +0000)]
fix outgoing netgraph anomalies (caused by cl_maxfps > cl_netfps)
made msecdelta checks a bit more sane
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9247
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Sep 2009 05:15:30 +0000 (05:15 +0000)]
change MAX_CLIP_PLANES from 32 to 5 (back to old value)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9246
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 26 Sep 2009 18:40:01 +0000 (18:40 +0000)]
fix several bugs with viewport code (r_shadows works again, r_water
works again)
fixed a bug where r_hdr might cause multiple reallocations of textures
every frame in r_water code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9245
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 26 Sep 2009 18:30:05 +0000 (18:30 +0000)]
rename r_shadows_drawafterrtlightning to r_shadows_drawafterrtlighting
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9244
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 26 Sep 2009 18:15:41 +0000 (18:15 +0000)]
network CSQC and network entities separately (should prevent bugs when an entity suddenly gets SendEntity assigned, which can happen during entity reuse)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9243
d7cf8633 -e32d-0410-b094-
e92efae38249