]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
21 years agoMod_FindNonSolidLocation now takes a radius and can output to a different vector...
havoc [Sun, 9 Mar 2003 11:19:57 +0000 (11:19 +0000)]
Mod_FindNonSolidLocation now takes a radius and can output to a different vector than the input (purpose: the sphere is nudged out of any surfaces in the area, this makes realtime lighting look a lot better as the lights aren't too close to the surface)

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

21 years agomenu.c - changed M_DrawSlider to take a value and a min/max range, now prints the...
havoc [Fri, 7 Mar 2003 09:34:15 +0000 (09:34 +0000)]
menu.c - changed M_DrawSlider to take a value and a min/max range, now prints the current value of the cvar as well
menu.c, menu.h, gl_draw.c - added new color control options menu (the gl_draw.c change is merely adding a "ditherpattern" texture)
menu.c - added "Delay refresh (faster)" to options menu (gl_delayfinish cvar)
menu.c - added "Game Speed" to options menu (slowmo cvar)
vid_wgl.c, vid_glx.c, vid_null.c, vid_shared.c, vid.h, palette.c, palette.h, host.c - gamma system redesigned (VID_SetGamma now takes ramps, VID_GetGamma added, other cruft removed), moved VID_UpdateGamma to vid_shared.c, gamma is now turned off when darkplaces is minimized in X11 (unmapped), and when it's window is not active in Windows as well
vid_wgl.c - trailing whitespace fixed
vid_shared.c - added v_color_enable, v_color_black_[rgb], v_color_grey_[rgb], and v_color_white_[rgb] cvars as another way to adjust color settings
gl_draw.c - added support for v_color_* cvars, removed support for darkening screen (not possible to do in color)
vid_glx.c - got rid of unfinished X11 colormap based gamma code (using XF86 VidMode extension instead)

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

21 years agounfinished beginnings of support for voodoo1/voodoo2 class paths for realtime lightin...
havoc [Fri, 7 Mar 2003 09:33:07 +0000 (09:33 +0000)]
unfinished beginnings of support for voodoo1/voodoo2 class paths for realtime lighting (no shadows however)

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

21 years agonow uses TEXF_FORCELINEAR on lightmaps
havoc [Fri, 7 Mar 2003 09:31:46 +0000 (09:31 +0000)]
now uses TEXF_FORCELINEAR on lightmaps

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

21 years agoadded TEXF_FORCENEAREST and TEXF_FORCELINEAR flags
havoc [Fri, 7 Mar 2003 09:31:10 +0000 (09:31 +0000)]
added TEXF_FORCENEAREST and TEXF_FORCELINEAR flags

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

21 years agogot rid of AreaNode stuff, now only has AreaGrid (had to add sv_areagrid_outside...
havoc [Fri, 7 Mar 2003 09:30:21 +0000 (09:30 +0000)]
got rid of AreaNode stuff, now only has AreaGrid (had to add sv_areagrid_outside node)
renamed sv_useareanodes to sv_debugmove (inverted behavior)
SV_CreateAreaGrid now has a minimum grid size (sv_areagrid_mingridsize cvar), this greatly improved performance in helm18
SV_ClipToAreaGrid and SV_TouchAreaGrid no longer process any edicts twice (edict_t now has areagridmarknumber for this purpose)
increased AREA_GRID from 16 to 512
added SV_ClipToNode function to get rid of duplicate code in SV_ClipToAreaGrid

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

21 years agoadded gl_delayfinish cvar (default off, used to always be on)
havoc [Fri, 7 Mar 2003 09:28:12 +0000 (09:28 +0000)]
added gl_delayfinish cvar (default off, used to always be on)

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

21 years agoadded invpow (arbitrary logarithm, finds a power that the base number would need...
havoc [Fri, 7 Mar 2003 09:27:33 +0000 (09:27 +0000)]
added invpow (arbitrary logarithm, finds a power that the base number would need to be raised to, to get the requested number)

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

21 years agoadded DrawQ_SuperPic, fixed severe bug in DrawQ_Mesh (was not allocating enough room...
havoc [Fri, 7 Mar 2003 09:26:11 +0000 (09:26 +0000)]
added DrawQ_SuperPic, fixed severe bug in DrawQ_Mesh (was not allocating enough room in drawqueue for the texcoords), DrawQ_Pic and DrawQ_Fill now use DrawQ_SuperPic

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

21 years agoview.c, cl_parse.c, cl_main.c, gl_rmain.c - trying to remove all uses of origin,...
havoc [Fri, 7 Mar 2003 09:24:59 +0000 (09:24 +0000)]
view.c, cl_parse.c, cl_main.c, gl_rmain.c - trying to remove all uses of origin, angles, or scale fields of entity_render_t
view.c, gl_rmain.c - viewmodel entities are now processed in view.c instead of gl_rmain.c
view.c now uses matrix and inversematrix for view damage kicks

what this means:
the QC feature viewmodelforclient now works

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

21 years agoadded Matrix4x4_OriginFromMatrix, and Matrix4x4_ScaleFromMatrix
havoc [Fri, 7 Mar 2003 09:23:33 +0000 (09:23 +0000)]
added Matrix4x4_OriginFromMatrix, and Matrix4x4_ScaleFromMatrix

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

21 years agogot an email about this being out of date, fixed
havoc [Wed, 5 Mar 2003 07:20:40 +0000 (07:20 +0000)]
got an email about this being out of date, fixed

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

21 years agochanged gloss behavior, now darkens light intensity (to 25% of normal) instead of...
havoc [Sun, 2 Mar 2003 07:20:28 +0000 (07:20 +0000)]
changed gloss behavior, now darkens light intensity (to 25% of normal) instead of assuming gloss texture is dim, this is consistent with tenebrae behavior, inconsistent with doom3 behavior (sigh...), this makes OgrO's model skins look a lot better
no longer spews 'refusing to create light' warnings when loading map light entities that actually aren't lights at all

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

21 years agofix external model skins (they weren't rendering)
havoc [Sun, 2 Mar 2003 07:18:14 +0000 (07:18 +0000)]
fix external model skins (they weren't rendering)

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

21 years agochanged lots of printf to Con_Printf
havoc [Sun, 2 Mar 2003 01:30:44 +0000 (01:30 +0000)]
changed lots of printf to Con_Printf
removed some trailing whitespace

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

21 years agofix improper handling of overbright pixels when saving screenshots
havoc [Fri, 28 Feb 2003 11:31:14 +0000 (11:31 +0000)]
fix improper handling of overbright pixels when saving screenshots

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

21 years agolights now have an orientation (this isn't editable yet, and is infact not really...
havoc [Fri, 28 Feb 2003 11:28:10 +0000 (11:28 +0000)]
lights now have an orientation (this isn't editable yet, and is infact not really supported for rotated lights at the moment, their bbox would need to be rotated)
lights now use bbox culling instead of radius (because they aren't round in 2D texture mode)
fixed LOTS of light culling bugs (particularly with surface selection)
fixed scissor to be more efficient (smaller) when easily done (entirely infront of view) and fixed some bugs
got rid of ShadowSphere code in gl_rmain.c (it was not used)
added back RadiusFromBounds (and optimized it) and added RadiusFromBoundsAndOrigin
removed trailing whitespace in mathlib.c
added BoxesOverlap macro to mathlib.h
fixed a portal-flow bug when a light lies directly inside a portal polygon (now checks both leafs involved, very mild search tolerance for leafs around the light)
added back 3d attenuation texture (true spherical lights make a return, r_shadow_texture3d cvar controls this)
fixed light-bleeding in attenuation textures at the edges (fixed a bug in the biasing during texture generation, now the edge is always black as it should be)
realtime lighting texture generation (attenuation/normalizationcubemap) now has some macros for more easily adjusting texture resolutions
reduced resolution of attenuation and normalization textures
added a bunch more rendering paths for diffuse and specular lighting, to reduce number of passes in a few cases (and allow use of 3D attenuation texture)

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

21 years agosome added structures in in preparation for another protocol version bump (to add...
havoc [Fri, 28 Feb 2003 11:27:10 +0000 (11:27 +0000)]
some added structures in in preparation for another protocol version bump (to add partial entity updates to avoid kicking people off server when packet buffer fills up in a single frame - yes this means rate capping and such will be possible)

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

21 years agofix chthon lightning (ugh, how did I manage to use polygon lightning for this, I...
havoc [Fri, 28 Feb 2003 11:09:24 +0000 (11:09 +0000)]
fix chthon lightning (ugh, how did I manage to use polygon lightning for this, I made polygon lightning optional per beam for this very reason!)

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

21 years agochanged TEXF_CLAMP to use GL_CLAMP_TO_EDGE (GL_EXT_texture_edge_clamp or GL_SGIS_text...
havoc [Thu, 27 Feb 2003 00:00:31 +0000 (00:00 +0000)]
changed TEXF_CLAMP to use GL_CLAMP_TO_EDGE (GL_EXT_texture_edge_clamp or GL_SGIS_texture_edge_clamp) instead of GL_CLAMP because it's a more useful behavior all-round, also fixed normalization cubemap on non-NVIDIA cards by doing this (I was properly using GL_CLAMP for attenuation texture, but not for normalization cubemap... *slaps self*)

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

21 years agoadjustable r_shadow_projectdistance for testing (trying to identify Radeon bug)
havoc [Wed, 26 Feb 2003 12:47:49 +0000 (12:47 +0000)]
adjustable r_shadow_projectdistance for testing (trying to identify Radeon bug)

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

21 years agoToo fine an AREA_GRID seems to be dropping performance in normal quake maps (I hope...
havoc [Wed, 26 Feb 2003 01:41:00 +0000 (01:41 +0000)]
Too fine an AREA_GRID seems to be dropping performance in normal quake maps (I hope this fixes the performance).

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

21 years agoadded new method of culling irrelevant entity collisions - a grid of areas
havoc [Fri, 21 Feb 2003 09:24:53 +0000 (09:24 +0000)]
added new method of culling irrelevant entity collisions - a grid of areas
the areanode system still lingers because it can cope with things the grid can not (entities outside the grid, or too large for the alloted 16 grid links per entity)

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

21 years agoadded VectorMultiply (not used by anything, but for completeness...)
havoc [Fri, 21 Feb 2003 09:22:58 +0000 (09:22 +0000)]
added VectorMultiply (not used by anything, but for completeness...)

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

21 years agodisable step interpolation unless entity is MOVETYPE_STEP
havoc [Fri, 21 Feb 2003 09:22:27 +0000 (09:22 +0000)]
disable step interpolation unless entity is MOVETYPE_STEP

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

21 years agooptional polygon collisions, not ready for practical use yet, also support for brush...
havoc [Thu, 20 Feb 2003 09:22:08 +0000 (09:22 +0000)]
optional polygon collisions, not ready for practical use yet, also support for brush collisions
not terribly optimized (fast enough though)

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

21 years agoadded #include "portals.h"
havoc [Thu, 20 Feb 2003 09:20:36 +0000 (09:20 +0000)]
added #include "portals.h"

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

21 years agosome minor cleanup of PartialIPAddress (and some comments about how stupid it is...
havoc [Thu, 20 Feb 2003 09:17:42 +0000 (09:17 +0000)]
some minor cleanup of PartialIPAddress (and some comments about how stupid it is) and a comment about hostname coming from network address being stupid, and some whitespace

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

21 years agonow counts (very approximate) cost of builtin functions called by progs, profile...
havoc [Thu, 20 Feb 2003 09:15:46 +0000 (09:15 +0000)]
now counts (very approximate) cost of builtin functions called by progs, profile command reports this in addition to the instructions count, also profile now reports a whole list, not just the top 10

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

21 years agosimplified "connect local" a bit
havoc [Thu, 20 Feb 2003 09:13:31 +0000 (09:13 +0000)]
simplified "connect local" a bit

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

21 years agooptional portal based determination of lit surfaces (good speed gain, enough to make...
havoc [Thu, 20 Feb 2003 09:12:25 +0000 (09:12 +0000)]
optional portal based determination of lit surfaces (good speed gain, enough to make dpdm2 somewhat playable, on by default)

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

21 years agono longer adopt colors from server updates (this means demos no longer change your...
havoc [Mon, 17 Feb 2003 02:59:50 +0000 (02:59 +0000)]
no longer adopt colors from server updates (this means demos no longer change your colors, and other such annoyances)

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

21 years agoimproved Com_HexDumpToConsole, it now prints properly (not with a data byte on the...
havoc [Mon, 17 Feb 2003 00:58:53 +0000 (00:58 +0000)]
improved Com_HexDumpToConsole, it now prints properly (not with a data byte on the left side followed by offset number, and other sillyness), and also prints a text listing beside the hex, it remains the same width as the old hex-only listing.

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

21 years agooptimized some functions like SV_WallFriction and SV_FlyMove, no known behavioral...
havoc [Fri, 14 Feb 2003 01:27:10 +0000 (01:27 +0000)]
optimized some functions like SV_WallFriction and SV_FlyMove, no known behavioral changes (the code is a lot simpler however)

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

21 years agofix some bugs with r_fullbright, no lights, and other such cases
havoc [Fri, 14 Feb 2003 01:22:29 +0000 (01:22 +0000)]
fix some bugs with r_fullbright, no lights, and other such cases

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

21 years agoadded con_notify cvar, which controls how many console notify lines are displayed...
havoc [Fri, 14 Feb 2003 01:17:51 +0000 (01:17 +0000)]
added con_notify cvar, which controls how many console notify lines are displayed (default 4 like quake, max 32)

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

21 years agoadded VectorBlend and Matrix4x4_Blend
havoc [Fri, 14 Feb 2003 01:16:41 +0000 (01:16 +0000)]
added VectorBlend and Matrix4x4_Blend

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

21 years agodon't crash on NULL model in entity culling
havoc [Fri, 14 Feb 2003 01:15:06 +0000 (01:15 +0000)]
don't crash on NULL model in entity culling

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

21 years agorestructured LDFLAGS a bit to make sure libraries come last (especially -lm as the...
havoc [Wed, 12 Feb 2003 18:09:58 +0000 (18:09 +0000)]
restructured LDFLAGS a bit to make sure libraries come last (especially -lm as the very last), also moved debugging/profiling flags to be first

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

21 years agoget rid of yet another entity_frame_t on the stack, this is the last one, hopefully...
havoc [Wed, 12 Feb 2003 00:11:07 +0000 (00:11 +0000)]
get rid of yet another entity_frame_t on the stack, this is the last one, hopefully the last stack overflow

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

21 years agofix two more stack overflows on win32 (in one case two 3.25mb entity_frame_t structs...
havoc [Tue, 11 Feb 2003 23:55:46 +0000 (23:55 +0000)]
fix two more stack overflows on win32 (in one case two 3.25mb entity_frame_t structs resided on the stack at once!)

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

21 years agoanother stack overflow fixed, this one more on the order of 300k+?
havoc [Tue, 11 Feb 2003 14:03:15 +0000 (14:03 +0000)]
another stack overflow fixed, this one more on the order of 300k+?

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

21 years agofixed another stack overflow on win32, apparently a 64k packet buffer on the stack...
havoc [Tue, 11 Feb 2003 13:48:34 +0000 (13:48 +0000)]
fixed another stack overflow on win32, apparently a 64k packet buffer on the stack causes a stack overflow - yeesh win32 stack is pathetic

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

21 years agofix win32 stack overflows in CL_ParseServerInfo, it was choking on the sheer quantity...
havoc [Mon, 10 Feb 2003 23:55:33 +0000 (23:55 +0000)]
fix win32 stack overflows in CL_ParseServerInfo, it was choking on the sheer quantity of memory used by model and sound precache names

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

21 years agoadded cl_noplayershadow cvar to allow disabling player shadow
havoc [Mon, 10 Feb 2003 21:04:09 +0000 (21:04 +0000)]
added cl_noplayershadow cvar to allow disabling player shadow

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

21 years agoalmost lost this very important part of the MAX_EDICTS commit
havoc [Mon, 10 Feb 2003 21:02:29 +0000 (21:02 +0000)]
almost lost this very important part of the MAX_EDICTS commit

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

21 years agoMAX_EDICTS has changed to 32768. Yes this is madness. Thanks to banshee for prompti...
havoc [Mon, 10 Feb 2003 14:46:15 +0000 (14:46 +0000)]
MAX_EDICTS has changed to 32768.  Yes this is madness.  Thanks to banshee for prompting this necessity to run his map helm10000!
Sound protocol has been upgraded to be able to send 16bit entity numbers (this allows going beyond the old 8192 limit)
MAX_ENTITY_DATABASE is now dependent on MAX_EDICTS
MAX_DATAGRAM increased from 8000 to 65536
MAX_MSGLEN has been removed (now uses MAX_DATAGRAM)
NET_MAXMESSAGE is now dependent on MAX_DATAGRAM
SV_PushMove's list of moved entities has been moved into sv.moved_edicts (just an array of pointers) and their original origin and angles have been moved into edict_t, this avoids stack crashes on win32 with the new edict limit
increased MAX_MODELS and MAX_SOUNDS from 1024 to 4096 (this is not really necessary but a good idea)

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

21 years agomakefile to use for cross compiling mingw builds
havoc [Sat, 1 Feb 2003 14:20:07 +0000 (14:20 +0000)]
makefile to use for cross compiling mingw builds

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

21 years agofixed targa quake sky loading
havoc [Sat, 1 Feb 2003 08:42:18 +0000 (08:42 +0000)]
fixed targa quake sky loading

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

21 years agochthon lightning no longer uses beam polygons
havoc [Fri, 31 Jan 2003 07:27:31 +0000 (07:27 +0000)]
chthon lightning no longer uses beam polygons
lightning beams are now relative to their owner entity (if they have one), this makes aiming lightning look instantaneous for the first time ever in quake

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

21 years agolimited pitch range to that of quake
havoc [Fri, 31 Jan 2003 07:24:12 +0000 (07:24 +0000)]
limited pitch range to that of quake

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

21 years agocorrected comment again, indicating that the offset for polygon 3 is in the bottom...
havoc [Tue, 28 Jan 2003 02:19:51 +0000 (02:19 +0000)]
corrected comment again, indicating that the offset for polygon 3 is in the bottom right, not in the top left

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

21 years agocorrected numbering of polygons in comment (oops)
havoc [Tue, 28 Jan 2003 02:14:14 +0000 (02:14 +0000)]
corrected numbering of polygons in comment (oops)

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

21 years agoadded a lot of comments to lightning beam code
havoc [Tue, 28 Jan 2003 02:13:37 +0000 (02:13 +0000)]
added a lot of comments to lightning beam code

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

21 years agoThe gcc 2.95 problem was in fact OP_STORE_V doing nasty things to numbers that were...
warp [Mon, 27 Jan 2003 09:38:31 +0000 (09:38 +0000)]
The gcc 2.95 problem was in fact OP_STORE_V doing nasty things to numbers that were not quite 'valid' floats, so we now just copy as ints.
This allows us to make the string handling /much/ cleaner again.

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

21 years agofixed some very ewww bugs (a few .c files made their way into the .o lists)
havoc [Mon, 27 Jan 2003 07:37:18 +0000 (07:37 +0000)]
fixed some very ewww bugs (a few .c files made their way into the .o lists)

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

21 years agocorrected rtlights loading of cubemapname (stupid typo)
havoc [Mon, 27 Jan 2003 07:36:22 +0000 (07:36 +0000)]
corrected rtlights loading of cubemapname (stupid typo)

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

21 years agolightning beams have been replaced with a polygon effect which renders faster than...
havoc [Mon, 27 Jan 2003 02:54:54 +0000 (02:54 +0000)]
lightning beams have been replaced with a polygon effect which renders faster than the model effect and looks...  oh umm... about 100x better, old effect still available - cl_beampolygons 0 to go back to models - some r_lightningbeam_* cvars added for tweaking new effect
r_speeds now reports some realtime lighting info
shadowless light support added
(unsuccessful) attempt to fix r_drawportals by moving the call to happen whether portal rendering was used or not
comment about possible optimization to shadow volumes added (rather, inverted light volumes and how to get maximum performance from them)
light styles are now checked for validity (must be in the right number range)
tiny cleanup to cubemap name handling (cubemaps are still not actually supported)
r_editlights_rtlightcolorscale and sizescale are now applied only in LoadWorldLights and SaveWorldLights, not in light creation (also somewhat to compensate for this fact, .lights loading has been tweaked to double the brightness)
torch light colors changed (more orange)
r_editlights_spawn no longer takes parameters
r_editlights_edit now has subcommands instead of setting all properties, the commands are: origin, originx, originy, originz, move, movex, movey, movez, radius, color, style, cubemap, shadows
r_editlights_toggleshadow added (useful for point and click shadow toggling)
display overlay now shown when pointing at a light in editing mode, indicating all properties of the light

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

21 years agoentity shadow casting is now optional per entity (EF_NOSHADOW added), and special...
havoc [Thu, 23 Jan 2003 20:10:07 +0000 (20:10 +0000)]
entity shadow casting is now optional per entity (EF_NOSHADOW added), and special entities (static entities like torchs, and tempentities like beams) do not cast shadows
intermission player does not cast shadows and the cameraman in Nehahra movie and cinematics no longer casts shadows

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

21 years agoadded resolutions 320x240, 400x300, 1152x864, 1280x1024, 1600x1200, 1792x1344, 1920x1...
havoc [Thu, 23 Jan 2003 19:34:11 +0000 (19:34 +0000)]
added resolutions 320x240, 400x300, 1152x864, 1280x1024, 1600x1200, 1792x1344, 1920x1440, 2048x1536

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

21 years agoreduced intensity and radius of teleport flash
havoc [Wed, 22 Jan 2003 00:49:13 +0000 (00:49 +0000)]
reduced intensity and radius of teleport flash

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

21 years agoremoved allsolid check from droptofloor
havoc [Wed, 22 Jan 2003 00:42:44 +0000 (00:42 +0000)]
removed allsolid check from droptofloor

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

21 years agoturned off mipmapping on attenuation texture
havoc [Wed, 22 Jan 2003 00:42:05 +0000 (00:42 +0000)]
turned off mipmapping on attenuation texture

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

21 years agoworks with NULL worldmodel
havoc [Thu, 16 Jan 2003 23:53:26 +0000 (23:53 +0000)]
works with NULL worldmodel
fixed overbright lighting!  (light flickering is now smooth and everything)
added r_editlights_rtlightssizescale and r_editlights_rtlightscolorscale which scale light properties when loading as well as saving (to undo the change - this can be exploited to modify all lights in the level)
reduced used area of attenuation texture a little to ensure black edges
changed defaults for attenuation texture settings and rtlights sizescale/colorscale to greatly improve performance while still looking good
now defaults to no fake bumpmapping on walls (saves texture memory and looks better to me)

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

21 years agochanged a debugging notice about texture loading
havoc [Wed, 15 Jan 2003 13:21:19 +0000 (13:21 +0000)]
changed a debugging notice about texture loading

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

21 years agonow checks for NULL worldmodel
havoc [Wed, 15 Jan 2003 13:13:28 +0000 (13:13 +0000)]
now checks for NULL worldmodel

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

21 years agonow prints image size (was printing garbage before)
havoc [Wed, 15 Jan 2003 13:12:47 +0000 (13:12 +0000)]
now prints image size (was printing garbage before)

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

21 years agotiny cleanup to RotatePointAroundVector (uses a VectorCopy instead of 3 lines)
havoc [Wed, 15 Jan 2003 13:12:14 +0000 (13:12 +0000)]
tiny cleanup to RotatePointAroundVector (uses a VectorCopy instead of 3 lines)

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

21 years agofixed bumpmapping! now looks correct
havoc [Wed, 15 Jan 2003 13:09:16 +0000 (13:09 +0000)]
fixed bumpmapping!  now looks correct

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

21 years agoexpanded string table offset table from 1024 to 65536, there must be a better solutio...
havoc [Wed, 15 Jan 2003 13:05:32 +0000 (13:05 +0000)]
expanded string table offset table from 1024 to 65536, there must be a better solution than this though...
this fixes savegame loading (which allocates lots of negative string offsets)

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

21 years agoadded developer_memory cvar (default off) to decide whether to print memory debugging...
havoc [Wed, 15 Jan 2003 13:01:21 +0000 (13:01 +0000)]
added developer_memory cvar (default off) to decide whether to print memory debugging messages if developer is on

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

21 years agonow checks if worldmodel is NULL again, some comment cleanups and clarifications
havoc [Wed, 15 Jan 2003 12:59:40 +0000 (12:59 +0000)]
now checks if worldmodel is NULL again, some comment cleanups and clarifications

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

21 years agocleanup of precache messages and assorted comments
havoc [Wed, 15 Jan 2003 11:40:17 +0000 (11:40 +0000)]
cleanup of precache messages and assorted comments

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

21 years agoE4M9 was added to the Transfusion map list
molivier [Mon, 6 Jan 2003 14:28:37 +0000 (14:28 +0000)]
E4M9 was added to the Transfusion map list

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

21 years agoloadimagepixels is a little cleaner now (yes made cleaner by goto...) and dprints...
havoc [Tue, 24 Dec 2002 23:00:59 +0000 (23:00 +0000)]
loadimagepixels is a little cleaner now (yes made cleaner by goto...) and dprints info about loaded images
critical bug in image_loadskin fixed (s->basepixels_width and height were not being set)

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

21 years agodetect bogus texture upload attempts and print the info to console
havoc [Tue, 24 Dec 2002 22:59:23 +0000 (22:59 +0000)]
detect bogus texture upload attempts and print the info to console

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

21 years agounified model skinframe loaders used for mdl, md2, md3, and bsp textures (both extern...
havoc [Sun, 22 Dec 2002 22:56:09 +0000 (22:56 +0000)]
unified model skinframe loaders used for mdl, md2, md3, and bsp textures (both external and internal where applicable)
imageskin_t and image_loadskin/image_freeskin functions added to image.[ch] for use by the unified skinframe loaders
added palette_nocolormap
split r_shadow_bumpscale cvar into r_shadow_bumpscale_bumpmap (for _bump textures) and r_shadow_bumpscale_basetexture (self explanatory)
now loads _norm normalmap textures (tenebrae compatibility)
_nmap normalmap texture support removed (it was broken in the previous release and I don't need to bog down the texture loader with even more unnecessary names)
r_shadow_lightattenuationpower added (default 2, to leave it looking identical to previous versions, this controls the falloff curve of light)
renamed detailtextures array to mod_shared_detailtextures and moved it and related code to model_shared.[ch]
removed progs/missile.mdl shadow casting check (in r_shadow_realtime mode) I had forgotten to remove before committing last time

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

21 years agoSome stupid Linux machines (i.e. Mandrake) seem to ignore their own network propertie...
molivier [Wed, 11 Dec 2002 17:51:31 +0000 (17:51 +0000)]
Some stupid Linux machines (i.e. Mandrake) seem to ignore their own network properties; in this case, we use the loopback address as the default one. Also, fixed an inoffensive bug when binding the UDP control socket.

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

21 years agoI guess those glLoadIdentity calls were more important than expected
havoc [Wed, 11 Dec 2002 03:06:44 +0000 (03:06 +0000)]
I guess those glLoadIdentity calls were more important than expected

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

21 years agoremoved glLoadIdentity calls (they were all useless where they were used)
havoc [Mon, 9 Dec 2002 12:37:59 +0000 (12:37 +0000)]
removed glLoadIdentity calls (they were all useless where they were used)
commented out unused GL functions

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

21 years agoadded Electro's smoke trail tweaks
havoc [Mon, 9 Dec 2002 12:35:08 +0000 (12:35 +0000)]
added Electro's smoke trail tweaks
decals now follow the bmodel they stuck to

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

21 years agoRemoved some warnings in MSVC6
molivier [Tue, 3 Dec 2002 10:16:37 +0000 (10:16 +0000)]
Removed some warnings in MSVC6

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

21 years agoUpdated Transfusion map list
molivier [Tue, 3 Dec 2002 10:15:01 +0000 (10:15 +0000)]
Updated Transfusion map list

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

21 years agofix textured DrawQ_Fill problem when DrawQ_Fill is the first 2d primitive rendered...
havoc [Mon, 2 Dec 2002 20:06:27 +0000 (20:06 +0000)]
fix textured DrawQ_Fill problem when DrawQ_Fill is the first 2d primitive rendered (thanks Tomaz)

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

21 years agoanother bugfix for WORKINGLQUAKE code
havoc [Mon, 2 Dec 2002 04:52:47 +0000 (04:52 +0000)]
another bugfix for WORKINGLQUAKE code

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

21 years agomd3 model support and some cleanups to skin loading and other things in the mdl and...
havoc [Mon, 2 Dec 2002 01:55:54 +0000 (01:55 +0000)]
md3 model support and some cleanups to skin loading and other things in the mdl and md2 loaders
md3 tags are not loaded yet

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

21 years agobeginnings of some proper server list code, commented out for now
havoc [Mon, 2 Dec 2002 01:53:51 +0000 (01:53 +0000)]
beginnings of some proper server list code, commented out for now

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

21 years agochanged master server list around a bit (added rick.cube-sol.net and my master server...
havoc [Mon, 2 Dec 2002 01:52:13 +0000 (01:52 +0000)]
changed master server list around a bit (added rick.cube-sol.net and my master server as well)
master server list can now have gaps
ipaddr is now parsed from the getserversResponse properly (thanks Rick)
now reports port number in developer print for sending messages to master servers

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

21 years agoreverted to fast version of trianglefacinglight code, as it was found to be a speed...
havoc [Mon, 2 Dec 2002 01:43:50 +0000 (01:43 +0000)]
reverted to fast version of trianglefacinglight code, as it was found to be a speed gain in benchmarks compared to the light radius checking version
fixed an unitialized variable warning

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

21 years agoadded loadtextureimagebumpasnmap
havoc [Mon, 2 Dec 2002 01:33:33 +0000 (01:33 +0000)]
added loadtextureimagebumpasnmap

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

21 years agowater moves around again
havoc [Mon, 2 Dec 2002 01:31:32 +0000 (01:31 +0000)]
water moves around again

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

21 years agooptimized single frame lerp case
havoc [Mon, 2 Dec 2002 01:28:30 +0000 (01:28 +0000)]
optimized single frame lerp case
removed FetchSkinFrame
mesh rendering loop now... advances the mesh

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

21 years agocleaned up shadow volume culling somewhat
havoc [Mon, 2 Dec 2002 01:25:32 +0000 (01:25 +0000)]
cleaned up shadow volume culling somewhat
added r_shadow_cull cvar to decide whether or not to apply shadow volume culling

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

21 years agorenamed and altered SZ_HexDumpToConsole to be Com_HexDumpToConsole which takes a...
havoc [Mon, 2 Dec 2002 00:42:25 +0000 (00:42 +0000)]
renamed and altered SZ_HexDumpToConsole to be Com_HexDumpToConsole which takes a qbyte * and a size, instead of a sizebuf_t
added SZ_HexDumptoConsole which just calls Com_HexDumpToConsole

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

21 years agofix compiling problems in MSVC (thanks Tomaz)
havoc [Sun, 1 Dec 2002 20:08:22 +0000 (20:08 +0000)]
fix compiling problems in MSVC (thanks Tomaz)

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

21 years agoa few more glquake and glqwcl compatibility fixes
havoc [Sun, 1 Dec 2002 08:28:39 +0000 (08:28 +0000)]
a few more glquake and glqwcl compatibility fixes

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

21 years agoadded a simplified CL_TraceLine in the WORKINGLQUAKE code and enabled particle collis...
havoc [Sun, 1 Dec 2002 04:40:37 +0000 (04:40 +0000)]
added a simplified CL_TraceLine in the WORKINGLQUAKE code and enabled particle collisions in WORKINGLQUAKE

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

21 years agodecals added back due to popular demand, currently not at all optimized (they're...
havoc [Sat, 30 Nov 2002 09:44:26 +0000 (09:44 +0000)]
decals added back due to popular demand, currently not at all optimized (they're just particles) and not clipped to surfaces
cl_decals 1 to enable (this is saved to config), cl_decals_time and cl_decals_fadetime change settings for them (these are also saved to config)
redesigned particle additive flag to be a blend mode number (PBLEND_ALPHA, PBLEND_ADD, or PBLEND_MOD - for decals), lots of special hacks for the nifty new PBLEND_MOD mode

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

21 years ago-width and -height can now be used alone (instead of having to use both) for better...
havoc [Fri, 29 Nov 2002 00:33:13 +0000 (00:33 +0000)]
-width and -height can now be used alone (instead of having to use both) for better compatibility with stock glquake behavior

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

21 years agomdl/md2 transitioned to meshes
havoc [Thu, 28 Nov 2002 03:41:10 +0000 (03:41 +0000)]
mdl/md2 transitioned to meshes

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