16 years agoforgot to remove a debugging test that emitted sparks from autosprite2 shaders
havoc [Sat, 16 Oct 2004 20:28:51 +0000 (20:28 +0000)]
forgot to remove a debugging test that emitted sparks from autosprite2 shaders

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

16 years agohush reconnect command warning about signon 0 because it happens all the time
havoc [Sat, 16 Oct 2004 11:58:31 +0000 (11:58 +0000)]
hush reconnect command warning about signon 0 because it happens all the time

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

16 years agonow parses more of q3 shaders to guess at proper rendering settings for surfaces...
havoc [Sat, 16 Oct 2004 11:29:13 +0000 (11:29 +0000)]
now parses more of q3 shaders to guess at proper rendering settings for surfaces, now implemented are additive blend, deformvertexes autosprite (and autosprite2), nomipmaps, nopicmip, cull twosided/none/disable, surfaceparm nomipmap
now assumes that a q3 texture is not transparent unless it has a shader saying it is (yes shaders are now required to enable transparency in q3bsp)
now loads the texture used in the first pass of the shader if there is no texture of the same name as the shader itself
what this all means: quake3 maps look 99% correct (other than lack of animation and various shader effects)

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

16 years ago-Added static, global baseDC and baseRC variables to avoid having to call
black [Sat, 16 Oct 2004 09:56:56 +0000 (09:56 +0000)]
-Added static, global baseDC and baseRC variables to avoid having to call
 qwglGetCurrent* all the time.

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

16 years agofixed a typo in the numtriangles commit (should have been num_triangles)
havoc [Sat, 16 Oct 2004 07:00:52 +0000 (07:00 +0000)]
fixed a typo in the numtriangles commit (should have been num_triangles)

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

16 years agoskip surfaces with no triangles in Q3BSP rendering code to avoid a R_Mesh_Draw warning
havoc [Sat, 16 Oct 2004 06:58:28 +0000 (06:58 +0000)]
skip surfaces with no triangles in Q3BSP rendering code to avoid a R_Mesh_Draw warning

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

16 years agodon't check visframe on q3bsp surfaces, it's not used
havoc [Sat, 16 Oct 2004 05:52:36 +0000 (05:52 +0000)]
don't check visframe on q3bsp surfaces, it's not used

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

16 years agoexpanded PR_PrintState from 5 statements to 8 statements printed, to give more chance...
havoc [Sat, 16 Oct 2004 04:50:44 +0000 (04:50 +0000)]
expanded PR_PrintState from 5 statements to 8 statements printed, to give more chance of seeing the parameters to a function in warnings/crashes

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

16 years agoadded reporting of what model is unprecached in no precache warning
havoc [Sat, 16 Oct 2004 04:49:07 +0000 (04:49 +0000)]
added reporting of what model is unprecached in no precache warning

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

16 years agoadded MoALTz to thanks list
havoc [Sat, 16 Oct 2004 04:48:18 +0000 (04:48 +0000)]
added MoALTz to thanks list

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

16 years agoforgot to give strlcat a size
havoc [Fri, 15 Oct 2004 23:22:38 +0000 (23:22 +0000)]
forgot to give strlcat a size

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

16 years agoadded a newline to chat messages
havoc [Fri, 15 Oct 2004 23:09:13 +0000 (23:09 +0000)]
added a newline to chat messages

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

16 years agoadded -lSDL to the windows SDL link flags
havoc [Fri, 15 Oct 2004 21:20:26 +0000 (21:20 +0000)]
added -lSDL to the windows SDL link flags

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

16 years ago-Added a more descriptive comment for prvm_edict_t::p
black [Fri, 15 Oct 2004 21:18:02 +0000 (21:18 +0000)]
-Added a more descriptive comment for prvm_edict_t::p
-Added 3 new builtins to the new VM: ftoe, etof, parseentitydata
-Changed the Win32 driver to reuse the GL hDC if possible instead of
 calling GetDC and ReleaseDC every frame.

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

16 years agochanged main() argv parameter to non-const, and casting it to const on assignment...
havoc [Fri, 15 Oct 2004 21:08:25 +0000 (21:08 +0000)]
changed main() argv parameter to non-const, and casting it to const on assignment instead, this should fix an SDL compilation problem

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

16 years agoadded DP_LITSPRITES extension string
havoc [Fri, 15 Oct 2004 20:25:17 +0000 (20:25 +0000)]
added DP_LITSPRITES extension string

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

