xonotic/darkplaces.git
16 years agoadded texmatrix[] to rmeshstate_t and removed R_Mesh_TextureMatrix function
havoc [Sat, 13 Mar 2004 23:26:17 +0000 (23:26 +0000)]
added texmatrix[] to rmeshstate_t and removed R_Mesh_TextureMatrix function
reorganized water rendering code to make it a lot less confusing (especially the r_watershader code)

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

16 years agofixed gl_paranoid warnings in R_DrawQueue
havoc [Sat, 13 Mar 2004 23:14:29 +0000 (23:14 +0000)]
fixed gl_paranoid warnings in R_DrawQueue

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

16 years agofixed gl_paranoid warnings caused by gl_texture_anisotropy being less than 1, it...
havoc [Sat, 13 Mar 2004 23:12:35 +0000 (23:12 +0000)]
fixed gl_paranoid warnings caused by gl_texture_anisotropy being less than 1, it is now bound to 1-128 range

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

16 years agoDP should read the config files correcly again now.
black [Sat, 13 Mar 2004 14:43:04 +0000 (14:43 +0000)]
DP should read the config files correcly again now.

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

16 years ago*** empty log message ***
havoc [Sat, 13 Mar 2004 11:50:11 +0000 (11:50 +0000)]
*** empty log message ***

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

16 years agoadded const to most parameters to Mod_ShadowMesh_AddMesh
havoc [Sat, 13 Mar 2004 07:21:07 +0000 (07:21 +0000)]
added const to most parameters to Mod_ShadowMesh_AddMesh

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

16 years agoq3bsp rendering now uses visframe instead of markframe, also removed some cruft in...
havoc [Sat, 13 Mar 2004 07:12:13 +0000 (07:12 +0000)]
q3bsp rendering now uses visframe instead of markframe, also removed some cruft in R_Q3BSP_DrawShadowVolume/R_Q3BSP_DrawLight

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

16 years agoChanged the way DP detects and handles the CPU endianess. All the tests are done...
molivier [Thu, 11 Mar 2004 08:08:04 +0000 (08:08 +0000)]
Changed the way DP detects and handles the CPU endianess. All the tests are done at compile time now. Tested on Win32 (MSVC6 and MinGW32), Linux and NetBSD; should also work on the other BSDs.

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

16 years agoremoved special GAME_FNIGGIUM default for con_forcewhiledisconnected
havoc [Thu, 11 Mar 2004 00:43:46 +0000 (00:43 +0000)]
removed special GAME_FNIGGIUM default for con_forcewhiledisconnected

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

16 years agonow calls GL_LockArrays manually around each R_Mesh_Draw call instead of locking...
havoc [Wed, 10 Mar 2004 21:40:02 +0000 (21:40 +0000)]
now calls GL_LockArrays manually around each R_Mesh_Draw call instead of locking inside R_Mesh_Draw, so some things can render the same geometry repeatedly (shadow volumes and lighting) without unlocking)

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

16 years agoremoved r_shadow_showtris (superseded by r_showtris)
havoc [Wed, 10 Mar 2004 09:52:55 +0000 (09:52 +0000)]
removed r_shadow_showtris (superseded by r_showtris)

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

16 years agomerged CL_ColorPointer into R_Mesh_State
havoc [Wed, 10 Mar 2004 09:48:53 +0000 (09:48 +0000)]
merged CL_ColorPointer into R_Mesh_State

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

16 years agoR_Mesh_State_Texture and GL_VertexPointer merge once again to become the reborn R_Mes...
havoc [Wed, 10 Mar 2004 08:35:53 +0000 (08:35 +0000)]
R_Mesh_State_Texture and GL_VertexPointer merge once again to become the reborn R_Mesh_State function

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

