]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agooops, a float I meant
divverent [Wed, 23 Dec 2009 15:55:25 +0000 (15:55 +0000)]
oops, a float I meant

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

14 years agoturn font size snapping into a float
divverent [Wed, 23 Dec 2009 15:55:04 +0000 (15:55 +0000)]
turn font size snapping into a float

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

14 years agostdint.h and uint32_t instead of u_int32_t
blub [Wed, 23 Dec 2009 14:45:59 +0000 (14:45 +0000)]
stdint.h and uint32_t instead of u_int32_t

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

14 years agoadditionally include stdint.h on non-MSVC too
divverent [Wed, 23 Dec 2009 12:56:33 +0000 (12:56 +0000)]
additionally include stdint.h on non-MSVC too

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

14 years agomake CgGL render path work
havoc [Wed, 23 Dec 2009 12:48:50 +0000 (12:48 +0000)]
make CgGL render path work

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

14 years agomake utf8 functions safer: give them a size limit in memory, to allow working with...
divverent [Wed, 23 Dec 2009 12:15:47 +0000 (12:15 +0000)]
make utf8 functions safer: give them a size limit in memory, to allow working with non-NUL-terminated strings

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

14 years agoget utf8lib out of common.c by moving the u8_strnlen call into console.c - keeps...
divverent [Wed, 23 Dec 2009 11:54:07 +0000 (11:54 +0000)]
get utf8lib out of common.c by moving the u8_strnlen call into console.c - keeps the word wrap function encoding agnostic

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

14 years agothis should work without strlen as well
blub [Wed, 23 Dec 2009 11:46:09 +0000 (11:46 +0000)]
this should work without strlen as well

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

14 years agodo not use non-standard strnlen function
blub [Wed, 23 Dec 2009 10:51:55 +0000 (10:51 +0000)]
do not use non-standard strnlen function

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

14 years ago... forgot to add the files, I'm too used to git now :P
blub [Wed, 23 Dec 2009 10:48:04 +0000 (10:48 +0000)]
... forgot to add the files, I'm too used to git now :P

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

14 years agoAdding FreeType2 and UTF-8 Support.
blub [Wed, 23 Dec 2009 10:43:52 +0000 (10:43 +0000)]
Adding FreeType2 and UTF-8 Support.
UTF-8 is disabled by default, FreeType is enabled.
new cvars: utf8_enable (0)
           r_font_disable_freetype (1)
   r_font_use_alpha_textures (0, not really finished yet)
   r_font_size_snapping (1 - 0 looks bad when vid_conwidth/height and vid_width/height are too different)

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

14 years agofix SUPPORTCG checks
havoc [Wed, 23 Dec 2009 09:39:34 +0000 (09:39 +0000)]
fix SUPPORTCG checks

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

14 years agofix detection of cg libs
divverent [Wed, 23 Dec 2009 09:35:16 +0000 (09:35 +0000)]
fix detection of cg libs

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

14 years agoDP_SV_PING_PACKETLOSS: expose packet loss to server QC
divverent [Wed, 23 Dec 2009 08:48:36 +0000 (08:48 +0000)]
DP_SV_PING_PACKETLOSS: expose packet loss to server QC

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

14 years agothe beginnings of a cgGL rendering path experiment, does not work yet
havoc [Wed, 23 Dec 2009 08:32:07 +0000 (08:32 +0000)]
the beginnings of a cgGL rendering path experiment, does not work yet
overhauled GL20 rendering path to bind textures during shader setup
copy to texture is now done by calling R_Mesh_CopyToTexture instead of
calling GL functions directly

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

14 years agoload maps/levelname_effectinfo.txt in addition to effectinfo.txt
havoc [Wed, 23 Dec 2009 07:43:05 +0000 (07:43 +0000)]
load maps/levelname_effectinfo.txt in addition to effectinfo.txt

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

14 years agofix a crash on non-deluxemapped q3bsp loading
havoc [Tue, 22 Dec 2009 02:06:10 +0000 (02:06 +0000)]
fix a crash on non-deluxemapped q3bsp loading

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

14 years agoremoved r_precachetextures cvar
havoc [Mon, 21 Dec 2009 14:20:16 +0000 (14:20 +0000)]
removed r_precachetextures cvar
removed TEXF_PRECACHE flag
removed TEXF_ALWAYSPRECACHE flag
all textures are now always uploaded immediately (deferring was made
unnecessary by the selective skinframe uploading, and cachepic unloading)

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

