divverent [Thu, 31 Jan 2008 09:21:25 +0000 (09:21 +0000)]
new uniform "PixelSize" defined as (size_x, size_y) that is (1/texwidth, 1/texheight) for the postprocessing shader - user defined stuff may use it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8056
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Wed, 30 Jan 2008 22:19:13 +0000 (22:19 +0000)]
oops, that should not have gone in there
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8055
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Wed, 30 Jan 2008 22:18:16 +0000 (22:18 +0000)]
hide centerprint immediately when scr_centertime is 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8054
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Wed, 30 Jan 2008 08:41:03 +0000 (08:41 +0000)]
make "stopdownload" also stop curl downloads
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8053
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 30 Jan 2008 07:18:56 +0000 (07:18 +0000)]
fixed -tenebrae support, added glass and mirror rendering and caulk
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8052
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 29 Jan 2008 19:35:24 +0000 (19:35 +0000)]
fix div0's weird MODE_WATER ModelViewProjectionPosition declarations
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8051
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 29 Jan 2008 19:28:53 +0000 (19:28 +0000)]
fix missing loc_Texture_GammaRamps lookup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8050
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 19:19:41 +0000 (19:19 +0000)]
fix compile bug in glsl shader first
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8049
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 29 Jan 2008 18:53:55 +0000 (18:53 +0000)]
changed postprocess shader to use Texture_GammaRamps instead of
Texture_Attenuation to make the code more clear (no impact on
performance)
fixed bug with viewblend being applied inversely
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8048
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 17:44:34 +0000 (17:44 +0000)]
fix warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8047
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 16:56:15 +0000 (16:56 +0000)]
oops, my fault - I kept two unused cvars in
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8046
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 16:55:43 +0000 (16:55 +0000)]
v_glslgamma: make GLSL postprocessing take over the job of v_hwgamma completely, if set and glsl works. Costs here 1.6ms per frame, so I'll keep r_glsl_contrastboost.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8045
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 12:41:02 +0000 (12:41 +0000)]
added variable vid_gammatables_trivial that is true if the gamma ramp is the identity map - so glsl doesn't need to waste time on that case later
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8044
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 12:29:14 +0000 (12:29 +0000)]
add an extra unused #ifdef to the glsl shader so the shader can know if it was actually enabled by r_glsl_postprocessing or if it was just forced by bloom
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8043
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 12:20:10 +0000 (12:20 +0000)]
oops, wrong type... "int" has no ANSI C defined wraparound, "unsigned int" does
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8042
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 12:08:06 +0000 (12:08 +0000)]
make other parts of DP able to retrieve the gamma table, and add a serial field so other subsystems can poll if it has changed. Useful for handling it using glsl.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8041
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 11:39:41 +0000 (11:39 +0000)]
v_contrastboost, and support for the color control functions to fill the gamma table. Goal: remove USECONTRASTBOOST and USEGAMMA in the postprocess shader, replace it by USEGAMMARAMP, and let vid_shared build the gamma tables even if hw gamma is off when glsl needs them... then add a cvar r_glsl_hwgamma that lets glsl take over gamma ramp handling
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8040
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 09:14:13 +0000 (09:14 +0000)]
by default, don't define UserVec1 to UserVec4 and ClientTime. People who want to use them shall uncomment their declaration in default.glsl.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8039
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 09:12:06 +0000 (09:12 +0000)]
add ClientTime and uservec1 to uservec4 parameters to postprocessing shader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8038
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 29 Jan 2008 08:07:48 +0000 (08:07 +0000)]
fix bug in skybox render + r_glsl_usegeneric + fog; add gamma to postprocessing shader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8037
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 29 Jan 2008 04:24:23 +0000 (04:24 +0000)]
fix bug with r_glsl 1;r_hdr 1;r_bloom 0 that made the screen white
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8036
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 29 Jan 2008 01:50:40 +0000 (01:50 +0000)]
fixed VBO batching bug in rtlight rendering
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8035
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Jan 2008 22:45:43 +0000 (22:45 +0000)]
extra required parameter for dp_water: alpha modifier
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8034
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Jan 2008 11:44:27 +0000 (11:44 +0000)]
note to myself: skipping over data works better if you actually do it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8033
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Jan 2008 09:40:11 +0000 (09:40 +0000)]
add a DEMOMSG_CLIENT_TO_SERVER flag to demos (0x80000000) in the size field; packets with this flag will be ignored by playback. sv_autodemo_perclient 2 will record these packages for debugging purposes (like, recording a speedhacker's or other protocol exploiter's packets, and analyzing them with the data in the demo file manually)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8032
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 28 Jan 2008 06:52:37 +0000 (06:52 +0000)]
some very slight optimization to rt light rendering setup code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8031
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 28 Jan 2008 03:36:03 +0000 (03:36 +0000)]
added r_glsl_postprocess cvar to apply a postprocessing pass over the
screen (currently only implements r_glsl_contrastboost)
this path is also activated if bloom or hdr is active with r_glsl 1
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8030
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 28 Jan 2008 01:09:00 +0000 (01:09 +0000)]
Clean up the FS_FIX_PATHS code a bit - should by faster now, too.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8029
d7cf8633-e32d-0410-b094-
e92efae38249
black [Mon, 28 Jan 2008 01:02:56 +0000 (01:02 +0000)]
Make fgets always return the null string on error.
Add code to FS_Open to fix bad paths (replaces \ with /). The code is nasty and #ifdefed out - #define FS_FIX_PATHS to use it.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8028
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 23:52:45 +0000 (23:52 +0000)]
remove a bogus RSurf_SetupDepthAndCulling call that was crashing
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8027
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 27 Jan 2008 18:49:34 +0000 (18:49 +0000)]
R_SetView now supports VF_CLEARSCREEN which decides whether to clear the screen or not when rendering the view (this is of particular interest for rendering view in views or for the menu).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8026
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 27 Jan 2008 17:23:08 +0000 (17:23 +0000)]
Pass the name of the instance to Gecko_Query, too.
Add setattachment, gettaginfo and gettagindex to menu builtin list, too.
Add DP_GECKO_SUPPORT and DP_QC_GETSURFACEPOINTATTRIB to dpextensions.qc.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8025
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 08:39:42 +0000 (08:39 +0000)]
some surface rendering code cleanup
eliminated several redundant state calls
eliminated RSurf_CleanUp function
eliminated special gl_lightmaps rendering path
moved all but the basic material rendering from R_DrawTextureSurfaceList
to R_ProcessTextureSurfaceList, this simplifies the transparent callback
and allowed me to move the transparent queuing into this function
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8024
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 06:28:54 +0000 (06:28 +0000)]
implemented r_glsl_usegeneric cvar, this causes generic GLSL shaders to
be used in place of ALL conventional fixedfunction rendering, seems to
give about a 3% fps increase on NVIDIA drivers
this should fix zfighting issues involving r_depthfirst or shadows,
particularly on Mac OSX (may also fix the OSX rotating/scrolling hud)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8023
d7cf8633-e32d-0410-b094-
e92efae38249
black [Sun, 27 Jan 2008 02:18:54 +0000 (02:18 +0000)]
Add R_SelectScene and R_GetScenePointer that encapsulate access to an array of r_refdef_scene_t that is swapped into r_refdef on need.
Change the menu to use it and fix a bug that was caused because of the menu's use of the stack for backing up the client's scene.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8020
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 02:05:00 +0000 (02:05 +0000)]
remove a dead prototype
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8019
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 02:03:54 +0000 (02:03 +0000)]
added a TODO comment about blacklisting GL_ARB_texture_non_power_of_two
on Radeon X1600-X1950 cards
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8018
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 00:55:22 +0000 (00:55 +0000)]
rewrote most of the VM_Polygon/DebugPolygon code, it should perform much
better now and has no upper limit on polygons, and only a 64 point limit
per polygon, and has transparent sorting again
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8017
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Jan 2008 00:46:45 +0000 (00:46 +0000)]
added cl_minfps_qualitypower cvar to make particle quality drop more
sharply at lower framerates
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8016
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 26 Jan 2008 15:06:01 +0000 (15:06 +0000)]
update docs for dp_reflect, dp_refract, dp_water
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8015
d7cf8633-e32d-0410-b094-
e92efae38249
res [Fri, 25 Jan 2008 23:51:59 +0000 (23:51 +0000)]
Fix uninitialized msg.allowoverflow in SV_SendClientDatagram
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8014
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 25 Jan 2008 23:31:06 +0000 (23:31 +0000)]
disabled size throttling of packets if csqc is used (because it was very
easy to end up with >128 byte entity updates which can in some cases
never be sent at all due to the size throttling)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8013
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 25 Jan 2008 21:06:46 +0000 (21:06 +0000)]
restricted rcon: actually display a different message if restricted rcon was used
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8012
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 25 Jan 2008 19:47:02 +0000 (19:47 +0000)]
vary r_drawparticles_drawdistance and r_drawdecals_drawdistance for
quality limiting according to FPS, instead of skipping particles, this
looks much better (but doesn't help FPS as much)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8011
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 25 Jan 2008 11:40:15 +0000 (11:40 +0000)]
fix warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8010
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 25 Jan 2008 09:47:10 +0000 (09:47 +0000)]
fix tab completion spam
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8009
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 25 Jan 2008 09:08:53 +0000 (09:08 +0000)]
tab completion now allows directories (PLEASE TEST ON WIN32)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8008
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 25 Jan 2008 08:53:00 +0000 (08:53 +0000)]
renamed cl_minfps_expbase to cl_minfps_logbase
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8007
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 25 Jan 2008 08:48:57 +0000 (08:48 +0000)]
implemented framerate-dependent particle quality reduction to try to
smooth out fps swings in Ruiner in Nexuiz
added r_drawparticles_drawdistance (and one for decals)
particles and decals arrays now grow dynamically and have smaller
defaults than before
fixed bug with rain particles that made them live for about 4 minutes if
they fell out of the map
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8006
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Thu, 24 Jan 2008 21:43:55 +0000 (21:43 +0000)]
Expandable arrays: memset to zero newly returned records (to be consistent with Mem_Alloc). Fixes bug with string buffers.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8005
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 24 Jan 2008 02:44:57 +0000 (02:44 +0000)]
changed timedemo one-second stats to sync to cl.time (which comes from
the demo) rather than realtime, so now they should be more consistent
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8004
d7cf8633-e32d-0410-b094-
e92efae38249
res [Thu, 24 Jan 2008 01:56:18 +0000 (01:56 +0000)]
edu2p game: change 2nd game dir to 'edu2'
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8003
d7cf8633-e32d-0410-b094-
e92efae38249
res [Tue, 22 Jan 2008 22:57:45 +0000 (22:57 +0000)]
Gecko: added ability to call back into a QC entry point (Gecko_Entry) from JS inside a Gecko instance.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8002
d7cf8633-e32d-0410-b094-
e92efae38249
tomaz [Tue, 22 Jan 2008 21:05:53 +0000 (21:05 +0000)]
458
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8000
d7cf8633-e32d-0410-b094-
e92efae38249
tomaz [Tue, 22 Jan 2008 20:56:16 +0000 (20:56 +0000)]
todo items went from 465 to 459 by finding items that was already done or duplicates
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7999
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 22 Jan 2008 20:05:42 +0000 (20:05 +0000)]
merged CL_MoveParticles, CL_MoveDecals, and R_MoveExplosions into their
respective Draw functions, this gave a small fps gain (due to better
cache behavior)
redesigned input packet timing (now based on cl.time instead of
realtime, which required compensating for slowmo), this takes advantage
of the time synchronization features of the cl.time code
replaced cls.movesequence with cls.netcon->outgoing_unreliable_sequence
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7996
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 22 Jan 2008 20:03:47 +0000 (20:03 +0000)]
some slight cleanup of SV_PushMove
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7995
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 22 Jan 2008 19:56:33 +0000 (19:56 +0000)]
fixed sprites rendering incorrectly in reflections (the view vectors no
longer match the actual rendering matrix in the reflection case, fixing
such problems)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7994
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 22 Jan 2008 19:17:44 +0000 (19:17 +0000)]
removed support for Sajt's unfinished McBSP format
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7993
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 22 Jan 2008 19:15:55 +0000 (19:15 +0000)]
removed mcbsp map parsing
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7992
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 22 Jan 2008 18:53:10 +0000 (18:53 +0000)]
I really prefer code that actually compiles...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7991
d7cf8633-e32d-0410-b094-
e92efae38249
res [Tue, 22 Jan 2008 17:38:35 +0000 (17:38 +0000)]
Update OffscreenGecko headers again
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7990
d7cf8633-e32d-0410-b094-
e92efae38249
res [Tue, 22 Jan 2008 15:12:18 +0000 (15:12 +0000)]
New OffscreenGecko scripting stuff
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7989
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 22 Jan 2008 14:53:58 +0000 (14:53 +0000)]
make play/play2 dummies when -nosound
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7988
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 22 Jan 2008 09:49:30 +0000 (09:49 +0000)]
fix the "ping times for antilag/display wrong" issue, but increasing the problems of sv_clmovement_waitforinput a bit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7987
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Mon, 21 Jan 2008 06:16:47 +0000 (06:16 +0000)]
remove superfluous newline after gl_vbostats text
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7986
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sun, 20 Jan 2008 19:45:25 +0000 (19:45 +0000)]
For some reason, cl_netinputpacketsperserverpacket > 1 causes choppiness when cl_movement is active and fps are high.
As workaround, disable the "replying to server frames" code for cl_netinputpacketsperserverpacket > 1, and make it ONLY respond to server frames (or after 0.1s when no server frame came) when set to 0. 0 MAY be a bit more smooth than 1, but something tells me it is LESS smooth when packet loss is involved.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7985
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 19 Jan 2008 11:20:21 +0000 (11:20 +0000)]
damn... make sure Host_Error prevents SV_Shutdown from getting called, or it could result in a double fault that causes a hard edit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7983
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 19 Jan 2008 11:16:12 +0000 (11:16 +0000)]
new SV progs function SV_Shutdown, gets called just before progs get unloaded/renewed. Useful to save data at the end of a level.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7982
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 19 Jan 2008 10:42:23 +0000 (10:42 +0000)]
add missing FTE_STRINGS to menu QC
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7981
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 19 Jan 2008 08:26:00 +0000 (08:26 +0000)]
rename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specified that it has to be this specific hash function.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7980
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 19 Jan 2008 01:46:58 +0000 (01:46 +0000)]
Fix bug in stringbuffers with bufstr_set not updating num_strings; add a new builtin for QC called float hash(float caseinsensitive, string str) that returns the CRC of the string (possibly after lowercasing). Using this, a persistent database can be implemented quite efficiently (for a 1MB database file, it takes about 0.1 seconds to load and 0.3 seconds to save, which is quite acceptable). From QC, I use a string buffer of 16384 strings, indexed by hash of the key, containing an info string at each index to solve the collision issue. Possibly add hash() to the stringbuffer DP extension, or make a new extension for it?
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7979
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 18 Jan 2008 15:47:26 +0000 (15:47 +0000)]
buf_del builtin frees strings in the buffer now
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7978
d7cf8633-e32d-0410-b094-
e92efae38249
res [Fri, 18 Jan 2008 15:38:00 +0000 (15:38 +0000)]
Removed passing machine type from the makefile to the compiler; instead, determine that stuff through preprocessor conditions.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7977
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 18 Jan 2008 14:19:58 +0000 (14:19 +0000)]
fix quoting for machine type
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7976
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 18 Jan 2008 12:39:58 +0000 (12:39 +0000)]
lowered fresnel power in GLSL shader from 5.0 to 2.0 to make water
reflections more visible
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7975
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 18 Jan 2008 11:45:39 +0000 (11:45 +0000)]
disable water clipping plane while rendering sky, this fixes the "black
sky" bug in reflection/refraction rendering
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7974
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 18 Jan 2008 11:44:31 +0000 (11:44 +0000)]
make GL_SetupView_Orientation_FromEntity not blow away the model matrix
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7973
d7cf8633-e32d-0410-b094-
e92efae38249
black [Thu, 17 Jan 2008 13:39:55 +0000 (13:39 +0000)]
Add support for a clientcamera sqc field that automatically updates the view entity on the clients.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7972
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 17 Jan 2008 13:19:11 +0000 (13:19 +0000)]
rewrote most of the DP_QC_STRINGBUFFERS implementation
string buffers are now associated with their parent progs (and no longer
leak when the progs is freed)
removed almost all limits on string buffers (there is a sanity limit of
a million strings per buffer)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7971
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 17 Jan 2008 11:05:39 +0000 (11:05 +0000)]
hush unitialized warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7970
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 17 Jan 2008 09:14:25 +0000 (09:14 +0000)]
fix a syntax error in the GLSL shader for vertextextureblend + specular
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7969
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:20:50 +0000 (11:20 +0000)]
set eol-style property
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7968
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:19:30 +0000 (11:19 +0000)]
Gecko: add a platform-specific search path for XULrunner. This makes it possible to keep versions for different platforms side-by-side.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7967
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:11:13 +0000 (11:11 +0000)]
GCC warning fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7966
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:07:22 +0000 (11:07 +0000)]
Add cl_gecko.c to Makefile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7965
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:05:29 +0000 (11:05 +0000)]
Gecko: load OffscreenGecko dynamically
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7964
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 11:03:10 +0000 (11:03 +0000)]
Fix CL_VM_InputeEvent prototype in keys.c
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7963
d7cf8633-e32d-0410-b094-
e92efae38249
res [Wed, 16 Jan 2008 10:52:17 +0000 (10:52 +0000)]
Gecko: load OffscreenGecko dynamically
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7962
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Tue, 15 Jan 2008 23:31:45 +0000 (23:31 +0000)]
fix stupid "using port 0" message
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7961
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 15 Jan 2008 05:26:00 +0000 (05:26 +0000)]
added snd_modplug.[ch] to MSVS projects (thanks to Xandy for reporting
this)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7959
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Mon, 14 Jan 2008 19:28:28 +0000 (19:28 +0000)]
make server name/map name sorting case insensitive
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7958
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sun, 13 Jan 2008 20:10:36 +0000 (20:10 +0000)]
fix one typo and one uncleanness in the glsl shader, fixes compilation problems for Morphed
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7957
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sun, 13 Jan 2008 10:12:30 +0000 (10:12 +0000)]
always look for spawnfunc_%s first when spawning an entity by classname (for Q3A map compatibility - ammo_rockets is used as classname in Q3A and as field in Q1)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7956
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 13 Jan 2008 08:55:59 +0000 (08:55 +0000)]
go back to using MATERIALFLAGMASK_DEPTHSORTED for transparent sorting
decisions
clear MATERIALFLAG_BLENDED on watershader materials
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7955
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 13 Jan 2008 08:53:29 +0000 (08:53 +0000)]
fix typo that broke rtlights on vertex texture blend materials
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7954
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 12 Jan 2008 21:33:06 +0000 (21:33 +0000)]
make packet_f work on dedicated servers too
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7953
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Sat, 12 Jan 2008 16:41:34 +0000 (16:41 +0000)]
fix r_glsl_dumpshader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7952
d7cf8633-e32d-0410-b094-
e92efae38249
divverent [Fri, 11 Jan 2008 20:52:19 +0000 (20:52 +0000)]
net_slist_pause
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7951
d7cf8633-e32d-0410-b094-
e92efae38249
black [Thu, 10 Jan 2008 15:42:09 +0000 (15:42 +0000)]
Fix some bugs in the getsurfacepointattribute code.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7949
d7cf8633-e32d-0410-b094-
e92efae38249