divverent/darkplaces.git
10 years agoadd support for fixed joints (jointtype -1), debug only according to ODE docs
divverent [Fri, 23 Oct 2009 13:57:50 +0000 (13:57 +0000)]
add support for fixed joints (jointtype -1), debug only according to ODE docs

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

10 years agofix FLT_MAX on visual studio sucky compiler
divverent [Fri, 23 Oct 2009 13:23:17 +0000 (13:23 +0000)]
fix FLT_MAX on visual studio sucky compiler

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

10 years agoadd missing dInfinity
divverent [Fri, 23 Oct 2009 13:06:05 +0000 (13:06 +0000)]
add missing dInfinity

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

10 years agoadd two missing functions
divverent [Fri, 23 Oct 2009 13:03:02 +0000 (13:03 +0000)]
add two missing functions

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

10 years agomore ODE fixes
divverent [Fri, 23 Oct 2009 13:01:52 +0000 (13:01 +0000)]
more ODE fixes

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

10 years agomake ODE entities call touch functions
divverent [Fri, 23 Oct 2009 09:11:54 +0000 (09:11 +0000)]
make ODE entities call touch functions

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

10 years agospeed up ODE by not creating bodies for non-physics entities any more (only creating...
divverent [Fri, 23 Oct 2009 07:07:42 +0000 (07:07 +0000)]
speed up ODE by not creating bodies for non-physics entities any more (only creating geoms now); fix speed limit code to no longer cause "butterfly flying"

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

10 years agohacky and experimental DP_LIGHTSTYLE_STATICVALUE extension, allows alternative 'stati...
vortex [Thu, 22 Oct 2009 22:54:35 +0000 (22:54 +0000)]
hacky and experimental DP_LIGHTSTYLE_STATICVALUE extension, allows alternative 'static' lightstyle syntax : "=value", examples: "=0.5", "=2.0", "=2.75". Could be safely used on CSQC side, but SVQC use is limited - other engines connecting to such server will misunderstand this style definition.

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

10 years agofix ODE_DYNAMIC makefile stuff
divverent [Thu, 22 Oct 2009 11:26:54 +0000 (11:26 +0000)]
fix ODE_DYNAMIC makefile stuff

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

10 years agomakefile: new flag DP_ODE_DYNAMIC
divverent [Thu, 22 Oct 2009 09:02:17 +0000 (09:02 +0000)]
makefile: new flag DP_ODE_DYNAMIC

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

10 years agofix warning
divverent [Thu, 22 Oct 2009 08:59:35 +0000 (08:59 +0000)]
fix warning

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

10 years agodue to huge slowdowns even in non-ODE using games (probably from body syncing), turn...
divverent [Thu, 22 Oct 2009 08:58:55 +0000 (08:58 +0000)]
due to huge slowdowns even in non-ODE using games (probably from body syncing), turn off ODE_DYNAMIC by default again until this is solved (e.g. by performing no ODE stuff if there is no single MOVETYPE_PHYSICS ent)

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

10 years agomovedir stuff
divverent [Thu, 22 Oct 2009 08:11:00 +0000 (08:11 +0000)]
movedir stuff

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

10 years agomake movedir_y fps independent
divverent [Thu, 22 Oct 2009 08:08:29 +0000 (08:08 +0000)]
make movedir_y fps independent

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

10 years agomake springs use fps- and physics-engine independent movedir values:
divverent [Thu, 22 Oct 2009 08:01:15 +0000 (08:01 +0000)]
make springs use fps- and physics-engine independent movedir values:
_x = spring constant (also applies to internal constraints), set to -1 for "ultra-hard" joint
_y = maximum spring force to apply (0 = no spring)
_z = dampening (only works if _y is not 0)

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

10 years agoexperimental support for springs:
divverent [Thu, 22 Oct 2009 07:49:55 +0000 (07:49 +0000)]
experimental support for springs:
movedir_x = joint CFM value (works for non-springs too)
movedir_y = spring force
movedir_z = spring ERP value

But maybe we should, instead of raw CFM and ERP, supply spring constant and dampening coefficient (see http://www.ode.org/old_list_archives/2006-January/017614.html)?

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

10 years agoadd missing declarations
divverent [Thu, 22 Oct 2009 07:25:16 +0000 (07:25 +0000)]
add missing declarations

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

10 years agochange cl_lerping interpolation model from euler angles interpolation to forward...
divverent [Thu, 22 Oct 2009 07:19:57 +0000 (07:19 +0000)]
change cl_lerping interpolation model from euler angles interpolation to forward/up vector interpolation to prevent problems near the singularity of euler angles

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

10 years agoadd cvars for world erp and cfm; remove pistons for ODE 0.9 support
divverent [Thu, 22 Oct 2009 07:13:12 +0000 (07:13 +0000)]
add cvars for world erp and cfm; remove pistons for ODE 0.9 support

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

10 years agoODE: joints
divverent [Thu, 22 Oct 2009 06:42:34 +0000 (06:42 +0000)]
ODE: joints
fields: jointtype, origin, angles, and depending on joint type, velocity as secondary axis
also, clean up pitchsign code to make ODE work with bmodels

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

10 years agodon't emit obj materials more than once
havoc [Wed, 21 Oct 2009 18:20:49 +0000 (18:20 +0000)]
don't emit obj materials more than once

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

10 years agofix an error in the spinvelocity -> avelocity conversion
havoc [Wed, 21 Oct 2009 01:10:14 +0000 (01:10 +0000)]
fix an error in the spinvelocity -> avelocity conversion

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

10 years agodisabled use of WINAPI in ODE_API because ODE uses the default calling
havoc [Tue, 20 Oct 2009 20:09:56 +0000 (20:09 +0000)]
disabled use of WINAPI in ODE_API because ODE uses the default calling
convention on windows, and will have a runtime error if using WINAPI

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

10 years agosupport DP_SV_BOUNCEFACTOR and .float gravity for ODE objects (gravity however is...
divverent [Tue, 20 Oct 2009 18:36:29 +0000 (18:36 +0000)]
support DP_SV_BOUNCEFACTOR and .float gravity for ODE objects (gravity however is on-off only, where values < 0.5 are off and > 0.5 are on)

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

10 years agocomment out two unused functions (as ODE 0.9 does not have them)
divverent [Tue, 20 Oct 2009 15:31:00 +0000 (15:31 +0000)]
comment out two unused functions (as ODE 0.9 does not have them)

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

10 years agoremoved .axis_forward, .axis_left, .axis_up, .spinvelocity, now the only
havoc [Tue, 20 Oct 2009 14:53:52 +0000 (14:53 +0000)]
removed .axis_forward, .axis_left, .axis_up, .spinvelocity, now the only
new field is .mass
implemented a "hands off" approach to entity->rigidbody property
transfer, it should only lose precision when the QC edits something

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

10 years agofix last fix
havoc [Tue, 20 Oct 2009 12:46:20 +0000 (12:46 +0000)]
fix last fix

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

10 years agofix typo
havoc [Tue, 20 Oct 2009 12:45:02 +0000 (12:45 +0000)]
fix typo

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

10 years agoadded automatic conversion from legacy entity angles/avelocity to
havoc [Tue, 20 Oct 2009 10:36:47 +0000 (10:36 +0000)]
added automatic conversion from legacy entity angles/avelocity to
axis_*/spinvelocity for SOLID_PHYSICS_* types
use #ifdef ODE_DYNAMIC checks instead of #ifndef ODE_STATIC

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

10 years agofix compile error with .avelocity
havoc [Tue, 20 Oct 2009 10:34:29 +0000 (10:34 +0000)]
fix compile error with .avelocity

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

10 years agofix bug with rotating bmodels
havoc [Tue, 20 Oct 2009 10:10:51 +0000 (10:10 +0000)]
fix bug with rotating bmodels

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

10 years agouse dInitODE instead of dInitODE2
havoc [Tue, 20 Oct 2009 09:59:38 +0000 (09:59 +0000)]
use dInitODE instead of dInitODE2

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

10 years agofix two pointer bugs in ODE code
divverent [Tue, 20 Oct 2009 09:47:06 +0000 (09:47 +0000)]
fix two pointer bugs in ODE code

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

10 years agoculling: fix culling of rotating entities... might help with greatwall bug?
divverent [Tue, 20 Oct 2009 09:44:06 +0000 (09:44 +0000)]
culling: fix culling of rotating entities... might help with greatwall bug?

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

10 years agomove the ODE_API modifiers where they should be
divverent [Tue, 20 Oct 2009 09:35:44 +0000 (09:35 +0000)]
move the ODE_API modifiers where they should be

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

10 years agoODE physics engine support, needs more work, disabled by default
havoc [Mon, 19 Oct 2009 22:32:54 +0000 (22:32 +0000)]
ODE physics engine support, needs more work, disabled by default

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

10 years agoadded examples of installing ogg cd tracks
havoc [Mon, 19 Oct 2009 22:29:59 +0000 (22:29 +0000)]
added examples of installing ogg cd tracks

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

10 years agofix a crash when r_shadow_lightattenuation* cvars are changed which was
havoc [Mon, 19 Oct 2009 22:29:30 +0000 (22:29 +0000)]
fix a crash when r_shadow_lightattenuation* cvars are changed which was
not freeing shadowmaps before freeing the texture pool
fix a bug where flickering/switchable lights always showed coronas

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

10 years agomore rcon_secure cleanup
divverent [Sun, 18 Oct 2009 19:53:53 +0000 (19:53 +0000)]
more rcon_secure cleanup

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

10 years agoclean up rcon_secure checks
divverent [Sun, 18 Oct 2009 19:53:06 +0000 (19:53 +0000)]
clean up rcon_secure checks

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

10 years agoreplaced host_sleep with cl_maxfps_alwayssleep cvar (requires cl_maxfps)
havoc [Sun, 18 Oct 2009 18:12:43 +0000 (18:12 +0000)]
replaced host_sleep with cl_maxfps_alwayssleep cvar (requires cl_maxfps)

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

10 years agoimplemented real support for QW skins (pants, shirt, glow, cropped pcx
havoc [Sat, 17 Oct 2009 21:17:29 +0000 (21:17 +0000)]
implemented real support for QW skins (pants, shirt, glow, cropped pcx
decoding)

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

10 years agoalso support bouncefactor for MOVETYPE_BOUNCEMISSILE
divverent [Sat, 17 Oct 2009 19:08:26 +0000 (19:08 +0000)]
also support bouncefactor for MOVETYPE_BOUNCEMISSILE

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

10 years agouse r_shadow_shadowmapmaxsize instead of directly accessing cvar r_shadow_shadowmappi...
eihrul [Sat, 17 Oct 2009 15:43:40 +0000 (15:43 +0000)]
use r_shadow_shadowmapmaxsize instead of directly accessing cvar r_shadow_shadowmapping_maxsize to prevent weird snipping issues

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

10 years agofix r_shadow_shadowmapping_maxsize validation to not reset each frame if it exceeds...
eihrul [Sat, 17 Oct 2009 14:55:29 +0000 (14:55 +0000)]
fix r_shadow_shadowmapping_maxsize validation to not reset each frame if it exceeds gl_max_size

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

10 years agolimit shadowmap maxsize to a value based on gl_max_size
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

10 years agochanged submodel polygonoffset from 2 to 4 to fix the lift to the quad
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

10 years agoadded r_shadow_dot3 cvar to control whether GL1.3 hardware uses dot3
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

10 years agoturn off gl_combine by default, it's just too nasty for old cards
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

10 years agoreorganized sv.writeentitiestoclient handling of Mod_CanSeeBox, no
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

10 years agochanged handling of forbidden world writes - they are now only a
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

10 years agodo not use VBOs when gl_mesh_testarrayelement is 1
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

10 years agofixed bug with gl_paranoid 1 when gl_vbo is 0 where element3s contained
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

10 years agoprocess particles/decals movement even if r_drawparticles/r_drawdecals is 0
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

10 years agodisable glLineWidth setting because it is producing gl errors on ATI
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

10 years agodisabled old shadowmap lod formula entirely
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

10 years agoExperimental r_shadow_shadowmapping_quality cvar which makes a lightradius-based...
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

10 years agosupport slope-dependent shadowmap biasing with polygon offset
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

10 years agorestrict the protocols libcurl allows when redirecting for security reasons, and...
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

10 years agoincrease the accuracy of r_bloom_brighten a bit (or make high values work at all)
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

10 years agofix bug that caused newlines of console lines to be cut off (this made pasting fail)
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

10 years agofix r_bloom_blur logic to not change brightness any more
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

10 years agorearrange r_shadow_shadowmap_texturetype settings so -1 = autoselect, 0 = 2D, 1 ...
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

10 years agouse R_SHADOW_SHADOWMODE_ enum for shadowmode for readability
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

10 years agoonly honor r_shadow_shadowmapping cvar if both GLSL & FBO support are available
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

10 years agocheck gl_support_fragment_shader before setting up shadowmode
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

10 years agofix for noselfshadow entities no culling from shadowmap sides properly
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

10 years agoavoid repeatedly thrashing GL state when switching shadowmap sides
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

10 years agoimproved culling of shadowmap sides against view frustum
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

10 years agouse bounding boxes for shadowmap side culling instead of spheres for better accuracy
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

10 years agoAdded reliable Q3BSP tangentspace/modelspace deluxemaps detection method to support...
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

10 years agofixed biasing issue in shadowmap frustum culling
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

10 years agoimproved shadowmap side culling
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

10 years agouse cached matrix elements for calculating determinant
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

10 years agoeven better matrix inversion (will test it later), in benchmarks it was slightly...
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

10 years agodisable some slow code (clearing unused parameters in an array)
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

10 years agofix typo :P
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

10 years agofix typo elsif
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

10 years agoadd yet another (disabled) variant of determinants
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

10 years agoif(foo = false) -> if(foo == false) bug fix
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

10 years agofaster Matrix4x4_Invert_Full based on David Moore code in Mesa 7.6
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

10 years agorename them to dp_glossintensitymod and dp_glossexponentmod
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

10 years agowhile I am at it, also dp_specularscalemod
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

10 years agonew shader keyword: dp_specularpowermod 2, makes gloss have 2x the usual specular...
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

10 years ago-added game Blood Omnicide
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

10 years agoalso don't call PostThink on disconnected clients ;)
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

10 years agoadded sv_gameplayfix_consistentplayerprethink which defaults on - this
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

10 years agoadded DP_ENT_GLOWMOD extension, like DP_ENT_COLORMOD but alters glow
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

10 years agotell QC about pixelheight too
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

10 years agochanged uniform GlowScale to GlowColor
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

10 years agoduplicated PRVM_ExecuteProgram to become MVM_ExecuteProgram,
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

10 years agouse one markframe variable
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

10 years agoaudited trace.endpos code
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

10 years agofix another case of Trace.endpos being set too early
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

10 years agofix bug in last patch - must set trace.endpos AFTER calling TracePoint
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

10 years agosplit CL_Move into CL_TracePoint, CL_TraceLine, CL_TraceBox and similar
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

10 years agoadded r_renderview cvar (similar to scr_refresh but disables only 3D
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

10 years agofix two not freed search handles
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

10 years agoremove now unneeded code
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

10 years agofix connect after getchallenge, rcon, getchallenge sequence
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