lordhavoc [Tue, 16 Oct 2001 12:49:07 +0000 (12:49 +0000)]
forgot to commit updated makefile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@929
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 17:12:15 +0000 (17:12 +0000)]
mallocs, callocs, and frees changed to qmalloc/qfree
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@924
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 16:25:33 +0000 (16:25 +0000)]
fix for command/cvar/alias completion bug (example: imp gave iimpulse)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@922
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 13:41:55 +0000 (13:41 +0000)]
changed defaults for chase_active camera position, and the settings are now saved to the config
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@921
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 13:41:25 +0000 (13:41 +0000)]
move dynamic lights up 30 units for the client player when firstperson (so the gun gets lit by glow effects)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@920
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 13:36:37 +0000 (13:36 +0000)]
fix the off-by-one fix (oops)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@919
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 13:23:19 +0000 (13:23 +0000)]
fix an off-by-one issue with model->numleafs in PVS related code (dynamic lighting and world rendering), numleafs excludes leaf 0, how strange...
no missing (black) leaf bug anymore...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@918
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 12:13:20 +0000 (12:13 +0000)]
added function definitions for tab completion back (oops)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@917
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 15 Oct 2001 11:46:20 +0000 (11:46 +0000)]
Major update, been neglecting CVS for some time...
clipping engine (r_clip.c) to determine exactly what is visible (this has altered MANY parts of the rendering engine)
fixed visibility bug with multiple players on a listen server
vid_glx.c has been improved/cleaned up greatly and now pays attention to vid_mouse and vid_dga and will not grab the mouse until after the first frame
snd_alsa_0_5.c has been fixed (Qprintf vs fprintf bug)
nehahra works again (was missing svc_skybox support)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@915
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Fri, 20 Jul 2001 20:25:17 +0000 (20:25 +0000)]
ignore ChangeLog
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@270
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Fri, 20 Jul 2001 20:24:36 +0000 (20:24 +0000)]
very nice command line tab completeion from Shawn Walker
<eviltypeguy@qeradiant.com> with my later modifications so that commands
are completed as much as possible.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@269
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 15 Jun 2001 20:55:45 +0000 (20:55 +0000)]
another attempt to fix skybox loading
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@234
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Sun, 10 Jun 2001 21:21:41 +0000 (21:21 +0000)]
fix loading savegames
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@233
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 10 Jun 2001 20:03:42 +0000 (20:03 +0000)]
added -lz to the non-ALSA compile line, switched to non-ALSA compile by default (to match the sound driver default being non-ALSA)
added a lot of descriptive comments
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@232
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Thu, 7 Jun 2001 19:38:17 +0000 (19:38 +0000)]
apply a fix for LordHavoc as his tree is not yet ready for committing
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@231
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Thu, 7 Jun 2001 19:36:56 +0000 (19:36 +0000)]
fix for skybox
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@230
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 3 Jun 2001 23:40:51 +0000 (23:40 +0000)]
added a newline to the end
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@229
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Sun, 3 Jun 2001 03:18:25 +0000 (03:18 +0000)]
hopefully fix external file gzip support
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@228
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Thu, 31 May 2001 02:02:16 +0000 (02:02 +0000)]
skyquality and mergesky are saved to the config now
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@227
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 08:36:08 +0000 (08:36 +0000)]
fixed PCX loader bug to do with palettes
added bounds checking for PCX, TGA, and LMP loaders
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@226
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 08:28:52 +0000 (08:28 +0000)]
added loadsize variable set by COM_LoadFile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@225
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 08:03:02 +0000 (08:03 +0000)]
added newline at end to appease gcc
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@224
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 08:02:44 +0000 (08:02 +0000)]
fix for mistake in pcx loader (had two pointers swapped)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@223
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 07:09:03 +0000 (07:09 +0000)]
increased build number to 103
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@222
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 07:08:19 +0000 (07:08 +0000)]
added sky quality and show framerate options to menu
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@221
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Wed, 30 May 2001 06:16:04 +0000 (06:16 +0000)]
compile dependencies
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@220
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 06:04:58 +0000 (06:04 +0000)]
fixes for zlib support, eliminated win32 FAR warnings and other warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@219
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Wed, 30 May 2001 05:10:29 +0000 (05:10 +0000)]
oops, forgot to fix the Qread and Qwrite calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@218
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:57:15 +0000 (04:57 +0000)]
rearranged sky rendering code
reenabled sky sphere code
added r_skyquality cvar (0 = no sky, higher values improve quality of quake sky rendering, no change to skybox)
sky sphere uses identical texture calculations as glquake style now
added r_mergesky cvar (speed loss in my testing, but could be useful for very low fillrate cards, albeit a bit jerky)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@217
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:50:53 +0000 (04:50 +0000)]
added TEXF_ALWAYSPRECACHE
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@216
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Wed, 30 May 2001 04:50:19 +0000 (04:50 +0000)]
check in LordHavoc's changes for him after cleaning up the mess of conflicts
I caused. I hope I got it right :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@215
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:50:11 +0000 (04:50 +0000)]
removed unused skytexturenum
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@214
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:44:44 +0000 (04:44 +0000)]
removed unused skytexturenum code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@213
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:39:22 +0000 (04:39 +0000)]
commented out COM_LoadCacheFile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@212
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 30 May 2001 04:38:19 +0000 (04:38 +0000)]
converted script loading to use COM_LoadMallocFile instead of COM_LoadHunkFile
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@211
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Wed, 30 May 2001 02:36:15 +0000 (02:36 +0000)]
gzip support from quakeforge (QFile and friends). also includes a couple of
compile fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@210
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 29 May 2001 16:25:03 +0000 (16:25 +0000)]
updated to build 102
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@209
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 29 May 2001 16:00:56 +0000 (16:00 +0000)]
split render portion of entity_t struct into entity_render_t
got rid of glowsize and glowtrail fields in entity_render_t (since they were only used inside RelinkEntities anyway)
removed some commented out struct stuff
fixed mouse hide/show code in win32 (could get stuck shown)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@208
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 27 May 2001 02:50:48 +0000 (02:50 +0000)]
cleaned up nearly all of the externs in .c files (moved to appropriate .h files)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@207
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 26 May 2001 22:24:12 +0000 (22:24 +0000)]
added protocol.o
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@206
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 26 May 2001 19:44:32 +0000 (19:44 +0000)]
some whitespace changes
rearranged a few cvar definitions to be in more appropriate places
removed remnants of efrags system
added bitprofile command to report popularity of entity update components
fixed a number of baseline bugs and inconsistencies in the server and client (discovered using bitprofile)
general baseline generation code added (protocol.c)
added freelook cvar and menu option
exterior model capability added (so a model could be visible only when you are using chasecam, needed for visible weapon models)
fixed some inconsistencies in frame number sizes (should have been 16bit) in 16bit modelindex messages, and 8bit sound numbers that should have been 16bit
renamed Sys_FloatTime to Sys_DoubleTime
rewrote win32 Sys_DoubleTime code and minor work on UNIX Sys_DoubleTime
removed most of svc_entitiesbegin/svc_entitiesend code (big entity update protocol improvement planned)
hardware gamma/brightness/contrast support
hardware and software gamma/brightness/contrast adjustable in the menu
gl_lightmode (also known as lighthalf) switchable in the menu
can pick a crosshair in the menu
changed renderer references to r_refdef.vieworg to use r_origin instead
stripped out ancient transpoly code that was not being used
renamed qgamma array to texgamma
significant cleanup of mouse hide/show code in win32
improved eprint for better readability (better printing of floats/vectors)
added pr_fields and pr_globals commands to print a list of entity fields and global variables in loaded progs
moved some entity_state_t related stuff to protocol.c and protocol.h
made delta compression optional (sv_deltacompress cvar)
removed a lot of cruft
disabled stair step-up blending (never worked that well anyway)
removed sys_wind.c (I seriously doubt it worked)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@205
d7cf8633-e32d-0410-b094-
e92efae38249
knghtbrd [Sat, 26 May 2001 18:26:59 +0000 (18:26 +0000)]
Cleaned up clean target
Changed defaults to reflect the majority of systems
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@204
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 13 May 2001 07:49:53 +0000 (07:49 +0000)]
now renders inward portals rather than outward portals in r_drawportals (more useful)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@202
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 12 May 2001 15:31:17 +0000 (15:31 +0000)]
build number 101
all leaf bounding boxes are recalculated based on portals (superior to qbsp's method)
bounding box removed from node structure
vismarkframe stuff removed from node and leaf structures
minor tweaking to some network stuff (trying to track down a bug)
R_BSPWorldmode and R_LeafWorldmode have been removed, related cvars have been removed
R_NoVisWorldnode is only used when in a solid leaf now
have been trying to track down very rare disappearing leaf bug in portal worldnode code (or portal building?), unsuccessfully
redesign of entity dlight code, much cleaner and saner (all dlight effects can be combined at once now as well, no override occurs)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@201
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 12 May 2001 11:09:25 +0000 (11:09 +0000)]
forgot to put in extern qboolean hlbsp;
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@200
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 12 May 2001 11:03:05 +0000 (11:03 +0000)]
disabled wad3 loading from "wad" key in worldspawn of map when not loading an HL map
minor tweaks to entity update range code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@199
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 12 May 2001 10:54:51 +0000 (10:54 +0000)]
removed net_vcr from the list of objects
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@198
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 11 May 2001 08:27:05 +0000 (08:27 +0000)]
***map loader generates portals for the map*** (can you tell this is a big deal? :)
increased build number to 100 (it's the truth)
made loadingplaque work correctly
disabled (commented out) loadingplaque
removed efrags
each model is checked against visible leafs (made efrags obsolete)
put .active field into client entity states (more correct than checking modelindex)
disabled all cachedir stuff (#if CACHEENABLE)
removed scr_copytop and other no-longer-relevant variables
removed Con_NotifyBox (wasn't used)
cleaned up visframe stuff
removed a lot of unnecessary fields from mnode_t and a few from mleaf_t
clarified r_visframecount stuff (now referred to as r_vismarkframecount, and similarly visframe field in mnode_t/mleaf_t is now called vismarkframe)
got rid of offsets[] array in texture_t
rewrote r_notexture_mip related code (fixing black default texture)
got rid of skyisvisible variable (check currentskypoly instead)
got rid of gl_texsort
simplified surface rendering process greatly (R_DrawSurfaces)
surface rendering should now be totally sequential (good for caches)
renamed r_newworldnode to r_leafworldnode (will be removed in next commit)
disabled r_oldclip code (will be removed in next commit)
renamed R_WorldNode to R_BSPWorldNode (will be removed in next commit)
renamed R_NewWorldNode to R_LeafWorldNode (will be removed in next commit)
made copy of R_WorldNode that ignores vis data, called R_NoVisWorldNode
added R_PortalWorldNode, 3-80% speed gain depending on situation, improved culling of non-relevant leafs/surfaces
added r_portalworldnode cvar to test new code (this will become the standard worldnode in next commit)
minor optimization to wateralpha code
minor redesign of R_TextureAnimation and animated texture stuff in texture_t
cleaned up timing issues in water (now synced to cl.time, not realtime) and menu code (now synced to realtime, not host_time)
removed host_time
removed SCR_ModalMessage (this got rid of the 'are you sure?' question on newgame)
changed quit messages
got rid of SCR_BringDownConsole
reorganized 2D screen drawing code (now draws console when loading plaque is displayed, etc)
some cleanup on texture loading
redesigned R_Decal to make use of BSP tree in finding nearest surfaces
renamed and redesigned R_DrawDecals to GL_DrawDecals and no longer uses transpoly
particles are now only rendered if inside a visible leaf
sprites are now only rendered if touching a visible leaf
ambient sounds no longer play after disconnecting
fixed severe delta compressed entity bugs in client
sped up MOVETYPE_NONE a bit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@197
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 5 May 2001 03:32:21 +0000 (03:32 +0000)]
stripped out serial and modem stuff (was not supported anyway)
a little bit of new very incomplete menu code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@196
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 4 May 2001 18:52:30 +0000 (18:52 +0000)]
No more busy-waiting when framerate cap is reached (in both Linux and win versions)
MOVETYPE_WALK on non-clients now links the edict like it should (major bugfix)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@195
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 28 Apr 2001 06:07:51 +0000 (06:07 +0000)]
removed unused net_vcr (and all other traces of vcr system), apparently a predecessor to quake demos
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@194
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Thu, 26 Apr 2001 05:38:37 +0000 (05:38 +0000)]
a big change with a little description...
rearranged client entity_t structure
redesigned entity update system (same protocol)
added support for split entity updates in the future for rate capping
glow trails and view relative entities should work now (untested)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@193
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 23 Apr 2001 22:49:56 +0000 (22:49 +0000)]
oops, two loop counting bugs, fixed
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@192
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 23 Apr 2001 22:03:00 +0000 (22:03 +0000)]
added back support for textures smaller than 4 pixels wide (Nehahra uses one)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@191
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 20 Apr 2001 15:48:49 +0000 (15:48 +0000)]
added newmap function to render modules (so explosions and other things are reset on map load)
CL_AllocDlight redesigned (takes all settings for dlight on parameter line)
dlights now use a pointer to their owner entity instead of a key number
light emitting entities now glow properly (directional lighting disabled on the entity that owns the dlight)
cl_shownet no longer spews empty lines when recieving less updates from server than client framerate
some whitespace cleanup
fixed some missing parentheses on a condition in R_BuildLightmap (mixed &&, &, and ||, eek)
fixed vertex array problems with fog sky
increased MAX_TRANSPOLYS from 8192 to 65536
added a general purpose decal engine, superior to the decal particles (lower CPU use, better lighting)
added bullet hole decals and bullet hole texture generator
added r_speeds2 time reporting for moveexplosions, drawexplosions, and drawdecals
cleaned up dlight logic, all code now relies on radius, which is cleared when the dlight dies, this removed all potential flickering problems and offers a minor speedup
optimized R_ResampleTexture further to improve load times
moved heap size commandline parameter stuff from platform specific startup code to Host_Init, now all platforms understand -mem, -winmem, and -heapsize
WAD3 texture transparency now supported again
r_explosionclip cvar is now saved to config
r_drawexplosions cvar added
r_particles cvar is now saved to config
r_dynamicparticles cvar renamed to r_particles_lighting
r_particles_bloodshowers cvar added to disable blood shower effects
r_particles_blood cvar added to disable blood effects
r_particles_smoke cvar added to disable smoke effects
r_particles_sparks cvar added to disable spark effects
r_particles_bubbles cvar added to disable bubble effects
fixed smoke texture problem (0 alpha-noise portions were not written to texture, leaving portions of previous texture in buffer)
changed nearly every particle effect to look better and use less particles and fillrate, major speed gains resulted
blood particles no longer fade inflight as it made the effects less impressive and resulted in a lot of mostly transparent decals
major particle size bug fixed, all view aligned particles (everything but rain and decals) were 50% larger than they were supposed to be
particles now use transpolyvertub (unsigned byte colors) instead of transpolyvert for a speedup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@190
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 20 Apr 2001 15:38:28 +0000 (15:38 +0000)]
added newmap function to render modules (so explosions and other things are reset on map load)
CL_AllocDlight redesigned (takes all settings for dlight on parameter line)
dlights now use a pointer to their owner entity instead of a key number
light emitting entities now glow properly (directional lighting disabled on the entity that owns the dlight)
cl_shownet no longer spews empty lines when recieving less updates from server than client framerate
some whitespace cleanup
fixed some missing parentheses on a condition in R_BuildLightmap (mixed &&, &, and ||, eek)
fixed vertex array problems with fog sky
increased MAX_TRANSPOLYS from 8192 to 65536
added a general purpose decal engine, superior to the decal particles (lower CPU use, better lighting)
added bullet hole decals and bullet hole texture generator
added r_speeds2 time reporting for moveexplosions, drawexplosions, and drawdecals
cleaned up dlight logic, all code now relies on radius, which is cleared when the dlight dies, this removed all potential flickering problems and offers a minor speedup
optimized R_ResampleTexture further to improve load times
moved heap size commandline parameter stuff from platform specific startup code to Host_Init, now all platforms understand -mem, -winmem, and -heapsize
WAD3 texture transparency now supported again
r_explosionclip cvar is now saved to config
r_drawexplosions cvar added
r_particles cvar is now saved to config
r_dynamicparticles cvar renamed to r_particles_lighting
r_particles_bloodshowers cvar added to disable blood shower effects
r_particles_blood cvar added to disable blood effects
r_particles_smoke cvar added to disable smoke effects
r_particles_sparks cvar added to disable spark effects
r_particles_bubbles cvar added to disable bubble effects
fixed smoke texture problem (0 alpha-noise portions were not written to texture, leaving portions of previous texture in buffer)
changed nearly every particle effect to look better and use less particles and fillrate, major speed gains resulted
blood particles no longer fade inflight as it made the effects less impressive and resulted in a lot of mostly transparent decals
major particle size bug fixed, all view aligned particles (everything but rain and decals) were 50% larger than they were supposed to be
particles now use transpolyvertub (unsigned byte colors) instead of transpolyvert for a speedup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@189
d7cf8633-e32d-0410-b094-
e92efae38249
knghtbrd [Fri, 6 Apr 2001 03:51:39 +0000 (03:51 +0000)]
gl_mtex_enum has moved to vid_shared.c
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@188
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 6 Apr 2001 03:49:40 +0000 (03:49 +0000)]
missed this one...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@187
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 6 Apr 2001 03:48:40 +0000 (03:48 +0000)]
added default case for particles to report the error and remove the particle
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@186
d7cf8633-e32d-0410-b094-
e92efae38249
knghtbrd [Fri, 6 Apr 2001 03:44:45 +0000 (03:44 +0000)]
Fix a couple gcc warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@185
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 6 Apr 2001 03:43:36 +0000 (03:43 +0000)]
fix for lightmap update check
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@184
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 6 Apr 2001 03:10:06 +0000 (03:10 +0000)]
optimized AngleVectors calls (pass NULL for vectors that should not be generated)
added VectorVectors (takes a forward unit vector, makes right and up vectors)
corrected silly id spelling mistakes 'allready' and 'allways'
most host_frametime references changed to cl.frametime or sv.frametime
fixed movement interpolation in listen games (host client wasn't lerping the framerate capped server's frames)
added EF_FLAME effect, untested
changed svc_showlmp to use shorts, not bytes (except in nehahra compatibility mode)
broke svc_fog for now
removed svc_farclip
removed svc_playerposition
removed svc_skybox
increased maximum number of models and sounds to 1024 each (and added extra svc_ messages and update bits to handle the new limits)
made punchangle use preciseangles (on DP servers), added punchvector (view origin kick, useful for earthquakes?)
redesigned entire animation interpolation system (can lerp between independently playing framegroups)
redesigned animation scene lookup in model and sprite rendering to use a single system
added a simple clientside effect system (meant for playing sprite explosion animations entirely on the client, with very nice interpolation and framerate control)
added te_smallflash
added te_customflash
added te_flamejet (untested)
darkened lightning glow and made it adjustable (r_glowinglightning cvar is now a scaler, not just an option)
increased maximum number of clientside entities
COM_WriteFile will now create a path leading up to the file
removed cpu_*.* files
reorganized fractalnoise code, now behaves more correctly
stripped out qsg_version stuff, replaced by pr_checkextension and extensions have changed completely (extensions are documented in dpextensions.qc in DP mod and release zips)
made skin and sprite mipmapping optional (r_mipskins cvar, r_mipsprites cvar), saves about 32% of texture memory if disabled
rewrote texture management system (again), now uses flags to specify texture attributes (all textures without the PRECACHE flag are uploaded only when first used, conserves huge amounts of memory), and is cleaner code
r_precachetextures cvar controls how PRECACHE texture flag is used (0 = never precache, 1 = use PRECACHE flag, 2 = always precache)
changed way text filtering mode is decided
now requires vertex array support (standard in OpenGL 1.1 so this is not a problem)
takes advantage of GL_EXT_compiled_vertex_array extension (no speed gain for my Geforce2, may help other people)
reverted to GL transforms for models (no speed gain for my Geforce2, may help other people)
gl_transform cvar controls whether to use GL transforms (1) or software transforms (0), could not measure any speed difference in my testing
r_shadows removed due to GL transforms on models
model and sprite interpolation now handle 4 frame interpolation to accomodate new interpolation system
RSurf_Draw* functions greatly optimized
Host_Error will now Sys_Error rather than crash if Host_Frame has not yet been executed
cleaned up viewthing frame reporting code, now uses the new animation system
can now look directly up and down
ByteToNormal and NormalToByte added in mathlib.c, also moved anorms.h table to mathlib.c
added axial cases for BoxOnPlaneSide (BIG improvement)
trivert2 vertex format removed, now uses alias trivertx_t format as-is (33% less model memory usage and possibly quicker loading)
redesigned map texture loading again (particularly HL maps)
water is now lit on both sides
sprites are now cached like models
sprite loading redesigned to use new animation system
increased maximum packet size to accomodate the largest possible
PF_vectoyaw optimized a little
PF_vectoangles optimized a little
PF_findchain added
PF_findchainfloat added
PF_effect added
PF_te_blood added
PF_te_bloodshower added
PF_te_explosionrgb added
PF_te_particlecube added
PF_te_particlerain added
PF_te_particlesnow added
PF_te_spark added
PF_te_gunshotquad added
PF_te_spikequad added
PF_te_superspikequad added
PF_te_explosionquad added
PF_te_smallflash added
PF_te_customflash added
PF_te_gunshot added
PF_te_spike added
PF_te_superspike added
PF_te_explosion added
PF_te_tarexplosion added
PF_te_wizspike added
PF_te_knightspike added
PF_te_lavasplash added
PF_te_teleport added
PF_te_explosion2 added
PF_te_lightning1 added
PF_te_lightning2 added
PF_te_lightning3 added
PF_te_beam added
PF_vectorvectors added
increased maximum file path length
explosions are no longer round
removed LIGHTSCALE settings
removed r_donttransformmodels cvar
a lot of particle effect changes (bouncing sparks, blood sprays from gibs that stick on the walls)
fixed sound combining so it no longer plays past the end of the buffer
fixed sound resampling
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@183
d7cf8633-e32d-0410-b094-
e92efae38249
taniwha [Thu, 5 Apr 2001 17:51:30 +0000 (17:51 +0000)]
while not yet used (I'd forgotten how much side work was involved in getting
zlib support into quake), these will allow dp to use compressed paks :) The
rest will be coming as soon as I get everything working.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@182
d7cf8633-e32d-0410-b094-
e92efae38249
dabb [Thu, 15 Mar 2001 16:19:13 +0000 (16:19 +0000)]
Compile fixes.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@181
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 4 Mar 2001 22:30:07 +0000 (22:30 +0000)]
now supports upto 256x256 texel lightmaps (rather than 17x17), as_tundra.bsp works now
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@179
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 4 Mar 2001 01:16:22 +0000 (01:16 +0000)]
forgot this file while changing FALSE and TRUE to false and true
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@178
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sun, 4 Mar 2001 01:04:38 +0000 (01:04 +0000)]
rewrite of map texture loading (mainly to do with HL textures and wads)
and all FALSE and TRUE changed to false and true
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@177
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 3 Mar 2001 22:49:59 +0000 (22:49 +0000)]
redesigned transparent HL texture checking again, now treats color 255 as transparent but only when the texture begins with a { character
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@176
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 3 Mar 2001 22:10:56 +0000 (22:10 +0000)]
fixed transparent color in HL textures (was red, should be blue... oops)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@175
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 3 Mar 2001 22:02:34 +0000 (22:02 +0000)]
server speed controls fade out of damage/bonus flashs now (more reliable timedemo)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@174
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 2 Mar 2001 22:14:49 +0000 (22:14 +0000)]
a little cleanup, and eliminated a lightstyle buffer overflow
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@169
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 2 Mar 2001 22:03:33 +0000 (22:03 +0000)]
added DPPROTOCOL support to svc_version parsing (is svc_version even used?)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@168
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 2 Mar 2001 21:40:19 +0000 (21:40 +0000)]
added a new hack to make MSVC work which will definitely not break any other compilers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@167
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 2 Mar 2001 21:28:43 +0000 (21:28 +0000)]
removed hack to make MSVC work as it was breaking gcc
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@166
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 2 Mar 2001 10:52:15 +0000 (10:52 +0000)]
Coordinates are now floats in network protocol (bloats it yes, but the accuracy allows unlimited map size, and smoother movement at very high framerates)
prints dump of last 32 svc messages in packet when client encounters unknown svc (corrupt or mis-parsed network stream)
some aesthetic cleanup of tempentity parsing
rewrite of COM_FileBase
default gl_lightmaprgba to 1 (driver speedup (data bloat, but drivers are often more optimized for it), thought I defaulted it to 1 all along, but apparently not)
model names no longer use COM_FileBase (thus they are the full name, like "progs/blah.mdl" rather than "blah", "maps/start.bsp" instead of "start", etc)
fixed bugs in model colormapping, and added external skin texture support (example: progs/blah.mdl_0_normal.tga and progs/blah.mdl_0_glow.tga, pants and shirts are also supported)
support for textures inside HL maps, and the transparent color has been fixed (HL checks for pure blue, not index 255)
default r_dynamicparticles to 1 (light smoke/blood)
improvement in angled corner sticking situations (still get a little bump as you pass through, but not actually stuck)
fixed rotation support in MOVETYPE_FOLLOW, now works perfectly
extended description length in hunk headers (50 characters now)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@165
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Wed, 28 Feb 2001 20:41:46 +0000 (20:41 +0000)]
Fix for exit segfault preventing fullscreen cleanup, and for the segfault as well.
Also enables dga mouse support, and adds in_dga_mouseaccel. DGA support needs testing.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@164
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 27 Feb 2001 08:11:44 +0000 (08:11 +0000)]
oops, hadn't finished this
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@160
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 27 Feb 2001 08:07:57 +0000 (08:07 +0000)]
forgot to commit this
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@159
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 27 Feb 2001 08:07:34 +0000 (08:07 +0000)]
clean up use of client structs in server
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@158
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Sat, 24 Feb 2001 00:21:48 +0000 (00:21 +0000)]
Minor comment update.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@157
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Sat, 24 Feb 2001 00:20:04 +0000 (00:20 +0000)]
Remove alsa 0.6 (for some random date of cvs alsa) support, never officially released. 0.9 is out, rejoice!
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@156
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Sat, 24 Feb 2001 00:10:10 +0000 (00:10 +0000)]
Update to latest ALSA development drivers.
(Thanks again to Abramo)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@155
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 24 Feb 2001 00:08:51 +0000 (00:08 +0000)]
added model_zymotic.h (forgot)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@154
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 23 Feb 2001 23:51:02 +0000 (23:51 +0000)]
updated makefile and added r_explosion.c (forgot)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@153
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 23 Feb 2001 23:39:54 +0000 (23:39 +0000)]
improved TraceLine in chase.c to be more generally useful (should move it to another file, though)
error checking in qmalloc/qfree
expanded COM_LoadFile max filename length from 32 to 1024
improved COM_LoadFile error messages
added COM_ToLowerString and COM_ToUpperString
.zym model support (not quite complete, in development)
unfinished transition to hardware model transforms (not used yet)
changed polylists to draw 5+ point polygons as GL_POLYGON instead of GL_TRIANGLE_FAN (I thought I had reverted to GL_POLYGON a long time ago... strange) for a minor speedup
new explosion effect (no particles)
reverted to lightmapped dynamic lighting effects (vertex hybrid still available as r_dlightmaps 0)
extreme speed improvements in which wall polygons are lit
minor optimization to lightmap building (memset to clear blocklights)
added and disabled texture caching to disk (it turned out to be a slowdown and a massive waste of space, but kept in source form incase it is ever useful)
much improved missing QC function errors (most notably think)
partial redesign of the skin colormapping engine (not used yet)
more consistent light falloff on different objects
created and scrapped a new particle explosion effect (way too fillrate intensive), superseded by the new explosion effect
only dynamically lights smoke and blood particles unless r_dynamicparticles is 2
possible fix for alt-tab bug in NVidia drivers (from Dabb)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@152
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Sun, 18 Feb 2001 15:14:25 +0000 (15:14 +0000)]
Undo accidental makefile commit.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@151
d7cf8633-e32d-0410-b094-
e92efae38249
despair [Sun, 18 Feb 2001 15:09:37 +0000 (15:09 +0000)]
Couple of 1 liner compile fixes. Missing header and missing cast.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@150
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 13 Feb 2001 22:07:14 +0000 (22:07 +0000)]
report name when Hunk_Alloc fails
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@149
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 12 Feb 2001 08:24:04 +0000 (08:24 +0000)]
fix for unitialized variable warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@148
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Fri, 9 Feb 2001 12:11:11 +0000 (12:11 +0000)]
added back r_speeds2, with masses of information (6 lines high), and made it print to the screen rather than console print
changed fps reading to be integer, no fraction (is this desirable?) and moved it to bottom right corner
changed rendering order yet again
made sky and waterripple speed dependent on cl.time rather than realtime (undecided if this is desirable)
made console scrolling not subject to slowmo time scaling
some whitespace changes/cleanup
moved some registervariable definitions around
optional new worldnode function (r_newworldnode, defaults to off), very different approach, minimal speed differences... sigh
added backface culling on surfaces (r_nobacks, defaults to off), barely a gain
in worldnode, made 'trivial inclusion' case for all children nodes of a completely successful CullBox test, defaults to off because it was no speed gain even on the most complex maps I could find
readability cleanup and minor speedup in lightmap conversion
added host_minfps (if framerate drops below this it will be slowmo, this replaces quake's hardcoded 10fps limit)
added host_maxfps (limit your framerate if desired, defaults to 1000, this does affect timedemo)
improved slowmo behavior
optimized out most vec3_origin uses (created VectorNegate and VectorClear for this reason)
fixed VectorDistance (old definition didn't work correctly, but never got used anyway)
darkened blood trails a bit
split R_DrawParticles into R_MoveParticles and R_DrawParticles (for speed profiling reasons)
fix for extremely rare and probably unnoticable bug in particle compacter
fixed a number of prediction issues, prediction does not occur in local games anymore, prediction also made optional (sv_predict cvar)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@147
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Wed, 7 Feb 2001 10:22:53 +0000 (10:22 +0000)]
renamed snd_linux.c to snd_oss.c
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@146
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Tue, 6 Feb 2001 17:26:46 +0000 (17:26 +0000)]
better version reports (always mention build number)
minor cleanup of qpic system (loading and drawing)
minor improvement to lighting engine tweakability (LIGHTSCALE2)
minor cleanup to texture tracking (totaltexels now called texeldatasize)
r_texturestats texture size reports are now correct (was showing 4x what it should have)
r_texturestats report rearranged to put size on the left for easy sorting in console logs
cruft removal
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@145
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 3 Feb 2001 15:54:34 +0000 (15:54 +0000)]
increased build number to 79
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@144
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Sat, 3 Feb 2001 15:54:06 +0000 (15:54 +0000)]
removed unused cvars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@143
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 11:59:51 +0000 (11:59 +0000)]
got rid of Hunk_Alloc, all allocations now have a proper name (perhaps a bit too descriptive even), improved texture tally to list wasted skin layers (colormapping), made hunk names 24 characters instead of 8.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@142
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 08:14:37 +0000 (08:14 +0000)]
every malloc/calloc/free converted to qmalloc/qfree with tracking (memstats command), and all uses of Hunk_TempAlloc have gone away
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@141
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 07:00:17 +0000 (07:00 +0000)]
reduced default -zone from 512k to 128k (quake used 48k)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@140
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 06:49:42 +0000 (06:49 +0000)]
smoke trails no longer rise (but you could hardly tell anyway, due to their short length)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@139
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 06:47:40 +0000 (06:47 +0000)]
smoke trails changed again, smoke texture greatly improved
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@138
d7cf8633-e32d-0410-b094-
e92efae38249
lordhavoc [Mon, 29 Jan 2001 06:10:57 +0000 (06:10 +0000)]
make screenshots rightside up again (or rather, upside down like TGA wants, which happens to be the output format of glReadPixels, a fact I was unaware of, so the flipping was turning it to rightside up, which is upside down in TGA... follow that logic? good :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@137
d7cf8633-e32d-0410-b094-
e92efae38249