16 years ago315
havoc [Fri, 15 Oct 2004 07:08:46 +0000 (07:08 +0000)]

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

16 years agonow shows status messages in join game menu when a server is typed in manually (it...
havoc [Fri, 15 Oct 2004 07:08:12 +0000 (07:08 +0000)]
now shows status messages in join game menu when a server is typed in manually (it was only showing them in the server list, oops), also added additional status messages

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

16 years agoreduced cl_net* cvars to just cl_netlocalping and cl_netpacketloss and removed sv_net...
havoc [Fri, 15 Oct 2004 06:56:18 +0000 (06:56 +0000)]
reduced cl_net* cvars to just cl_netlocalping and cl_netpacketloss and removed sv_netpacketloss cvars

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

16 years agorevert an optimization to shadow volume generation that saved a little cpu time but...
havoc [Fri, 15 Oct 2004 06:53:41 +0000 (06:53 +0000)]
revert an optimization to shadow volume generation that saved a little cpu time but cost a lot of gpu fillrate, and caused shadows to randomly invert sometimes

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

16 years agothanks much to Moz for fixing the r_stereo_separation code, it now has proper eye...
havoc [Wed, 13 Oct 2004 23:28:50 +0000 (23:28 +0000)]
thanks much to Moz for fixing the r_stereo_separation code, it now has proper eye positioning and looks MUCH better

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

16 years agoFixed a couple of comments, and modified slightly the developer printing in ResampleSfx
molivier [Wed, 13 Oct 2004 13:45:16 +0000 (13:45 +0000)]
Fixed a couple of comments, and modified slightly the developer printing in ResampleSfx

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

16 years agosnd_dma.c -> snd_main.c
molivier [Wed, 13 Oct 2004 13:42:10 +0000 (13:42 +0000)]
snd_dma.c -> snd_main.c

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

16 years agoLots of minor fixes and improvements to the sound engine, plus a few more important...
molivier [Wed, 13 Oct 2004 07:03:57 +0000 (07:03 +0000)]
Lots of minor fixes and improvements to the sound engine, plus a few more important changes:
- moved the internal structures and API into a separate file (snd_main.h)
- added a lock mecanism on SFXs to free them as soon as they're no longer used
- simplified the sound API
- minor fixes and comment changes here and there
- independent sound volume for fake CD tracks
- updated MSVC and Dev-C++ project files accordingly
- removed unused functions
- added a SFX flag to make sure the engine complains at most one time for each missing sound file
- made the SFX list a linked list to remove the hardcoded limit for the number of SFX a client can handle
- changed the way ambient sounds are managed to be more consistent with the new API
- factorized some code
- removed the useless IN_Accumulate in the Win32 specific code
- removed the table for 8bit sound mixing (snd_scaletable)

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

16 years ago-Its now possible to add support for other edict_private structs easily.
black [Tue, 12 Oct 2004 19:08:30 +0000 (19:08 +0000)]
-Its now possible to add support for other edict_private structs easily.
(Note: You have to derive them by composition from the original one -
e.g. struct server_edict_private_s { prvm_edict_private_t base; ... };
or just copy the elements from prvm_edict_private_t into the new struct -
and add them to the anonymous union p in prvm_edict_t.)

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

16 years agoallow invalid skin numbers on entities using tenebrae dlights (falling back to the...
havoc [Tue, 12 Oct 2004 17:27:06 +0000 (17:27 +0000)]
allow invalid skin numbers on entities using tenebrae dlights (falling back to the model's skin 0 for actual rendering, but using the skin number for a dlight cubemap)

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

16 years agoenabled SDL sound and CD
havoc [Sun, 10 Oct 2004 18:51:32 +0000 (18:51 +0000)]
enabled SDL sound and CD

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

16 years agofixed a signed/unsigned warning
havoc [Sun, 10 Oct 2004 18:51:05 +0000 (18:51 +0000)]
fixed a signed/unsigned warning

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

16 years agomade MapKey static since it's not used anywhere else
havoc [Sun, 10 Oct 2004 18:50:38 +0000 (18:50 +0000)]
made MapKey static since it's not used anywhere else

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

16 years agoremove quotes on say commands at the server end (like it used to, this is done a...
havoc [Sun, 10 Oct 2004 03:08:00 +0000 (03:08 +0000)]
remove quotes on say commands at the server end (like it used to, this is done a little cleaner though)

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

16 years ago315
havoc [Sat, 9 Oct 2004 18:30:00 +0000 (18:30 +0000)]

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

16 years agoadded SV_EntitiesInBox function to find entities within a box, merging the box testin...
havoc [Sat, 9 Oct 2004 02:03:39 +0000 (02:03 +0000)]
added SV_EntitiesInBox function to find entities within a box, merging the box testing in the trigger/trace code, and also greatly optimized PF_findradius using this function

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

16 years agofixed reconnect command which was being ignored by the client (forgot that it doesn...
havoc [Sat, 9 Oct 2004 01:56:14 +0000 (01:56 +0000)]
fixed reconnect command which was being ignored by the client (forgot that it doesn't know what came from the client console and what came from the server, so disabling it in the client console was a bad idea)

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

16 years agoadded "QC function <name> is missing" warnings to more PR_ExecuteProgram calls
havoc [Fri, 8 Oct 2004 20:15:00 +0000 (20:15 +0000)]
added "QC function <name> is missing" warnings to more PR_ExecuteProgram calls

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

16 years agosimplified r_rt* variable setup a little bit
havoc [Fri, 8 Oct 2004 20:12:16 +0000 (20:12 +0000)]
simplified r_rt* variable setup a little bit

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

16 years agogot rid of cl_nodelta cvar (it has never been useful, and rarely worked)
havoc [Fri, 8 Oct 2004 20:11:04 +0000 (20:11 +0000)]
got rid of cl_nodelta cvar (it has never been useful, and rarely worked)
got rid of ackframenum -1 handling
removed ackframenum from entityframe4 and entityframe5 databases as they didn't use it for anything anyway (it is used only temporarily inside the AckFrame functions)

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

16 years agofixed constant resetting of animation interpolation on entities that just spawned...
havoc [Fri, 8 Oct 2004 19:39:47 +0000 (19:39 +0000)]
fixed constant resetting of animation interpolation on entities that just spawned (fixes framegroup animation problems on non-static entities that don't change much)
changed movement interpolation to better handle every-other-frame updates which tend to happen with rate limiting

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

16 years agofix automatic addition of "color" field to be a vector
havoc [Fri, 8 Oct 2004 16:15:47 +0000 (16:15 +0000)]
fix automatic addition of "color" field to be a vector

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

16 years agocleaned up Host_Say to not process the message (MUCH simpler and I didn't trust that...
havoc [Fri, 8 Oct 2004 04:31:06 +0000 (04:31 +0000)]
cleaned up Host_Say to not process the message (MUCH simpler and I didn't trust that code anyway), fixed crash with fromServer messages (it was not checking teamonly, save is not a valid edict)

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

16 years agofix color problem with glow_trail (the blue trail bug)
havoc [Thu, 7 Oct 2004 18:55:13 +0000 (18:55 +0000)]
fix color problem with glow_trail (the blue trail bug)

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

16 years ago306
havoc [Thu, 7 Oct 2004 02:17:51 +0000 (02:17 +0000)]

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

16 years agofixed lingering entities in quake protocol (off by one error in the entity removal...
havoc [Thu, 7 Oct 2004 00:48:19 +0000 (00:48 +0000)]
fixed lingering entities in quake protocol (off by one error in the entity removal loop)

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

16 years agoadded cl_beams_* cvars to effects options menu
havoc [Thu, 7 Oct 2004 00:42:14 +0000 (00:42 +0000)]
added cl_beams_* cvars to effects options menu

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

16 years agonow should be able to connect to another server without leaving the current server...
havoc [Wed, 6 Oct 2004 19:39:01 +0000 (19:39 +0000)]
now should be able to connect to another server without leaving the current server until the connection is accepted

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

16 years agonow begins loading plaque at all the appropriate places, which also means an end...
havoc [Wed, 6 Oct 2004 19:31:09 +0000 (19:31 +0000)]
now begins loading plaque at all the appropriate places, which also means an end to sound during loading

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

16 years agofix nehahra movie support (forgot to handle its protocol number in MSG_ReadCoord)
havoc [Wed, 6 Oct 2004 17:10:44 +0000 (17:10 +0000)]
fix nehahra movie support (forgot to handle its protocol number in MSG_ReadCoord)

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

16 years agosprites now work with EF_NODEPTHTEST
havoc [Wed, 6 Oct 2004 00:26:37 +0000 (00:26 +0000)]
sprites now work with EF_NODEPTHTEST

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

16 years agoonly enable watershader on fullbright water
havoc [Tue, 5 Oct 2004 17:52:06 +0000 (17:52 +0000)]
only enable watershader on fullbright water

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

16 years agonow compiles on x86_64 successfully (still a crash regarding progs strings to fix...
havoc [Tue, 5 Oct 2004 17:44:16 +0000 (17:44 +0000)]
now compiles on x86_64 successfully (still a crash regarding progs strings to fix later)

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

16 years agoadded commandline options section
havoc [Tue, 5 Oct 2004 15:22:58 +0000 (15:22 +0000)]
added commandline options section

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

16 years agorevised commandline option comments for better categorization when sorted
havoc [Tue, 5 Oct 2004 15:22:17 +0000 (15:22 +0000)]
revised commandline option comments for better categorization when sorted

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

16 years agoadded COMMANDLINEOPTION comments for every commandline option, these will be listed...
havoc [Tue, 5 Oct 2004 14:08:15 +0000 (14:08 +0000)]
added COMMANDLINEOPTION comments for every commandline option, these will be listed in the readme

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

16 years agofix colormap checking in ValidateState, it was throwing out RENDER_COLORMAPPED colorm...
havoc [Mon, 4 Oct 2004 21:28:58 +0000 (21:28 +0000)]
fix colormap checking in ValidateState, it was throwing out RENDER_COLORMAPPED colormaps (which are not client numbers)

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

16 years agofix skybox in hlbsp not rendering
havoc [Mon, 4 Oct 2004 21:28:13 +0000 (21:28 +0000)]
fix skybox in hlbsp not rendering

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

16 years agoMSG_ReadAngle functions now return -180 to +180 range instead of 0-360 range which...
havoc [Mon, 4 Oct 2004 21:13:49 +0000 (21:13 +0000)]
MSG_ReadAngle functions now return -180 to +180 range instead of 0-360 range which should fix glitches with player model pitch when looking down

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

16 years ago305
havoc [Mon, 4 Oct 2004 20:44:53 +0000 (20:44 +0000)]

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

16 years agofix negative frags showing up as 65535 and such
havoc [Mon, 4 Oct 2004 18:50:30 +0000 (18:50 +0000)]
fix negative frags showing up as 65535 and such

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

16 years ago304
havoc [Mon, 4 Oct 2004 16:43:24 +0000 (16:43 +0000)]

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

16 years agofix a very stupid way of addressing memory which is not 64bit compatible in the mipte...
havoc [Mon, 4 Oct 2004 14:15:13 +0000 (14:15 +0000)]
fix a very stupid way of addressing memory which is not 64bit compatible in the miptex reader

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

16 years agoNUM_FOR_EDICT now casts to int so that it never returns a 64bit integer on 64bit...
havoc [Mon, 4 Oct 2004 14:04:05 +0000 (14:04 +0000)]
NUM_FOR_EDICT now casts to int so that it never returns a 64bit integer on 64bit compiles which sometimes end up getting passed to printf with the wrong format...

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

16 years agoAllocated the log queue earlier in Log_Init since Cvar_* functions now print develope...
molivier [Mon, 4 Oct 2004 06:58:57 +0000 (06:58 +0000)]
Allocated the log queue earlier in Log_Init since Cvar_* functions now print developer information

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

16 years agoMoved the clamping of volumes higher in the mixing code, so that 16 bit sounds are...
molivier [Mon, 4 Oct 2004 06:56:58 +0000 (06:56 +0000)]
Moved the clamping of volumes higher in the mixing code, so that 16 bit sounds are clamped too

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

16 years ago304
havoc [Sun, 3 Oct 2004 19:15:44 +0000 (19:15 +0000)]

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

16 years ago298
tomaz [Sun, 3 Oct 2004 19:08:15 +0000 (19:08 +0000)]

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

16 years agoremove support for GL_NV_vertex_array_range as it's obsolete and unused
havoc [Sun, 3 Oct 2004 10:27:50 +0000 (10:27 +0000)]
remove support for GL_NV_vertex_array_range as it's obsolete and unused

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

16 years agoadded -novideosync disable for WGL swap control
havoc [Sun, 3 Oct 2004 10:17:31 +0000 (10:17 +0000)]
added -novideosync disable for WGL swap control

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

16 years agofix cvar_string to check if the cvar exists
havoc [Sat, 2 Oct 2004 21:09:34 +0000 (21:09 +0000)]
fix cvar_string to check if the cvar exists

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

16 years ago298
havoc [Fri, 1 Oct 2004 14:07:59 +0000 (14:07 +0000)]

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

16 years ago299
havoc [Fri, 1 Oct 2004 14:05:47 +0000 (14:05 +0000)]

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

16 years ago323
havoc [Fri, 1 Oct 2004 10:43:24 +0000 (10:43 +0000)]

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

16 years agosave shorter rtlights lines when cubemap/corona/angles are not used, saves a bit...
havoc [Fri, 1 Oct 2004 08:39:08 +0000 (08:39 +0000)]
save shorter rtlights lines when cubemap/corona/angles are not used, saves a bit of space

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

16 years agofix an accidentally removed variable, and move a couple unused variables into the...
havoc [Fri, 1 Oct 2004 07:54:54 +0000 (07:54 +0000)]
fix an accidentally removed variable, and move a couple unused variables into the #else block they're used in

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

16 years agomade shadowvolume building about 40% faster by not using projectdistance
havoc [Thu, 30 Sep 2004 17:23:58 +0000 (17:23 +0000)]
made shadowvolume building about 40% faster by not using projectdistance

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

16 years agosped up nexuiz rtlights benchmark by 4% by optimizing box cull on models to skip...
havoc [Thu, 30 Sep 2004 16:38:54 +0000 (16:38 +0000)]
sped up nexuiz rtlights benchmark by 4% by optimizing box cull on models to skip triangle box cull when surface box is entirely inside light box
restructured R_Shadow_ConstructShadowVolume loops a bit to make for less stalls, this seems to have only netted a 0.5% speed gain or so

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

16 years agoremoved a few fields from q3msurface_t
havoc [Thu, 30 Sep 2004 10:05:01 +0000 (10:05 +0000)]
removed a few fields from q3msurface_t
added a facelist to each q3mtexture_t so that the renderer can build a list of faces of the same texture without any face->texture comparisons
rewrote R_Q3BSP_DrawSky and R_Q3BSP_Draw, this improved a nexuiz timedemo with no rtlights by 116%

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

16 years agorecalculate model->brushq3.num_leafs during loading because some broken q3map/q3map2...
havoc [Wed, 29 Sep 2004 10:50:28 +0000 (10:50 +0000)]
recalculate model->brushq3.num_leafs during loading because some broken q3map/q3map2 compiler versions actually count submodels as leafs in the bsp file

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

16 years agoupdated darkplaces icon with 6 sizes of 32bit (XP icon) and 4 sizes of 8bit (non...
havoc [Tue, 28 Sep 2004 09:15:04 +0000 (09:15 +0000)]
updated darkplaces icon with 6 sizes of 32bit (XP icon) and 4 sizes of 8bit (non-XP icon), thanks de-we

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

16 years ago324
havoc [Tue, 28 Sep 2004 06:59:21 +0000 (06:59 +0000)]

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

16 years agoimplemented DP_EF_NODEPTHTEST extension
havoc [Tue, 28 Sep 2004 06:38:45 +0000 (06:38 +0000)]
implemented DP_EF_NODEPTHTEST extension

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

16 years agouse a less bizarre method of byte swapping q1bsp/q3bsp headers
havoc [Tue, 28 Sep 2004 05:34:59 +0000 (05:34 +0000)]
use a less bizarre method of byte swapping q1bsp/q3bsp headers

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

16 years ago325
tomaz [Mon, 27 Sep 2004 22:03:22 +0000 (22:03 +0000)]

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

16 years ago326
tomaz [Mon, 27 Sep 2004 22:00:16 +0000 (22:00 +0000)]

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

16 years ago327
havoc [Mon, 27 Sep 2004 13:41:21 +0000 (13:41 +0000)]

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

16 years agoupgraded particle font texture to 512x512 and changed the blood texture, and made...
havoc [Mon, 27 Sep 2004 13:39:27 +0000 (13:39 +0000)]
upgraded particle font texture to 512x512 and changed the blood texture, and made blood splats larger (to make use of the more detailed texture)

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

16 years agofixed r_shadow_realtime_world_lightmaps cvar control to be a slider, it was a checkbox
havoc [Mon, 27 Sep 2004 11:31:52 +0000 (11:31 +0000)]
fixed r_shadow_realtime_world_lightmaps cvar control to be a slider, it was a checkbox

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

16 years ago325
havoc [Mon, 27 Sep 2004 07:09:58 +0000 (07:09 +0000)]

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

16 years ago326
tomaz [Mon, 27 Sep 2004 06:12:30 +0000 (06:12 +0000)]

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

16 years ago327 and reformatted notify list to sort by name first
havoc [Mon, 27 Sep 2004 01:29:47 +0000 (01:29 +0000)]
327 and reformatted notify list to sort by name first

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

16 years ago329
tomaz [Sun, 26 Sep 2004 23:10:06 +0000 (23:10 +0000)]

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

16 years agofix recently added notifies to say who to notify
havoc [Sun, 26 Sep 2004 14:02:21 +0000 (14:02 +0000)]
fix recently added notifies to say who to notify

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

16 years ago336
havoc [Sun, 26 Sep 2004 13:47:27 +0000 (13:47 +0000)]

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

16 years agostatic entities now light and shadow properly
havoc [Sun, 26 Sep 2004 13:42:22 +0000 (13:42 +0000)]
static entities now light and shadow properly

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

16 years agominor cleanup - merged R_UpdateWorld into other places
havoc [Sun, 26 Sep 2004 13:23:06 +0000 (13:23 +0000)]
minor cleanup - merged R_UpdateWorld into other places

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

16 years agor_fullbright 1 now works properly with r_shadow_realtime_world 1 (why anyone would...
havoc [Sun, 26 Sep 2004 13:11:04 +0000 (13:11 +0000)]
r_fullbright 1 now works properly with r_shadow_realtime_world 1 (why anyone would want to do this? no idea)

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

16 years agoadded r_rtworld, r_rtworldshadows, r_rtdlight, r_rtdlightshadows, and r_lightmapinten...
havoc [Sun, 26 Sep 2004 12:46:40 +0000 (12:46 +0000)]
added r_rtworld, r_rtworldshadows, r_rtdlight, r_rtdlightshadows, and r_lightmapintensity cvars to greatly clean up the handling of the various rtlight/normal rendering modes
ifixed lighting problems on transparent alias models in r_shadow_realtime_world mode with r_shadow_realtime_world_lightmaps < 1 (note: still does not use the rtlights entities, just bsp model light queries like lightmap mode uses)
cleaned up handling regarding RENDER_LIGHT, RENDER_SHADOW, EF_ADDITIVE, alpha, r_fullbright, RENDER_EXTERIORMODEL, and model->flags (now the EF_ADDITIVE and EF_FULLBRIGHT flags were moved to model->flags2)
tag children now inherit RENDER_EXTERIORMODEL from their parent so you can simply attach an external weapon model to the player model and it will appear/disappear according to chase_active appropriately

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

16 years agoremoved some very stale dead code
havoc [Sun, 26 Sep 2004 12:14:37 +0000 (12:14 +0000)]
removed some very stale dead code

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

16 years agoFixed some errors in the vid_vsync code.
tomaz [Sun, 26 Sep 2004 11:25:11 +0000 (11:25 +0000)]
Fixed some errors in the vid_vsync code.

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

16 years agoremove unused variable generatenormals
havoc [Sun, 26 Sep 2004 04:06:45 +0000 (04:06 +0000)]
remove unused variable generatenormals

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

16 years agofix R_Shadow_UpdateWorldLight (used by editing commands) to set cubemap even if it...
havoc [Sun, 26 Sep 2004 02:23:11 +0000 (02:23 +0000)]
fix R_Shadow_UpdateWorldLight (used by editing commands) to set cubemap even if it's an empty string, otherwise it's impossible to remove a cubemap on a light

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

16 years agoadded a Mod_BuildNormals function to accelerate vertex lighting which doesn't need...
havoc [Thu, 23 Sep 2004 01:44:33 +0000 (01:44 +0000)]
added a Mod_BuildNormals function to accelerate vertex lighting which doesn't need texture vectors
moved vertex blending function from gl_models.c to model_alias.c and renamed accordingly
model loader now compiles frame zero into raw arrays because most models are not animated, this speeds up non-animated models, and anything else idling on frame 0, this eliminates vertex processing in many cases

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