14 years agofix some issues with r_hdr 1 (or r_hdr_scenebrightness) where
havoc [Mon, 21 Dec 2009 14:01:32 +0000 (14:01 +0000)]
fix some issues with r_hdr 1 (or r_hdr_scenebrightness) where
r_refdef.view.colorscale was being misused

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

14 years agoforce R_GetCurrentTexture to regenerate data when
havoc [Mon, 21 Dec 2009 13:37:08 +0000 (13:37 +0000)]
force R_GetCurrentTexture to regenerate data when
r_refdef.view.colorscale is changed by r_hdr 1 rendering

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

14 years agofix movement loss tracking
divverent [Mon, 21 Dec 2009 12:44:14 +0000 (12:44 +0000)]
fix movement loss tracking

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

14 years agomovement packet loss tracking
divverent [Mon, 21 Dec 2009 12:31:10 +0000 (12:31 +0000)]
movement packet loss tracking

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

14 years agofix typo in StoreBigLong calls on NETFLAG_ACK packets
havoc [Mon, 21 Dec 2009 11:52:18 +0000 (11:52 +0000)]
fix typo in StoreBigLong calls on NETFLAG_ACK packets

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

14 years agoprint unknown keys a little differently, to avoid escape characters
havoc [Mon, 21 Dec 2009 09:09:54 +0000 (09:09 +0000)]
print unknown keys a little differently, to avoid escape characters

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

14 years agochange how compression hint check works
havoc [Mon, 21 Dec 2009 09:07:55 +0000 (09:07 +0000)]
change how compression hint check works

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

14 years agoremove some gl functions that are not used
havoc [Mon, 21 Dec 2009 09:02:32 +0000 (09:02 +0000)]
remove some gl functions that are not used

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

14 years agouse floats rather than doubles for view matrix stuff
havoc [Mon, 21 Dec 2009 09:01:24 +0000 (09:01 +0000)]
use floats rather than doubles for view matrix stuff

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

14 years agoadded LINK_TO_ZLIB define checks, to allow direct linking
havoc [Mon, 21 Dec 2009 09:00:00 +0000 (09:00 +0000)]
added LINK_TO_ZLIB define checks, to allow direct linking

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

14 years agoadded K_PRINTSCREEN, not actually used by any platforms though
havoc [Mon, 21 Dec 2009 08:57:25 +0000 (08:57 +0000)]
added K_PRINTSCREEN, not actually used by any platforms though

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

14 years agoadded SUPPORTIPV6 define checks - not defined by default, this should
havoc [Mon, 21 Dec 2009 08:56:36 +0000 (08:56 +0000)]
added SUPPORTIPV6 define checks - not defined by default, this should
help platforms that do not provide ipv6 network headers at all

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

14 years agoincrease NET_MAXMESSAGE in DP_SMALLMEMORY configuration, 16KB was too
havoc [Mon, 21 Dec 2009 08:54:40 +0000 (08:54 +0000)]
increase NET_MAXMESSAGE in DP_SMALLMEMORY configuration, 16KB was too
low for signons in some cases

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

14 years agoadded SUPPORTDLL define and checks, if any platforms lack support for
havoc [Mon, 21 Dec 2009 08:53:48 +0000 (08:53 +0000)]
added SUPPORTDLL define and checks, if any platforms lack support for
dynamic loading they could alter this define

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

14 years agocheck if FNDELAY is defined instead of checking WIN32
havoc [Mon, 21 Dec 2009 08:49:22 +0000 (08:49 +0000)]
check if FNDELAY is defined instead of checking WIN32

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

14 years agoprint memlist if out of memory error occurs
havoc [Mon, 21 Dec 2009 08:47:02 +0000 (08:47 +0000)]
print memlist if out of memory error occurs

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

14 years agoadded mem_bigendian variable
havoc [Mon, 21 Dec 2009 08:46:20 +0000 (08:46 +0000)]
added mem_bigendian variable
made LittleLong/Short/Float and BigLong/Short/Float functions pass a
pointer to the variable to BuffBigLong/BuffLittleLong and friends to
avoid unaligned memory access crashes on some platforms even if a file
has unaligned data in it
added StoreBigLong function to help the netconn.c code
removed BYTE_ORDER compile-time detection

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

14 years agofix big endian loading of patches
havoc [Mon, 21 Dec 2009 07:45:40 +0000 (07:45 +0000)]
fix big endian loading of patches

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

