]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
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
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
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
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
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
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
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
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
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
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
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
havoc [Thu, 28 Oct 2010 21:54:15 +0000 (21:54 +0000)]
fix MSVC2008 compilation again
fix some warnings in MSVC2008
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10563
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 22 Oct 2010 22:23:53 +0000 (22:23 +0000)]
explain more why physics_ode is 0 by default
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10562
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 22 Oct 2010 22:20:34 +0000 (22:20 +0000)]
fix a warning in ODE code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10561
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 22 Oct 2010 22:18:59 +0000 (22:18 +0000)]
ODE: if we enable it by default on Win32, we should do so anywhere; also add a cvar physics_ode as master switch for ODE physics (0 by default)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10560
d7cf8633 -e32d-0410-b094-
e92efae38249
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
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
havoc [Fri, 22 Oct 2010 18:05:57 +0000 (18:05 +0000)]
enable ODE dll support by default on windows
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10557
d7cf8633 -e32d-0410-b094-
e92efae38249
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
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
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
divverent [Tue, 19 Oct 2010 06:29:53 +0000 (06:29 +0000)]
fix a D3D compile error
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10553
d7cf8633 -e32d-0410-b094-
e92efae38249
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
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
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
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
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
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
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
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
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
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
divverent [Sun, 17 Oct 2010 13:19:52 +0000 (13:19 +0000)]
fix typo
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10542
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 17 Oct 2010 13:18:40 +0000 (13:18 +0000)]
quick and dirty fix of allocation of array buffers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10541
d7cf8633 -e32d-0410-b094-
e92efae38249
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
divverent [Wed, 29 Sep 2010 07:10:49 +0000 (07:10 +0000)]
fix lightmap switching/batching in fakelight
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10506
d7cf8633 -e32d-0410-b094-
e92efae38249
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
divverent [Tue, 28 Sep 2010 12:04:38 +0000 (12:04 +0000)]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
divverent [Fri, 24 Sep 2010 11:11:11 +0000 (11:11 +0000)]
remove more unused code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10488
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 24 Sep 2010 11:07:38 +0000 (11:07 +0000)]
remove another unused variable
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10487
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 24 Sep 2010 11:07:27 +0000 (11:07 +0000)]
remove two unused vars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10486
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 24 Sep 2010 10:36:53 +0000 (10:36 +0000)]
fix another bug in the prologic patch :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10485
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 05:17:14 +0000 (05:17 +0000)]
allow bgmvolume to be > 1 to be able to exceed mastervolume (but this and other "> 1" values are still clamped to 10, i.e. 10 dB); apply ReplayGain in SND_Spatialize instead of early when setting channel volume to better guard against clipping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10484
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 05:17:09 +0000 (05:17 +0000)]
change clamping logic
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10483
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 05:17:05 +0000 (05:17 +0000)]
expand volume accuracy from 8bit to 16bit; allow channel volume values to be > 1, and clamp the resulting volume
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10482
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 04:40:22 +0000 (04:40 +0000)]
fix ambient sounds in prologic
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10481
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 22 Sep 2010 16:21:11 +0000 (16:21 +0000)]
fix a compile error and some warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10480
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 22 Sep 2010 16:11:52 +0000 (16:11 +0000)]
ProLogic patch by Joris Nijnuis, with some fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10479
d7cf8633 -e32d-0410-b094-
e92efae38249
vortex [Tue, 21 Sep 2010 21:49:23 +0000 (21:49 +0000)]
Fix GAME_XONOTIC beging misplaced in gamemode_t->gamemode_info causing "gamemode" to be initialized wrong. CSQC now knows "view_punchvector" and "view_punchangle" globals which is what it used to be.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10478
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Tue, 21 Sep 2010 19:35:20 +0000 (19:35 +0000)]
Fixed dynamic light shadowmapping in D3D, still gotta fix them in deferred
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10477
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Sat, 18 Sep 2010 22:45:49 +0000 (22:45 +0000)]
Fixed the x axis flipped shadows, 1 step closer to getting all this to work perfecty in d3d9
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10476
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)]
don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth on SetDepthStencilSurface calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10475
d7cf8633 -e32d-0410-b094-
e92efae38249