17 years agocheck for out of bounds fraction
havoc [Sun, 27 Oct 2002 12:11:48 +0000 (12:11 +0000)]
check for out of bounds fraction

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

17 years agoadd an error check for invalid maxfrac before returning it, nothing significant
havoc [Sun, 27 Oct 2002 12:00:37 +0000 (12:00 +0000)]
add an error check for invalid maxfrac before returning it, nothing significant

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

17 years agofix for drawing explosions and sky twice as much as necessary (!), no longer does...
havoc [Sat, 26 Oct 2002 15:23:58 +0000 (15:23 +0000)]
fix for drawing explosions and sky twice as much as necessary (!), no longer does a 360 degree sweep on both axis, one axis is only 180 degrees

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

17 years agofix for lift blocking due to imprecision at very low frame times (slowmo)
havoc [Fri, 25 Oct 2002 12:30:55 +0000 (12:30 +0000)]
fix for lift blocking due to imprecision at very low frame times (slowmo)

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

17 years agominor whitespace cleanup
havoc [Fri, 25 Oct 2002 11:15:08 +0000 (11:15 +0000)]
minor whitespace cleanup

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

17 years agoreworked visibility a bit (added VIS_CullBox and VIS_CullSphere) so it can be pretty...
havoc [Tue, 22 Oct 2002 07:13:13 +0000 (07:13 +0000)]
reworked visibility a bit (added VIS_CullBox and VIS_CullSphere) so it can be pretty accurate
made pvs surface/leaf lists to make R_SurfaceWorldNode as fast as possible
world geometry now casts shadows from frontfaces instead of backfaces
fixed most shadowing bugs
static shadow volumes now work (other than one bug I'm trying to find) and are on by default

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

17 years agoadded a comment describing GL triangle strip order (why add it to this? convenience)
havoc [Tue, 22 Oct 2002 07:10:26 +0000 (07:10 +0000)]
added a comment describing GL triangle strip order (why add it to this?  convenience)

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

17 years agomake profile now works
havoc [Tue, 22 Oct 2002 07:05:24 +0000 (07:05 +0000)]
make profile now works
no longer prints 'Compiling whatever.c' and so on as per Mercury's request

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

17 years agocast shadows from frontfaces instead of backfaces
havoc [Tue, 22 Oct 2002 07:03:44 +0000 (07:03 +0000)]
cast shadows from frontfaces instead of backfaces

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

17 years agodon't use 3d textures on drivers that don't explicitly advertise it as an extension
havoc [Tue, 22 Oct 2002 07:02:47 +0000 (07:02 +0000)]
don't use 3d textures on drivers that don't explicitly advertise it as an extension

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

17 years agochange maximum lerp time from 1 second to 0.1 seconds (this was a mistake in a previo...
havoc [Mon, 21 Oct 2002 07:21:01 +0000 (07:21 +0000)]
change maximum lerp time from 1 second to 0.1 seconds (this was a mistake in a previous commit)

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

17 years agoThe new video menu is clean now (or at least cleaner). Updated Transfusion map list
molivier [Mon, 21 Oct 2002 06:07:25 +0000 (06:07 +0000)]
The new video menu is clean now (or at least cleaner). Updated Transfusion map list

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

17 years agoreorganized how heartbeat timing works (much simpler and cleaner now)
havoc [Sat, 19 Oct 2002 23:23:03 +0000 (23:23 +0000)]
reorganized how heartbeat timing works (much simpler and cleaner now)
sv_heartbeatperiod controls how often a heartbeat is sent
sv_public controls whether heartbeats are sent at all (default: 0)
sv_masterextra1 added (points at a master server that a friend just put online)

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

17 years agoImplemented a very simple video mode selection menu. The way it handles the various...
molivier [Sat, 19 Oct 2002 10:12:49 +0000 (10:12 +0000)]
Implemented a very simple video mode selection menu. The way it handles the various resolutions is still very naive, so expect another update soon.

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

17 years agoAdded a test when freeing textures (glt->image can be NULL if the program exits becau...
molivier [Sat, 19 Oct 2002 09:43:46 +0000 (09:43 +0000)]
Added a test when freeing textures (glt->image can be NULL if the program exits because of a lack of memory at startup). Also, Transfusion doesn't have a "start" map, so Transfusion dedicated servers shouldn't use it as their default map. Removed a preprocessor warning in r_shadow.c

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

17 years agotrying less optimizations in hopes that it will fix the crashs
havoc [Thu, 17 Oct 2002 02:44:08 +0000 (02:44 +0000)]
trying less optimizations in hopes that it will fix the crashs

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

17 years agoMSVC has a pathetic stack size.
havoc [Thu, 17 Oct 2002 02:39:30 +0000 (02:39 +0000)]
MSVC has a pathetic stack size.

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

17 years agooops, removed the wrong one
havoc [Wed, 16 Oct 2002 22:33:16 +0000 (22:33 +0000)]
oops, removed the wrong one

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

17 years agoremove unused variables
havoc [Wed, 16 Oct 2002 22:26:56 +0000 (22:26 +0000)]
remove unused variables

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

17 years agofixed some dynamic lighting bugs related to glowing self
havoc [Wed, 16 Oct 2002 21:48:14 +0000 (21:48 +0000)]
fixed some dynamic lighting bugs related to glowing self
rmeshstate_t now has alphascale
now clears stencil from shadows differently (draws shadow volume over again to clear)
R_LightModel now does GL_Color or GL_UseColorArray depending on whether the model has any shading
model->DrawBaseLighting function is gone, now just a few special cases in the normal Draw function
removed R_NotCulledBox
added PVS_CullBox, R_CullSphere, and PVS_CullSphere
visiblevolume flag is gone from shadow rendering code (visible volumes are now automatic depending on what stage the shadow system is in)
R_DrawShadowVolumes is gone (now just a special option to R_ShadowVolumeLighting)
cubemap textures now upload correctly
doubled the bumpyness of surfaces to make bumpmapping noticable (still less than tenebrae)
fixed crash when loading external map textures
now supports _luma as an alternate name for _glow map textures (tenebrae compatibility)
can now override _bump, _gloss, and _glow/_luma textures that were generated from the map
bumpmapping works on the map now (that was a stupid typo...)
now uses alpha buffering for multi-pass lighting effects
r_shadows 3 now works on Geforce2 (2tex no3D 3 pass per layer) and Radeon (2tex 3D 2 pass per layer - Radeon has 3 texture units but the lighting code is most efficient with 2 units, and 3D textures use up 2 texture units on Radeon... lame...)
gloss isn't working yet
r_shadows 3 mode supports up to 64x overbright lighting now (by rendering light multiple times)
fixed palettes (this fixes oddities like seeing sky behind fullbrights)

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

17 years agoAdded back "turn left" and "turn right" to the Transfusion bind list. Added 2 new...
molivier [Wed, 16 Oct 2002 08:26:48 +0000 (08:26 +0000)]
Added back "turn left" and "turn right" to the Transfusion bind list. Added 2 new Transfusion maps (e4m8 and maim)

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

17 years agomade the QueueWantsMore message a Con_DPrintf
havoc [Tue, 15 Oct 2002 23:22:36 +0000 (23:22 +0000)]
made the QueueWantsMore message a Con_DPrintf

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

17 years agocruft
havoc [Mon, 14 Oct 2002 19:37:40 +0000 (19:37 +0000)]

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

17 years agofix jitter in interpolation of monster movement
havoc [Mon, 14 Oct 2002 19:34:01 +0000 (19:34 +0000)]
fix jitter in interpolation of monster movement

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

17 years agoR_LoadTexture functions take a palette pointer now
havoc [Mon, 14 Oct 2002 19:05:23 +0000 (19:05 +0000)]
R_LoadTexture functions take a palette pointer now
there are many palettes available now (d_8to24table renamed to palette_complete)
R_LoadTexture is gone, use R_LoadTexture2D instead
bumpmaps are now generated for models and maps (sigh, so much reworking of their loaders)

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

17 years agoadded TEXF_CLAMP flag for textures
havoc [Sun, 13 Oct 2002 22:13:57 +0000 (22:13 +0000)]
added TEXF_CLAMP flag for textures
r_shadows 3 mode is under heavy construction
changed pvsframecount stuff to be part of the model structure
new function Mod_BuildTextureVectorsAndNormals added
changed/improved how animating textures work
surface texture chains are now permanent for the lifetime of the model, and are specific to each submodel
surface textures now have a rendertype field which is updated every time R_PrepareSurfaces is called, values are SURFRENDER_ADD, SURFRENDER_ALPHA, or SURFRENDER_OPAQUE
added surfaceneighbors system (currently disabled because it increases load time greatly)
surface meshs are now allocated by a single function to simplify things
more heavy construction on static shadow volumes (which aren't working correctly)
VectorNormalize, VectorNormalize2, and VectorNormalizeDouble macros no longer produce infinite vectors if given null vectors
corrected names of dot3 enums
reduced duplicate code in texture manager with some new arrays for gl texture type enums
added GL_SetupView_Mode_PerspectiveInfiniteFarClip based on code from tenebrae
texture state management now has combinergb and combinealpha for each texture unit
aliasvert array went away
aliasvert_svectors, aliasvert_tvectors, and aliasvert_normals added (note: padded to 4 floats)
aliasvertnorm replaced with aliasvert_normals (adjusted code to use 4 float padding)
new r_light_* cvars allow tweaking of r_shadows 3 lighting system
R_DrawShadowSphere now works correctly
fixed fakeshadows appearing ontop of transparent stuff
got rid of unused RSurfShader_Wall_Fullbright

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

17 years agoAdded Frag'M to the Transfusion map list
molivier [Fri, 11 Oct 2002 06:20:33 +0000 (06:20 +0000)]
Added Frag'M to the Transfusion map list

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

17 years agofixed glowing entities disappearing randomly (by testing more thoroughly)
havoc [Wed, 9 Oct 2002 17:25:05 +0000 (17:25 +0000)]
fixed glowing entities disappearing randomly (by testing more thoroughly)

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

17 years agoElric rewrote the makefile, it is quite self explanatory when run.
havoc [Mon, 7 Oct 2002 18:43:12 +0000 (18:43 +0000)]
Elric rewrote the makefile, it is quite self explanatory when run.

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

17 years agonow checks for both TexImage3D built into the OpenGL library and for GL_EXT_texture3D...
havoc [Sun, 6 Oct 2002 23:09:46 +0000 (23:09 +0000)]
now checks for both TexImage3D built into the OpenGL library and for GL_EXT_texture3D (glTexImage3DEXT, etc)

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

17 years agomake r_shadows 3 mode mostly match lighting conditions of the lightmaps
havoc [Sun, 6 Oct 2002 16:51:35 +0000 (16:51 +0000)]
make r_shadows 3 mode mostly match lighting conditions of the lightmaps
r_shadows 3 mode now checks SURF_SHADOWCAST and SURF_SHADOWLIGHT flags

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

17 years agofix restart command
havoc [Sun, 6 Oct 2002 15:08:22 +0000 (15:08 +0000)]
fix restart command

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

17 years agoclean up map changes a little more
havoc [Sun, 6 Oct 2002 15:07:48 +0000 (15:07 +0000)]
clean up map changes a little more

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

17 years agofix fragment texture image creation so it has depth 1
havoc [Sun, 6 Oct 2002 14:45:53 +0000 (14:45 +0000)]
fix fragment texture image creation so it has depth 1
error if fragment texture is attempted with texture types other than 2D

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

17 years agoGL_DrawRangeElements now reports if it got a bogus indexcount and vertex range
havoc [Sun, 6 Oct 2002 14:43:11 +0000 (14:43 +0000)]
GL_DrawRangeElements now reports if it got a bogus indexcount and vertex range

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

17 years agoR_ShadowMesh_Finish now discards empty meshs
havoc [Sun, 6 Oct 2002 14:40:58 +0000 (14:40 +0000)]
R_ShadowMesh_Finish now discards empty meshs

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

17 years agodetect 3D textures as GL_EXT_texture3D again
havoc [Sun, 6 Oct 2002 14:23:32 +0000 (14:23 +0000)]
detect 3D textures as GL_EXT_texture3D again

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

17 years agouse qbyte * math instead of void * math to keep MSVC happy
havoc [Sun, 6 Oct 2002 13:58:23 +0000 (13:58 +0000)]
use qbyte * math instead of void * math to keep MSVC happy

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

17 years ago3D attenuation texture works now
havoc [Sun, 6 Oct 2002 03:24:47 +0000 (03:24 +0000)]
3D attenuation texture works now
also fixed the commandline options -width and such (untested)

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

17 years agobackend now supports 1D, 2D, 3D, and Cubemap texture binding
havoc [Sat, 5 Oct 2002 19:32:43 +0000 (19:32 +0000)]
backend now supports 1D, 2D, 3D, and Cubemap texture binding

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

17 years agotexcoord arrays are now 3 component (padded to 4 floats)
havoc [Sat, 5 Oct 2002 14:38:14 +0000 (14:38 +0000)]
texcoord arrays are now 3 component (padded to 4 floats)
rewrote zym model loader
partially rewrote skysphere rendering

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

17 years agonow uploads a 3D attenuation texture (not used yet)
havoc [Fri, 4 Oct 2002 22:31:51 +0000 (22:31 +0000)]
now uploads a 3D attenuation texture (not used yet)

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

17 years agoforgot to add prototypes for new texture functions to r_textures.h
havoc [Fri, 4 Oct 2002 22:28:42 +0000 (22:28 +0000)]
forgot to add prototypes for new texture functions to r_textures.h
fixed misreporting of texture memory use (was reporting 0 for all textures because sides was 0)

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

17 years ago1D, 3D, and cubemap textures are now supported (in addition to 2D)
havoc [Fri, 4 Oct 2002 21:04:11 +0000 (21:04 +0000)]
1D, 3D, and cubemap textures are now supported (in addition to 2D)
added detection of GL_EXT_texture3D, GL_ARB_texture_cube_map, and GL_ARB_texture_env_dot3
shadow volume rendering mode now depends on all of the above being present (but doesn't use them yet)

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

17 years agoshadow volume rendering still very incomplete, but works mostly
havoc [Fri, 4 Oct 2002 13:52:01 +0000 (13:52 +0000)]
shadow volume rendering still very incomplete, but works mostly
committing this before I add 3D textures to the texture manager
(alert: this is the last version of the stencil shadow rendering that will work with TNT class hardware (and not well), 3D textures will be required and will not work on TNT class... sorry.  vertex just looks too horrible)

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

17 years agoAdded a couple more "const". Fixed "+map" in the command line for dedicated servers...
molivier [Fri, 4 Oct 2002 06:05:46 +0000 (06:05 +0000)]
Added a couple more "const". Fixed "+map" in the command line for dedicated servers. Updated LordHavoc email address in the multiplayer menu. Removed some duplicated code.

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

17 years agomassive coding has been done on shadow volumes (some scrapped code which will be...
havoc [Thu, 3 Oct 2002 17:11:24 +0000 (17:11 +0000)]
massive coding has been done on shadow volumes (some scrapped code which will be removed, some incomplete code, etc)
some model fixes relating to gl_combine - r_quickmodels is gone
off-screen models were not being culled (oops)

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

17 years agoFrom LordHavoc: the r_quickmodels cvar wasn't used anywhere; it's fixed.
molivier [Thu, 3 Oct 2002 06:51:52 +0000 (06:51 +0000)]
From LordHavoc: the r_quickmodels cvar wasn't used anywhere; it's fixed.

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

17 years agoRemoved an unused variable in gl_draw.c (Forest, could you double check this one...
molivier [Thu, 3 Oct 2002 06:36:54 +0000 (06:36 +0000)]
Removed an unused variable in gl_draw.c (Forest, could you double check this one please?). Removed an useless include in vid_null.c

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

17 years agoFixed dedicated server (the server was never really spawned)
molivier [Wed, 2 Oct 2002 12:02:15 +0000 (12:02 +0000)]
Fixed dedicated server (the server was never really spawned)

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

17 years agoMade a few changes to makefile so we can switch compiler more easily
molivier [Wed, 2 Oct 2002 07:02:14 +0000 (07:02 +0000)]
Made a few changes to makefile so we can switch compiler more easily

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

17 years agoTried to be a little smarter with the heartbeats, using a simple priority mecanism...
molivier [Wed, 2 Oct 2002 06:50:45 +0000 (06:50 +0000)]
Tried to be a little smarter with the heartbeats, using a simple priority mecanism. Added a few "const" here and there in the net code. Fixed heartbeat code on Win32 (added Loop_Heartbeat and Datagram_Heartbeat to net_win.c; oups...)

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

17 years agooptimized trianglefacing calculation, per Vic's recommendation (yes it's all one...
havoc [Mon, 30 Sep 2002 18:01:08 +0000 (18:01 +0000)]
optimized trianglefacing calculation, per Vic's recommendation (yes it's all one statement now)
shadow functions now take a vertex array pointer, to make them more broadly useful (in precomputation perhaps?)
beginning work on a precomputed shadow volumes system for static lights

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

17 years agobmodel shadow volumes
havoc [Mon, 30 Sep 2002 14:55:28 +0000 (14:55 +0000)]
bmodel shadow volumes
static lights (in maps with .lights files) now cast shadow volumes (this combined with the above makes dpdm1 and dpdm2 unplayably slow - need to do precomputed world shadow volumes)
(note: like the previous shadow volume commits, this is still just visible volumes when you use r_shadows 2, purely experimental still)

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

17 years agosmoke from bullet impacts and rocket trails now grows in size a little as it fades
havoc [Mon, 30 Sep 2002 14:52:26 +0000 (14:52 +0000)]
smoke from bullet impacts and rocket trails now grows in size a little as it fades

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

17 years agogl backend now has functions for color array and flat color states (GL_UseColorArray...
havoc [Mon, 30 Sep 2002 06:53:30 +0000 (06:53 +0000)]
gl backend now has functions for color array and flat color states (GL_UseColorArray and GL_Color), this gets a 9.76% speed gain in bigass1 for me

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

17 years agofix changelevel, and simplify restart code
havoc [Mon, 30 Sep 2002 03:37:53 +0000 (03:37 +0000)]
fix changelevel, and simplify restart code

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

17 years agofix view blends
havoc [Mon, 30 Sep 2002 02:34:37 +0000 (02:34 +0000)]
fix view blends

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

17 years agonewline to keep gcc3 happy
havoc [Mon, 30 Sep 2002 02:19:36 +0000 (02:19 +0000)]
newline to keep gcc3 happy

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

17 years agoforgot to commit this
havoc [Mon, 30 Sep 2002 02:07:32 +0000 (02:07 +0000)]
forgot to commit this

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

17 years agonew experimental shadow volumes, try r_shadows 2 to see the shadow volumes cast by...
havoc [Mon, 30 Sep 2002 01:57:43 +0000 (01:57 +0000)]
new experimental shadow volumes, try r_shadows 2 to see the shadow volumes cast by dlights

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

17 years agoadded radius and radius2 (squared radius) fields to model structure
havoc [Mon, 30 Sep 2002 01:09:13 +0000 (01:09 +0000)]
added radius and radius2 (squared radius) fields to model structure

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

17 years agoent field added back to dlight structures
havoc [Mon, 30 Sep 2002 01:05:10 +0000 (01:05 +0000)]
ent field added back to dlight structures

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

17 years agonow uses more smoke particles for gunshots, looks better
havoc [Mon, 30 Sep 2002 01:00:31 +0000 (01:00 +0000)]
now uses more smoke particles for gunshots, looks better

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

17 years agoadded -gl_driver commandline option, and cleaned up some glX init stuff a bit
havoc [Mon, 30 Sep 2002 00:55:17 +0000 (00:55 +0000)]
added -gl_driver commandline option, and cleaned up some glX init stuff a bit

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

17 years agofix DrawQ_Fill rendering (Pic with no string)
havoc [Sun, 29 Sep 2002 02:06:55 +0000 (02:06 +0000)]
fix DrawQ_Fill rendering (Pic with no string)

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

17 years agofixed vid_restart
havoc [Sat, 28 Sep 2002 23:59:46 +0000 (23:59 +0000)]
fixed vid_restart
now destroys the window (did not before)
fixed stupid behavior in MainWndProc handling of WM_DESTROY (it's no longer caught)

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

17 years agoneeded one more prototype
havoc [Sat, 28 Sep 2002 12:41:50 +0000 (12:41 +0000)]
needed one more prototype

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

17 years agotrying to fix many forward references in input code
havoc [Sat, 28 Sep 2002 12:34:15 +0000 (12:34 +0000)]
trying to fix many forward references in input code

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

17 years agomajor speedup to alias model fake shadow rendering
havoc [Sat, 28 Sep 2002 10:54:36 +0000 (10:54 +0000)]
major speedup to alias model fake shadow rendering
now traces in direction of light instead of straight down, this causes a shadow to be cast on a wall in some cases (desirable)

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

17 years agodisabled smoke from explosions, it was a minor effect and used too much fillrate
havoc [Sat, 28 Sep 2002 10:50:34 +0000 (10:50 +0000)]
disabled smoke from explosions, it was a minor effect and used too much fillrate
added fractalnoise to the WORKINGLQUAKE section at the top, and fixed an oldtime reference in WORKINGLQUAKE code

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

17 years agofix restart command (can't do the "connect local" for a restart)
havoc [Sat, 28 Sep 2002 10:23:16 +0000 (10:23 +0000)]
fix restart command (can't do the "connect local" for a restart)

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

17 years agomap and load commands are now delayed until the video system is started, this fixes...
havoc [Sat, 28 Sep 2002 05:35:21 +0000 (05:35 +0000)]
map and load commands are now delayed until the video system is started, this fixes crashs caused by the video system starting after the configs are read

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

17 years ago2D is now drawn using R_Mesh system
havoc [Sat, 28 Sep 2002 04:44:44 +0000 (04:44 +0000)]
2D is now drawn using R_Mesh system

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

17 years agofixed glOrtho call
havoc [Sat, 28 Sep 2002 04:43:45 +0000 (04:43 +0000)]
fixed glOrtho call

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

17 years agoadded sparks and smoke to explosions
havoc [Sat, 28 Sep 2002 04:42:02 +0000 (04:42 +0000)]
added sparks and smoke to explosions

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

17 years agoCL_TraceLine can now return what entity was hit (this isn't actually used, and accoun...
havoc [Fri, 27 Sep 2002 12:02:23 +0000 (12:02 +0000)]
CL_TraceLine can now return what entity was hit (this isn't actually used, and accounts for most of the changed files)
r_shadows returns, currently only supported on alias models (they are the only ones with a DrawFakeShadow function)
added Matrix4x4_Transform3x3

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

17 years agostencil is now supported (optional, off by default, use vid_stencil to enable)
havoc [Fri, 27 Sep 2002 07:30:05 +0000 (07:30 +0000)]
stencil is now supported (optional, off by default, use vid_stencil to enable)
vid_ cvars are updated when VID_Mode succeeds
GL stencil functions enabled

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

17 years agoalias mdl/md2 models now have a mdlmd2data_triangleneighbors array
havoc [Fri, 27 Sep 2002 05:49:29 +0000 (05:49 +0000)]
alias mdl/md2 models now have a mdlmd2data_triangleneighbors array

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

17 years agoadded Mod_FindTriangleWithEdge and Mod_BuildTriangleNeighbors functions (not used...
havoc [Fri, 27 Sep 2002 05:23:34 +0000 (05:23 +0000)]
added Mod_FindTriangleWithEdge and Mod_BuildTriangleNeighbors functions (not used by anything)
added Mod_LoadModels function, which is called when renderer is restarted or "modelflush" is used, it reloads all models that are used

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

17 years agoadded newline to end of Draw_CachePic error message
havoc [Fri, 27 Sep 2002 05:06:51 +0000 (05:06 +0000)]
added newline to end of Draw_CachePic error message

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

18 years agoUpdated Transfusion map list
molivier [Thu, 26 Sep 2002 07:28:53 +0000 (07:28 +0000)]
Updated Transfusion map list

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

18 years agoThe call to alloca has been removed. This function has a quite bad reputation and...
molivier [Thu, 26 Sep 2002 07:20:59 +0000 (07:20 +0000)]
The call to alloca has been removed. This function has a quite bad reputation and MinGW didn't want it anyway.

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

18 years agoincreased maximum stack depth
havoc [Thu, 26 Sep 2002 02:55:14 +0000 (02:55 +0000)]
increased maximum stack depth

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

18 years agolimit entity movement lerp to 10th of a second
havoc [Thu, 26 Sep 2002 02:38:38 +0000 (02:38 +0000)]
limit entity movement lerp to 10th of a second

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

18 years agofix for repeated mode switchs losing keyboard/mouse focus
havoc [Thu, 26 Sep 2002 01:45:12 +0000 (01:45 +0000)]
fix for repeated mode switchs losing keyboard/mouse focus

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

18 years agothis commit adds video mode switching, and preferred mode is saved to config, no...
havoc [Thu, 26 Sep 2002 01:24:41 +0000 (01:24 +0000)]
this commit adds video mode switching, and preferred mode is saved to config, no more need for -window/-width/-height/-bpp (they still work)
IN_Init and IN_Shutdown code has been merged into VID_InitMode and VID_Shutdown code in each of the video systems
VID_InitCvars renamed to VID_Shared_Init
VID_Open and VID_Close functions added in vid_shared, Host_Init now calls VID_Open
S_Open/Close and CDAudio_Open/Close added (none of these do anything yet)
VID_Open and VID_Close call R_Modules_Start, S_Open, and CDAudio_Open and their corresponding Close functions
VID_Restart_f added (vid_restart command)
vid_hidden now starts true (to avoid any refreshs until video is started)
vid_fullscreen/width/height/bitsperpixel are now saved to config
VID_Open is called after configs are parsed
Render_Init now longer starts/stops modules
IN_MouseEvent in vid_wgl.c no longer clamps pitch (since that's done by IN_PostMove)

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

18 years agoadded -gl_driver commandline option, it's useless though (crashs when I try it on...
havoc [Wed, 25 Sep 2002 02:38:01 +0000 (02:38 +0000)]
added -gl_driver commandline option, it's useless though (crashs when I try it on my voodoo2)

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

18 years agofix warnings
havoc [Tue, 24 Sep 2002 22:17:31 +0000 (22:17 +0000)]
fix warnings

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

18 years agofix some prototype warnings
havoc [Tue, 24 Sep 2002 22:11:44 +0000 (22:11 +0000)]
fix some prototype warnings

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

18 years agoupdate file list
havoc [Tue, 24 Sep 2002 22:11:08 +0000 (22:11 +0000)]
update file list

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

18 years agofix a warning on argv
havoc [Tue, 24 Sep 2002 22:10:21 +0000 (22:10 +0000)]
fix a warning on argv

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

18 years agoremove an unused extension function list
havoc [Tue, 24 Sep 2002 22:09:40 +0000 (22:09 +0000)]
remove an unused extension function list

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

18 years agoThanks to Elric for adding dpmaster support!
havoc [Tue, 24 Sep 2002 12:16:28 +0000 (12:16 +0000)]
Thanks to Elric for adding dpmaster support!
slist command renamed to net_slist, net_inetslist command added
"heartbeat" command notifies master server(s) of your server's presence (this is automatic, but you can force a heartbeat)
sv_master1 through sv_master4 cvars contain master server addresses, they all default to "" (none), this may change if someone hosts a darkplaces master server and wants it added to the defaults...  (note: these cvars ARE saved to config)
com_modname contains the currently running mod directory name (for example id1, darkplaces, transfusion, etc)
some Con_DPrintf's have been added to the server query code, so if you want to know if people are checking out your server, it should tell you about it now (I think?)
some Con_DPrintf's exist in the inetslist code so you can watch the packet flow

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

18 years agowhitespace changes by Elric
havoc [Tue, 24 Sep 2002 08:38:27 +0000 (08:38 +0000)]
whitespace changes by Elric

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

18 years agostatic crosshair is now drawn during sbar stage (where it should be), fixes the bug...
havoc [Tue, 24 Sep 2002 07:42:04 +0000 (07:42 +0000)]
static crosshair is now drawn during sbar stage (where it should be), fixes the bug where it appeared infront of the menus
world crosshair size is now constant on the screen
rearranged code greatly
it just works better, ok?

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

18 years agonow pretends gfx.wad pics are in the gfx/ directory, this changes the override path...
havoc [Tue, 24 Sep 2002 07:05:13 +0000 (07:05 +0000)]
now pretends gfx.wad pics are in the gfx/ directory, this changes the override path for gfx.wad pics (statusbar images in other words) to be for example gfx/blah.tga, however the old override path (no prepended gfx/) is still supported for compatibility with previous versions (mainly just for sake of conchars and conback)
Sbar_Init now called from Render_Init instead of Host_Init (it was being called before the texture system was started...)
Sbar_Init now registers an sbar module, with corresponding start/shutdown/newmap functions, so when the renderer is restarted, the pics are precached again

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

18 years agofixed.
havoc [Tue, 24 Sep 2002 06:59:49 +0000 (06:59 +0000)]

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

18 years agodefault to 640x480x16 again, just for consistency with other engines
havoc [Mon, 23 Sep 2002 06:13:17 +0000 (06:13 +0000)]
default to 640x480x16 again, just for consistency with other engines

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

18 years agowglGetExtensionsString is properly detected now (was checking for an extension string...
havoc [Mon, 23 Sep 2002 05:59:01 +0000 (05:59 +0000)]
wglGetExtensionsString is properly detected now (was checking for an extension string, but none is present outside the wgl extensions list, which is a chicken and egg problem, now just checks if the function exists, like the spec says to do)

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