16 years agoGL_Color no longer interacts with GL_ColorPointer (so be sure to set GL_ColorPointer...
havoc [Wed, 10 Mar 2004 07:43:41 +0000 (07:43 +0000)]
GL_Color no longer interacts with GL_ColorPointer (so be sure to set GL_ColorPointer if it have been left on something you don't want)
GL_ColorPointer now resets glColor when array is turned off, because glColor gets trashed while color array is on (so sayeth the GL spec, and so proveth the NVIDIA driver)

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

16 years agonow supports GL_EXT_stencil_two_side extension (found on NV30/R300 class cards),...
havoc [Wed, 10 Mar 2004 07:14:24 +0000 (07:14 +0000)]
now supports GL_EXT_stencil_two_side extension (found on NV30/R300 class cards), this halves the polycount thrown at the card for shadow volumes, which got me a 77% speed gain on my GFFX5200

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

16 years agosorted extension list again
havoc [Wed, 10 Mar 2004 06:34:43 +0000 (06:34 +0000)]
sorted extension list again

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

16 years agoadded DP_SV_ROTATINGBMODEL extension to list
havoc [Wed, 10 Mar 2004 06:33:22 +0000 (06:33 +0000)]
added DP_SV_ROTATINGBMODEL extension to list

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

16 years agoadded a few items to the client features list
havoc [Wed, 10 Mar 2004 06:20:56 +0000 (06:20 +0000)]
added a few items to the client features list

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

16 years agoadded -benchmark commandline option
havoc [Wed, 10 Mar 2004 06:17:56 +0000 (06:17 +0000)]
added -benchmark commandline option

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

16 years agoadded showtime/showtime_format and showdate/showdate_format cvars, and moved the...
havoc [Wed, 10 Mar 2004 05:51:53 +0000 (05:51 +0000)]
added showtime/showtime_format and showdate/showdate_format cvars, and moved the fps display to bottom right corner (above the optional time/date displays)

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

16 years agoadded convenience function Sys_TimeString which calls strftime into a temporary buffe...
havoc [Wed, 10 Mar 2004 05:48:41 +0000 (05:48 +0000)]
added convenience function Sys_TimeString which calls strftime into a temporary buffer and returns the string, now Sys_Print uses this

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

16 years agoadded an extern for cmdline cvar
havoc [Wed, 10 Mar 2004 05:47:18 +0000 (05:47 +0000)]
added an extern for cmdline cvar

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

16 years agoadded Print versions of Printf functions and made all calls that do not need formatin...
havoc [Wed, 10 Mar 2004 03:28:04 +0000 (03:28 +0000)]
added Print versions of Printf functions and made all calls that do not need formating use the Print versions; yes this is a cosmetic cleanup, prints are too rare to have any performance improvements.

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

16 years agoclean up an unnecessary snprintf
havoc [Wed, 10 Mar 2004 00:06:05 +0000 (00:06 +0000)]
clean up an unnecessary snprintf

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

16 years agoadded scr_conforcewhiledisconnected cvar so it is possible to disable the console...
havoc [Tue, 9 Mar 2004 22:25:44 +0000 (22:25 +0000)]
added scr_conforcewhiledisconnected cvar so it is possible to disable the console forcing (and defaults off in GAME_FNIGGIUM)

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

16 years ago"edict" command no longer crashes if given -1 as edict number
havoc [Tue, 9 Mar 2004 22:14:07 +0000 (22:14 +0000)]
"edict" command no longer crashes if given -1 as edict number

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

16 years ago*** empty log message ***
havoc [Tue, 9 Mar 2004 21:59:59 +0000 (21:59 +0000)]
*** empty log message ***

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

16 years agoreorganized SV_FlyMove to merge the two paths (new simple/old complex approaches)
havoc [Tue, 9 Mar 2004 21:56:49 +0000 (21:56 +0000)]
reorganized SV_FlyMove to merge the two paths (new simple/old complex approaches)

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

16 years agoworked around curve collision problems by doing special sort-of-axial edge planes...
havoc [Tue, 9 Mar 2004 20:35:51 +0000 (20:35 +0000)]
worked around curve collision problems by doing special sort-of-axial edge planes on triangle collisions (ultimately the collision routine needs to do edge/edge collisions somehow to make this unnecessary)
now snaps triangle mesh vertices to 1/32 of a unit precision to keep the plane calculations a little more accurate (note: this is done at collision time), although this doesn't seem to be necessary
collision nudge values are now configurable via cvars (collision_ cvars, warning: things tend to break if startnudge != endnudge, and enternudge should be the same as leavenudge)

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

16 years agonow supports loading skybox specified by q3 sky shaders
havoc [Tue, 9 Mar 2004 04:59:14 +0000 (04:59 +0000)]
now supports loading skybox specified by q3 sky shaders

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

16 years agofix saving of rtlights files (everything past cubemap was getting lost)
havoc [Tue, 9 Mar 2004 04:56:04 +0000 (04:56 +0000)]
fix saving of rtlights files (everything past cubemap was getting lost)

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

16 years agofix two signed/unsigned comparison warnings
havoc [Sun, 7 Mar 2004 08:15:17 +0000 (08:15 +0000)]
fix two signed/unsigned comparison warnings

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

16 years ago*** empty log message ***
havoc [Sun, 7 Mar 2004 01:06:17 +0000 (01:06 +0000)]
*** empty log message ***

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

16 years ago*** empty log message ***
havoc [Sat, 6 Mar 2004 02:09:08 +0000 (02:09 +0000)]
*** empty log message ***

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

16 years agocon_notify is now measured in cl.time, not realtime, so cl_avidemo doesn't have terri...
havoc [Sat, 6 Mar 2004 01:54:44 +0000 (01:54 +0000)]
con_notify is now measured in cl.time, not realtime, so cl_avidemo doesn't have terribly brief notify messages in it when rendering slowly

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

16 years agoDon't use coronas for muzzleflashes
molivier [Fri, 5 Mar 2004 13:12:52 +0000 (13:12 +0000)]
Don't use coronas for muzzleflashes

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

16 years agono view tilt when dead in GAME_FNIGGIUM
havoc [Fri, 5 Mar 2004 05:01:02 +0000 (05:01 +0000)]
no view tilt when dead in GAME_FNIGGIUM

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

16 years agofixed noclipping rendering nothing (there was no vis update)
havoc [Fri, 5 Mar 2004 02:27:13 +0000 (02:27 +0000)]
fixed noclipping rendering nothing (there was no vis update)

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

16 years agoimprove console text parsing a little (now handles \r line endings as well as \n...
havoc [Fri, 5 Mar 2004 02:11:22 +0000 (02:11 +0000)]
improve console text parsing a little (now handles \r line endings as well as \n, and strips whitespace before the line, just for completeness)

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

16 years agofix monsters ignoring player underwater if a bmodel is in the area (inopen was being...
havoc [Thu, 4 Mar 2004 19:12:12 +0000 (19:12 +0000)]
fix monsters ignoring player underwater if a bmodel is in the area (inopen was being set by bmodels)

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

16 years agoFixed key bindings menu (we have a range of 1024 key numbers now)
molivier [Thu, 4 Mar 2004 13:17:37 +0000 (13:17 +0000)]
Fixed key bindings menu (we have a range of 1024 key numbers now)

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

16 years agoRemoved a few warnings in MSVC6
molivier [Thu, 4 Mar 2004 13:14:53 +0000 (13:14 +0000)]
Removed a few warnings in MSVC6

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

16 years agoseparate collision curve geometry from rendering, this means lower detail collision...
havoc [Thu, 4 Mar 2004 07:06:00 +0000 (07:06 +0000)]
separate collision curve geometry from rendering, this means lower detail collision curves for more performance

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

16 years agoimplemented r_subdivisions_ cvars to control q3bsp patches, adaptive LOD based on...
havoc [Thu, 4 Mar 2004 06:20:20 +0000 (06:20 +0000)]
implemented r_subdivisions_ cvars to control q3bsp patches, adaptive LOD based on flatness, etc

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

16 years agofix r_editlights_edit not accepting some commands
havoc [Thu, 4 Mar 2004 02:11:03 +0000 (02:11 +0000)]
fix r_editlights_edit not accepting some commands

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

16 years agor_showtris is now a float cvar which controls intensity, rather than just a flag
havoc [Thu, 4 Mar 2004 01:27:46 +0000 (01:27 +0000)]
r_showtris is now a float cvar which controls intensity, rather than just a flag

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

16 years agomade r_showtris transparent (quite faint actually), color coded different types of...
havoc [Wed, 3 Mar 2004 15:26:27 +0000 (15:26 +0000)]
made r_showtris transparent (quite faint actually), color coded different types of geometry, and now shows all tris (even hud), cleaned up a few qgl calls (GL_Clear added, etc) to make it more reliable

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

16 years agofix Q3BSP submodels to have no GetPVS function (or assorted other functions which...
havoc [Wed, 3 Mar 2004 07:05:05 +0000 (07:05 +0000)]
fix Q3BSP submodels to have no GetPVS function (or assorted other functions which would fail)

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

16 years agofixed bmodel realtime lighting/shadowing render crashes (and bogus shadows from them)
havoc [Wed, 3 Mar 2004 06:50:56 +0000 (06:50 +0000)]
fixed bmodel realtime lighting/shadowing render crashes (and bogus shadows from them)

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

16 years agoadded r_showtris
havoc [Wed, 3 Mar 2004 06:00:42 +0000 (06:00 +0000)]
added r_showtris

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

16 years agorealtime dlight shadows are now nearly the speed of compiled lights
havoc [Wed, 3 Mar 2004 05:25:07 +0000 (05:25 +0000)]
realtime dlight shadows are now nearly the speed of compiled lights

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

16 years agotemporarily disabled compiled rtlights (they'll make a comeback after dynamic rtlight...
havoc [Tue, 2 Mar 2004 20:29:58 +0000 (20:29 +0000)]
temporarily disabled compiled rtlights (they'll make a comeback after dynamic rtlight optimizations are finished)
dynamic rtlight shadow volumes for bmodels are now generated from a single mesh for the entire model, in which only some ranges of triangles are marked, this finally cured the performance problems with dlight
s

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

16 years agofix rtlights cubemapname load/save
havoc [Tue, 2 Mar 2004 05:34:58 +0000 (05:34 +0000)]
fix rtlights cubemapname load/save

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

16 years agofix the inverted bumps on some surfaces (no longer uses CrossProduct to get the svector)
havoc [Tue, 2 Mar 2004 02:27:59 +0000 (02:27 +0000)]
fix the inverted bumps on some surfaces (no longer uses CrossProduct to get the svector)

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

16 years agoforgot to init the effects variable in the light parser
havoc [Tue, 2 Mar 2004 00:26:59 +0000 (00:26 +0000)]
forgot to init the effects variable in the light parser

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

16 years agodlights using light_lev now need the PFLAG_FULLDYNAMIC flag set to operate, otherwise...
havoc [Tue, 2 Mar 2004 00:22:31 +0000 (00:22 +0000)]
dlights using light_lev now need the PFLAG_FULLDYNAMIC flag set to operate, otherwise they are ignored, this was necessary (lights that did not remove themselves were being treated as proper dlights), it is also now more tenebrae compatible (EF_FULLDYNAMIC translated to PFLAG_FULLDYNAMIC in GAME_TENEBRAE mode)

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

16 years agomore cleanups of R_RenderScene (now r_view_ variables exist which are copied from...
havoc [Mon, 1 Mar 2004 18:56:32 +0000 (18:56 +0000)]
more cleanups of R_RenderScene (now r_view_ variables exist which are copied from the r_refdef fields each frame, these variables can easily be reconfigured for texture renders for mirrors or whatever)

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

16 years agoremove unused variable i in V_ParseDamage
havoc [Mon, 1 Mar 2004 05:03:46 +0000 (05:03 +0000)]
remove unused variable i in V_ParseDamage

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

16 years agoremove unused variable i in CL_ParseStartSoundPacket
havoc [Mon, 1 Mar 2004 05:01:36 +0000 (05:01 +0000)]
remove unused variable i in CL_ParseStartSoundPacket

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

16 years agoscreenshots are now saved to screenshots/ and videos are now saved to video/, and...
havoc [Mon, 1 Mar 2004 04:59:51 +0000 (04:59 +0000)]
screenshots are now saved to screenshots/ and videos are now saved to video/, and both now use the name template dp%06d.tga or .jpg, GAME_FNIGGIUM uses fniggium%06d.tga or .jpg as per Sajt's request

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

16 years agofixed cubemap upload scaling crash (was using power of 2 size for parsing input,...
havoc [Mon, 1 Mar 2004 04:29:38 +0000 (04:29 +0000)]
fixed cubemap upload scaling crash (was using power of 2 size for parsing input, should have used input size)

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

16 years agofixed viewblends which were broken the past few days
havoc [Mon, 1 Mar 2004 04:20:33 +0000 (04:20 +0000)]
fixed viewblends which were broken the past few days

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

16 years agoupgraded network protocol to DP5, now sends precise entity angles (except for EF_LOWP...
havoc [Mon, 1 Mar 2004 03:49:14 +0000 (03:49 +0000)]
upgraded network protocol to DP5, now sends precise entity angles (except for EF_LOWPRECISION entities), this increases normal entity data by 3 bytes (18 bytes for origin+angles, was 15 bytes in DP4, still 9 bytes for EF_LOWPRECISION origin+angles), upgraded a few other parts of protocol to precise angles and/or floats as well (client data updates now use float for punchvector and velocity
)

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

16 years agocleaned up rtlight handling, merging most code between world rtlights and dlights...
havoc [Mon, 1 Mar 2004 01:58:02 +0000 (01:58 +0000)]
cleaned up rtlight handling, merging most code between world rtlights and dlights (which now could conceivably be compiled if static)
moved R_ShadowVolumeLighting to r_shadow.c
added RENDER_LIGHT flag to entity_render_t to make rtlighting optional per entity

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

16 years agoforgot to commit this as part of the SV_TouchAreaGrid fix
havoc [Mon, 1 Mar 2004 01:54:54 +0000 (01:54 +0000)]
forgot to commit this as part of the SV_TouchAreaGrid fix

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

16 years agofixed SV_TouchAreaGrid to not crash if SV_IncreaseEdicts is called during a touch...
havoc [Mon, 1 Mar 2004 01:46:35 +0000 (01:46 +0000)]
fixed SV_TouchAreaGrid to not crash if SV_IncreaseEdicts is called during a touch function, by making a list of edicts to touch and then running through the list afterward

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

16 years agosafety checked lightmap access in Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses...
havoc [Mon, 1 Mar 2004 01:29:43 +0000 (01:29 +0000)]
safety checked lightmap access in Mod_Q1BSP_RecursiveLightPoint as one map Sajt uses was crashing, it now rounds off coords to be inside the lightmap

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

16 years agodefault a few cvars accordingly for GAME_TENEBRAE mode
havoc [Sat, 28 Feb 2004 15:41:43 +0000 (15:41 +0000)]
default a few cvars accordingly for GAME_TENEBRAE mode

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

16 years agosupport angles on light entities
havoc [Sat, 28 Feb 2004 15:18:21 +0000 (15:18 +0000)]
support angles on light entities

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

16 years agosupport skin and pflags in light entity loader
havoc [Sat, 28 Feb 2004 15:15:55 +0000 (15:15 +0000)]
support skin and pflags in light entity loader

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

16 years agoPF_traceline/PF_tracebox can now use world as the edict
havoc [Thu, 26 Feb 2004 19:28:15 +0000 (19:28 +0000)]
PF_traceline/PF_tracebox can now use world as the edict

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

16 years agomade the static light built message a dprint
havoc [Thu, 26 Feb 2004 19:25:38 +0000 (19:25 +0000)]
made the static light built message a dprint

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

16 years agoTEU uses teu.rc, not quake.rc
havoc [Thu, 26 Feb 2004 02:06:11 +0000 (02:06 +0000)]
TEU uses teu.rc, not quake.rc

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

16 years agorenamed brush model pvs stuff to be in brush struct instead of brushq1 and brushq3...
havoc [Wed, 25 Feb 2004 18:42:31 +0000 (18:42 +0000)]
renamed brush model pvs stuff to be in brush struct instead of brushq1 and brushq3 structs

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

16 years agoMOVETYPE_BOUNCE change: an explosion above gibs will now cause them to bounce into...
havoc [Wed, 25 Feb 2004 18:41:19 +0000 (18:41 +0000)]
MOVETYPE_BOUNCE change: an explosion above gibs will now cause them to bounce into the air, rather than skidding to a halt immediately like they were doing

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

16 years agoenable MOVE_ values on PF_tracebox (already enabled on PF_traceline)
havoc [Wed, 25 Feb 2004 12:42:41 +0000 (12:42 +0000)]
enable MOVE_ values on PF_tracebox (already enabled on PF_traceline)

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

16 years agofixed black fullbrights on models in realtime mode
havoc [Tue, 24 Feb 2004 17:10:27 +0000 (17:10 +0000)]
fixed black fullbrights on models in realtime mode

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

16 years agofixed GL_Scissor call in rtlight code (apparently I need to feed it a top to bottom...
havoc [Sun, 22 Feb 2004 18:56:51 +0000 (18:56 +0000)]
fixed GL_Scissor call in rtlight code (apparently I need to feed it a top to bottom rectangle... ?  must be something weird in the transform math as GL uses bottom to top)
made q1bsp and q3bsp a little more alike (regarding pvs clusters), now q3bsp has all the same pvs cluster fields as q3bsp
added fake lightgrid and pvs data to q3bsp loading when map is unlit or unvised respectively, this should improve internal consistency

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

16 years agoallow "rate" command to be executed on server when sent from client
havoc [Sun, 22 Feb 2004 17:09:13 +0000 (17:09 +0000)]
allow "rate" command to be executed on server when sent from client

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

16 years agofixed a possible crash in R_DrawCoronas (it was using rd->origin where it should...
havoc [Sun, 22 Feb 2004 06:48:42 +0000 (06:48 +0000)]
fixed a possible crash in R_DrawCoronas (it was using rd->origin where it should have used wl->origin)

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

16 years agocleaned up R_RenderView setup code a bit, and shuffled SCR_CalcRefdef stuff to SCR_Up...
havoc [Sat, 21 Feb 2004 21:05:21 +0000 (21:05 +0000)]
cleaned up R_RenderView setup code a bit, and shuffled SCR_CalcRefdef stuff to SCR_UpdateScreen
scissor is now on during all of R_RenderView (including rtlight portions), and GL_Scissor is used to set it instead of direct qglScissor calls, also GL_ScissorTest is used
r_farclip is now calculated without need for... just about anything, this allowed shuffling the setup code around a bit
various cleanups to allow multiple view renders per frame
added scr_zoomwindow cvars to do a (silly) zoomed view picture-in-picture overlay, it works but turned out useless in playtesting unless you want to stare at a shambler's chest... ugh
R_AnimateLight and R_BuildLightList merged to become R_UpdateLights
some setup code from R_RenderView became a new function R_UpdateWorld
GL_SetupView_ViewPort calls replaced by qglViewport calls, as it was a mostly useless wrapper

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

16 years agotimedemo now also prints min/avg/max fps
havoc [Sat, 21 Feb 2004 14:19:26 +0000 (14:19 +0000)]
timedemo now also prints min/avg/max fps

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

16 years agoadded rate limiting to player setup menu
havoc [Sat, 21 Feb 2004 12:51:19 +0000 (12:51 +0000)]
added rate limiting to player setup menu

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

16 years agorate limited networking ("rate" command in client console, limited by sv_maxrate...
havoc [Sat, 21 Feb 2004 11:58:08 +0000 (11:58 +0000)]
rate limited networking ("rate" command in client console, limited by sv_maxrate cvar on server), also cleaned up some of the MAX_DATAGRAM and similar defines (now only uses NET_MAXMESSAGE)

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

16 years agocl_fakelocalping cvars now produce the specified ping time (rather than twice it...
havoc [Sat, 21 Feb 2004 07:43:37 +0000 (07:43 +0000)]
cl_fakelocalping cvars now produce the specified ping time (rather than twice it) by lagging each way only 50% of the requested ping

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

16 years agoremove unused stripextension code
havoc [Sat, 21 Feb 2004 07:39:41 +0000 (07:39 +0000)]
remove unused stripextension code

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

16 years agomoved light matrix generation out of the render code and into the light creation...
havoc [Sat, 21 Feb 2004 07:37:36 +0000 (07:37 +0000)]
moved light matrix generation out of the render code and into the light creation code (rtlight and dlight setup) to save time and simplify things
rtlights and dlights now have an orientation matrix (this allows cubemaps to be rotated)
rtlights can now have corona flares, and it is adjustable per light (also on dlights)
r_coronas cvar now controls corona intensity, and menu now has r_coronas slider instead of checkbox
dlights now have color[]/radius settings instead of just colored intensity, so the radius can be independently controlled again (this mainly improves realtime dlight behaviors)
dlights can now have cubemaps, light styles, optional shadows (rather than always on), and better color/radius settings (and all this is tenebrae compatible) using the light_lev, color, style, skin (cubemap number, only available if modelindex is 0), and pflags (1 is no shadow, 2 is draw corona which is ignored by darkplaces because it always draws a corona) fields in the quakec entities
now supports tenebrae dlight fields (light_lev, color, style, pflags), this means dlights can now have cubemaps (skin, only used if modelindex is 0), light style (style), color (color) and radius (light_lev) with more precision than glow_ fields, and pflags (flag 1 is no shadow, flag 2 is corona which is ignored because dlights always have a corona in darkplaces), also loads tenebrae mods
added TENEBRAE_GFX_DLIGHTS extension

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

16 years agofixed loading of replacement frame images (it was stripping the .spr extension, weird...
havoc [Fri, 20 Feb 2004 17:04:03 +0000 (17:04 +0000)]
fixed loading of replacement frame images (it was stripping the .spr extension, weird), and reduced spr internal image handling code a bit by using a second alpha palette

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

16 years agoupgraded Image_CopyMux to be able to output constant byte values as well as indexed...
havoc [Fri, 20 Feb 2004 16:31:03 +0000 (16:31 +0000)]
upgraded Image_CopyMux to be able to output constant byte values as well as indexed components

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

16 years agopossible improvement to infinite perspective matrix generation
havoc [Fri, 20 Feb 2004 16:15:40 +0000 (16:15 +0000)]
possible improvement to infinite perspective matrix generation

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

16 years agoremove the exec default.cfg call from the reset to defaults, I have no idea why it...
havoc [Fri, 20 Feb 2004 02:50:18 +0000 (02:50 +0000)]
remove the exec default.cfg call from the reset to defaults, I have no idea why it was there

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

16 years agoimproved error message for missing cubemap images, no longer complains during cubemap...
havoc [Wed, 18 Feb 2004 14:46:06 +0000 (14:46 +0000)]
improved error message for missing cubemap images, no longer complains during cubemap loading, as long as one or more sides are found

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

16 years agonow loads each cubemap only once, no matter how many lights use it
havoc [Wed, 18 Feb 2004 14:37:36 +0000 (14:37 +0000)]
now loads each cubemap only once, no matter how many lights use it

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

16 years agocubemap filters for rtlights are now supported
havoc [Wed, 18 Feb 2004 14:06:38 +0000 (14:06 +0000)]
cubemap filters for rtlights are now supported

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

16 years agoadded gl_lightmaps cvar (for looking at the raw lightmaps in the map without textures)
havoc [Wed, 18 Feb 2004 10:32:06 +0000 (10:32 +0000)]
added gl_lightmaps cvar (for looking at the raw lightmaps in the map without textures)
added r_shadow_realtime_world_lightmaps cvar (turn on/off lightmaps in r_shadow_realtime_world mode, also can be a fraction to control brightness)

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

16 years agofix some warnings
havoc [Wed, 18 Feb 2004 10:29:30 +0000 (10:29 +0000)]
fix some warnings

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

16 years agoreduced size of viewblend triangle from 64000 units to 64 units, in hopes of curing...
havoc [Tue, 17 Feb 2004 02:13:34 +0000 (02:13 +0000)]
reduced size of viewblend triangle from 64000 units to 64 units, in hopes of curing precision problems on some graphics cards (NVIDIA and ATI both) causing a missing line on the blend

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

16 years agoForgot to add a couple of return statements to a switch block.
black [Thu, 12 Feb 2004 16:50:06 +0000 (16:50 +0000)]
Forgot to add a couple of return statements to a switch block.

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

16 years agoFixed: Removed not needed variable.
black [Wed, 11 Feb 2004 18:56:43 +0000 (18:56 +0000)]
Fixed: Removed not needed variable.

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

16 years agoAdded some menu builtins and changed VM_registercvar (it takes one parameter more...
black [Wed, 11 Feb 2004 17:43:27 +0000 (17:43 +0000)]
Added some menu builtins and changed VM_registercvar (it takes one parameter more now).

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