14 years agoadded gl_nopartialtextureupdates cvar which disables use of
havoc [Mon, 21 Dec 2009 07:38:14 +0000 (07:38 +0000)]
added gl_nopartialtextureupdates cvar which disables use of
glTexSubImage2D calls (in case this hits bad paths on some drivers?)
added R_Mesh_TexBound function which returns the currently bound texture
on a given unit (avoids a slow qglGetIntegerv)

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

14 years agoallocate memory for big temporary storage arrays rather than using the
havoc [Mon, 21 Dec 2009 07:11:36 +0000 (07:11 +0000)]
allocate memory for big temporary storage arrays rather than using the
stack

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

14 years agoallocate the right byte count for PVS data in framedata
divverent [Sun, 20 Dec 2009 18:27:38 +0000 (18:27 +0000)]
allocate the right byte count for PVS data in framedata

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

14 years agodisable r_transparentdepthmasking by default until issues are resolved
havoc [Sun, 20 Dec 2009 15:18:44 +0000 (15:18 +0000)]
disable r_transparentdepthmasking by default until issues are resolved

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

14 years agoGLSL shaders no longer use gl_TexCoord[] varying variables
havoc [Sun, 20 Dec 2009 14:53:53 +0000 (14:53 +0000)]
GLSL shaders no longer use gl_TexCoord[] varying variables

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

14 years agoGLSL shaders no longer use gl_TextureMatrix, now all matrix parameters
havoc [Sun, 20 Dec 2009 14:46:43 +0000 (14:46 +0000)]
GLSL shaders no longer use gl_TextureMatrix, now all matrix parameters
are passed as uniforms

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

14 years agoeliminated R_Mesh_TextureState function and rmeshstate_t struct because
havoc [Sun, 20 Dec 2009 14:20:26 +0000 (14:20 +0000)]
eliminated R_Mesh_TextureState function and rmeshstate_t struct because
rmeshstate_t was excessively slow to memset and process (1984 bytes on
64bit systems)

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

14 years agofixed cl_decals_models 1 rendering
havoc [Sun, 20 Dec 2009 13:19:54 +0000 (13:19 +0000)]
fixed cl_decals_models 1 rendering

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

14 years agoimplemented fogging for cl_decals_newsystem 1
havoc [Sun, 20 Dec 2009 13:11:18 +0000 (13:11 +0000)]
implemented fogging for cl_decals_newsystem 1

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

14 years agofix GL11/GL13 fogged sprite rendering and q1bsp sky rendering - the
havoc [Sun, 20 Dec 2009 13:00:23 +0000 (13:00 +0000)]
fix GL11/GL13 fogged sprite rendering and q1bsp sky rendering - the
FOGDARKEN flag was not implemented properly
changed sprite rendering to use a new function that takes a texture_t
instead of a skinframe

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

14 years agofix fog mask scrolling on q1bsp sky
havoc [Sun, 20 Dec 2009 12:19:15 +0000 (12:19 +0000)]
fix fog mask scrolling on q1bsp sky

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

14 years agofix bug with cl_decals_newsystem where submodels and other static models
havoc [Sun, 20 Dec 2009 12:07:18 +0000 (12:07 +0000)]
fix bug with cl_decals_newsystem where submodels and other static models
would not render decals

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

14 years agofix bug where r_shadow_deferred 1 caused transparent entities being lit
havoc [Sun, 20 Dec 2009 11:30:25 +0000 (11:30 +0000)]
fix bug where r_shadow_deferred 1 caused transparent entities being lit
by rtlights to be darker than they should be (the transparent mesh was
being rendered over the light passes instead of before them)

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

14 years agoadded r_transparentdepthmasking cvar (defaults to 1), this causes alpha
havoc [Sun, 20 Dec 2009 10:20:40 +0000 (10:20 +0000)]
added r_transparentdepthmasking cvar (defaults to 1), this causes alpha
fading of opaque materials to look much better, while still not altering
transparent materials (like blended tree foliage - but that should be
alpha test anyway)

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

14 years agodon't need it twice...
divverent [Sun, 20 Dec 2009 10:09:44 +0000 (10:09 +0000)]
don't need it twice...

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

14 years ago- fix specular stuff on Q1BSP
divverent [Sun, 20 Dec 2009 09:54:44 +0000 (09:54 +0000)]
- fix specular stuff on Q1BSP
- cl_lerpanim_maxdelta_server, cl_lerpanim_maxdelta_framegroups to customize lerping deltas

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

14 years agoslowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo....
divverent [Sun, 20 Dec 2009 08:46:01 +0000 (08:46 +0000)]
slowmo: when slowmo is < 1, restrict sys_ticrate not to 0.1 but to 0.1 / slowmo. Helps with seeing what lerping does.

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

14 years agoDP_EF_RESTARTANIM_BIT
divverent [Sun, 20 Dec 2009 08:32:55 +0000 (08:32 +0000)]
DP_EF_RESTARTANIM_BIT

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

14 years agomaxidlefps fix for maxfps 0
divverent [Sun, 20 Dec 2009 08:32:26 +0000 (08:32 +0000)]
maxidlefps fix for maxfps 0

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

14 years agofix bug with deluxemapping (I thought GLSL had a recip function but it
havoc [Sun, 20 Dec 2009 07:26:01 +0000 (07:26 +0000)]
fix bug with deluxemapping (I thought GLSL had a recip function but it
does not)

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

14 years agoforce shadowmapping when deferred rendering is on
havoc [Sun, 20 Dec 2009 06:29:36 +0000 (06:29 +0000)]
force shadowmapping when deferred rendering is on
reworked lighting code a bit to ensure consistent behavior
fixed multiple bugs with r_ambient, .colormod, r_fullbright,
r_shadow_gloss 2, and other lighting parameters
overhauled GLSL shader to ensure consistency
fixed bug with deferred rendering of polygonoffset on submodels
deferred rendering path now checks for transparent surfaces and uses the
forward rendering path on them

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

14 years agofix lack of specular on q1 mdl, and a possible case where it would not
havoc [Sun, 20 Dec 2009 06:23:28 +0000 (06:23 +0000)]
fix lack of specular on q1 mdl, and a possible case where it would not
have specular on q1 bsp

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

14 years agoavoid a permanent memory leak on lightmap allocation in q1bsp - no time
havoc [Sun, 20 Dec 2009 06:22:59 +0000 (06:22 +0000)]
avoid a permanent memory leak on lightmap allocation in q1bsp - no time
to investigate the underlying cause

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

14 years agoUpdate cl_deathfade cvar description
samual [Sun, 20 Dec 2009 05:23:16 +0000 (05:23 +0000)]
Update cl_deathfade cvar description

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

14 years agouseful stuff for server admins: curl command now allows the host name to be
divverent [Sat, 19 Dec 2009 19:04:20 +0000 (19:04 +0000)]
useful stuff for server admins: curl command now allows the host name to be
left out, like this:

http:///~nexuiz/files/
http://:8080/~nexuiz/files/

allows setting up the HTTP server for map downloads on the same machine as the
DP server on a dynamic IP without using dyndns.

Client needs to support this.

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

14 years agochange sv_cullentities_trace_samples from 1 to 2 - 1 is completely
havoc [Fri, 18 Dec 2009 07:35:07 +0000 (07:35 +0000)]
change sv_cullentities_trace_samples from 1 to 2 - 1 is completely
unacceptable (hides monsters in quake if their origin is not visible...)

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

14 years agoimplemented deferred rendering (r_shadow_deferred cvar) to accelerate
havoc [Thu, 17 Dec 2009 09:14:03 +0000 (09:14 +0000)]
implemented deferred rendering (r_shadow_deferred cvar) to accelerate
lighting in scenes with many lights

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

14 years agofix a bug where gl_max_lightmapsize cvar was not registered (and hence
havoc [Wed, 16 Dec 2009 08:49:20 +0000 (08:49 +0000)]
fix a bug where gl_max_lightmapsize cvar was not registered (and hence
always behaved like a value of 0, causing lightmaps to be small)
added R_LoadTextureRectangle function

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

14 years agomake Draw_FreePic set pic->tex to NULL to prevent reuse of invalid texture
eihrul [Mon, 14 Dec 2009 22:41:55 +0000 (22:41 +0000)]
make Draw_FreePic set pic->tex to NULL to prevent reuse of invalid texture

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

14 years agoreworked animcache code to store information in ent->animcache_vertex3f
havoc [Mon, 14 Dec 2009 06:35:00 +0000 (06:35 +0000)]
reworked animcache code to store information in ent->animcache_vertex3f
and similar fields rather than having a separate info array

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

14 years agoincrease r_framedatasize in increments instead of by a percentage
havoc [Mon, 14 Dec 2009 05:08:20 +0000 (05:08 +0000)]
increase r_framedatasize in increments instead of by a percentage

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

14 years agoallocate portals differently to reduce Mem_Alloc reports in
havoc [Mon, 14 Dec 2009 05:02:40 +0000 (05:02 +0000)]
allocate portals differently to reduce Mem_Alloc reports in
developer_memory 1 mode

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

14 years agofix crash when r_framedatasize increases
havoc [Mon, 14 Dec 2009 05:02:15 +0000 (05:02 +0000)]
fix crash when r_framedatasize increases

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

14 years agofix a crash on shutdown when using developer_memory 1 (the conbuffer_t
havoc [Mon, 14 Dec 2009 04:13:04 +0000 (04:13 +0000)]
fix a crash on shutdown when using developer_memory 1 (the conbuffer_t
is being freed and prints messages while doing so)

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

14 years agofix void * arithmetic error on MSVC
havoc [Mon, 14 Dec 2009 01:04:10 +0000 (01:04 +0000)]
fix void * arithmetic error on MSVC

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

14 years agoadded R_FrameData_Alloc and Store functions (a per-frame heap allocator
havoc [Sun, 13 Dec 2009 21:03:04 +0000 (21:03 +0000)]
added R_FrameData_Alloc and Store functions (a per-frame heap allocator
for temporary rendering data)
all animated model geometry is now cached before rendering begins
(rtlights are processed in two stages now)
reworked animcache and rtlight processing to use R_FrameData_Store

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

14 years agoremoved GL_NV_blend_square detection because it is no longer used
havoc [Wed, 9 Dec 2009 13:04:42 +0000 (13:04 +0000)]
removed GL_NV_blend_square detection because it is no longer used
without the dot3 lighting code

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

14 years agoremoved DOT3 lighting path (bumpmapped lighting on pre-shader cards)
havoc [Wed, 9 Dec 2009 12:47:10 +0000 (12:47 +0000)]
removed DOT3 lighting path (bumpmapped lighting on pre-shader cards)
added 3D texture attenuation support to vertex lighting path

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

14 years agorenderer now uses vid.renderpath to select rendering techniques instead
havoc [Wed, 9 Dec 2009 12:26:15 +0000 (12:26 +0000)]
renderer now uses vid.renderpath to select rendering techniques instead
of r_glsl and gl_combine cvars (which are now read-only), use vid_gl13
and vid_gl20 to select a rendering path at startup

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

14 years agosome cleanup
havoc [Tue, 8 Dec 2009 23:17:17 +0000 (23:17 +0000)]
some cleanup

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

14 years agominor cleanup
havoc [Tue, 8 Dec 2009 22:58:52 +0000 (22:58 +0000)]
minor cleanup

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

14 years agoremove a couple useless lines
havoc [Tue, 8 Dec 2009 22:57:14 +0000 (22:57 +0000)]
remove a couple useless lines

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

14 years agouse gl_max_lightmapsize
havoc [Tue, 8 Dec 2009 22:56:53 +0000 (22:56 +0000)]
use gl_max_lightmapsize

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

14 years agoadded gl_max_lightmapsize
havoc [Tue, 8 Dec 2009 22:56:20 +0000 (22:56 +0000)]
added gl_max_lightmapsize
minor cleanup to TEXF_PICMIP handling

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

14 years agoremoved r_glsl_usegeneric cvar (always on now)
havoc [Tue, 8 Dec 2009 22:18:57 +0000 (22:18 +0000)]
removed r_glsl_usegeneric cvar (always on now)

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

14 years agomore cleanup
havoc [Tue, 8 Dec 2009 22:09:52 +0000 (22:09 +0000)]
more cleanup

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

14 years agochanged R_Mesh_TexCombine to use GL_COMBINE_ARB mode only when necessary
havoc [Tue, 8 Dec 2009 22:02:05 +0000 (22:02 +0000)]
changed R_Mesh_TexCombine to use GL_COMBINE_ARB mode only when necessary

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

14 years agoinitialize GL state only once at video start, rather than every frame
havoc [Tue, 8 Dec 2009 21:28:20 +0000 (21:28 +0000)]
initialize GL state only once at video start, rather than every frame

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

14 years agoremoved R_Mesh_TexBind3D, R_Mesh_TexBindCubeMap, R_Mesh_TexBindRectangle
havoc [Tue, 8 Dec 2009 21:17:13 +0000 (21:17 +0000)]
removed R_Mesh_TexBind3D, R_Mesh_TexBindCubeMap, R_Mesh_TexBindRectangle
(now all code using these must use R_Mesh_TexBindAll)

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

14 years agoconverted all code using gl_support_* variables to use vid.support.*
havoc [Tue, 8 Dec 2009 04:42:15 +0000 (04:42 +0000)]
converted all code using gl_support_* variables to use vid.support.*
instead
a few other cleanups

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

14 years agodon't upload a fog texture for explosion shells if r_loadfog is false
havoc [Tue, 8 Dec 2009 04:33:18 +0000 (04:33 +0000)]
don't upload a fog texture for explosion shells if r_loadfog is false

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

14 years agoincrease _snd_mixahead to 0.15 to fix crackling sound on Vista
havoc [Tue, 8 Dec 2009 03:19:42 +0000 (03:19 +0000)]
increase _snd_mixahead to 0.15 to fix crackling sound on Vista

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

14 years agomoved gl_state definition higher in the code
havoc [Tue, 8 Dec 2009 01:46:18 +0000 (01:46 +0000)]
moved gl_state definition higher in the code
replaced backendunits, backendimageunits, and backendarrayunits
references with vid.texunits, vid.teximageunits, vid.texarrayunits

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

14 years agoan attempt to fix waveOut sound on Vista
havoc [Tue, 8 Dec 2009 01:25:38 +0000 (01:25 +0000)]
an attempt to fix waveOut sound on Vista
added snd_wav_partitionsize cvar (default 1024)

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

14 years agoremove unused tex1d parameters
havoc [Mon, 7 Dec 2009 20:33:32 +0000 (20:33 +0000)]
remove unused tex1d parameters

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

14 years agoadded vid.support struct containing extension detection flags, to
havoc [Mon, 7 Dec 2009 20:28:17 +0000 (20:28 +0000)]
added vid.support struct containing extension detection flags, to
replace gl_support_* variables

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

14 years agoremove a vid.support line I did not intend to be in here
havoc [Mon, 7 Dec 2009 20:25:57 +0000 (20:25 +0000)]
remove a vid.support line I did not intend to be in here

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

14 years agoR_UpdateTexture no longer calls R_RealGetTexture, and now causes a
havoc [Mon, 7 Dec 2009 20:21:30 +0000 (20:21 +0000)]
R_UpdateTexture no longer calls R_RealGetTexture, and now causes a
Host_Error if the texture has not been precached already, this should
fix a crash with dpv video playback

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

14 years agoremove an unneeded comment
havoc [Mon, 7 Dec 2009 20:09:08 +0000 (20:09 +0000)]
remove an unneeded comment

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

14 years agoremoved gl_videosyncavailable variable because on all known platforms it
havoc [Mon, 7 Dec 2009 16:04:50 +0000 (16:04 +0000)]
removed gl_videosyncavailable variable because on all known platforms it
is always true, and its only purpose was to ghost a menu item

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

14 years agorenamed gl_stencil to vid.stencil
havoc [Mon, 7 Dec 2009 16:00:13 +0000 (16:00 +0000)]
renamed gl_stencil to vid.stencil

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

14 years agochanged VID_InitMode to take a viddef_mode_t structure which contains
havoc [Mon, 7 Dec 2009 15:50:45 +0000 (15:50 +0000)]
changed VID_InitMode to take a viddef_mode_t structure which contains
the desired parameters, and allows it to modify them (previously only
width/height could be modified)

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

14 years agoload fog textures in all cases again
havoc [Mon, 7 Dec 2009 15:35:03 +0000 (15:35 +0000)]
load fog textures in all cases again
load gloss/normalmap based on hardware capabilities, rather than r_glsl
and gl_combine cvars

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

14 years agomdl skin loading is now more memory-efficient (now stores the original
havoc [Mon, 7 Dec 2009 15:27:09 +0000 (15:27 +0000)]
mdl skin loading is now more memory-efficient (now stores the original
pixels and uploads textures on demand - many skins are never used, so
this saves some system memory)
added palette_featureflags[] for use by mdl skin loading
added TEXF_PRECACHE to all texture uploads that did not use it
added skinframe->hasalpha flag to clean up code
removed R_TextureHasAlpha function
r_glsl 1 no longer uploads fog textures
r_glsl 0, gl_combine 0 no longer loads gloss/normalmaps

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