]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
19 years agoreenabled hlbsp sky polygon rendering so that fogging works
havoc [Mon, 18 Apr 2005 20:50:57 +0000 (20:50 +0000)]
reenabled hlbsp sky polygon rendering so that fogging works

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

19 years agochanged crosshair_static default to 1
havoc [Mon, 18 Apr 2005 06:48:21 +0000 (06:48 +0000)]
changed crosshair_static default to 1

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

19 years agochanged in_pitch_min and in_pitch_max defaults to -90 and 90 respectively
havoc [Mon, 18 Apr 2005 06:47:40 +0000 (06:47 +0000)]
changed in_pitch_min and in_pitch_max defaults to -90 and 90 respectively

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

19 years agofixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing
havoc [Mon, 18 Apr 2005 02:21:48 +0000 (02:21 +0000)]
fixed the SU_ITEMS fix so that it doesn't trash the PROTOCOL_DARKPLACES6 parsing

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

19 years agofixed a bug in CL_ParseClientdata that was breaking on hipnotic demos
havoc [Sun, 17 Apr 2005 21:15:50 +0000 (21:15 +0000)]
fixed a bug in CL_ParseClientdata that was breaking on hipnotic demos

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

19 years agogl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number...
havoc [Sun, 17 Apr 2005 09:08:54 +0000 (09:08 +0000)]
gl_texture_anisotropy now only affects TEXF_MIPMAP textures which should fix a number of 'wandering off the lightmap' issues (as well as similar issues with model skins, as they are not mipmapped)

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

19 years agotexture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from...
havoc [Sun, 17 Apr 2005 09:05:32 +0000 (09:05 +0000)]
texture images now take on the TEXF_FORCENEAREST and TEXF_FORCELINEAR flags from the textures placed in them (as was intended), so gl_texturemode changes
should no longer affect them

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

19 years agodefault to insert mode instead of replace mode in console
havoc [Sun, 17 Apr 2005 08:37:08 +0000 (08:37 +0000)]
default to insert mode instead of replace mode in console
get rid of stupid cursor right at end of line behavior in console, repeating characters from the previous edit line is annoying
allow typing characters > 126 in console

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

19 years agofix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
havoc [Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)]
fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)

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

19 years agodon't draw glow twice when gl_combine is on
havoc [Sun, 17 Apr 2005 08:32:21 +0000 (08:32 +0000)]
don't draw glow twice when gl_combine is on

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

19 years agofixed a stupid bug in Entityframe5_ExpandEdicts
havoc [Sat, 16 Apr 2005 21:30:13 +0000 (21:30 +0000)]
fixed a stupid bug in Entityframe5_ExpandEdicts

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

19 years agofix a crash when s->tag_entity is higher than current d->maxedicts
havoc [Sat, 16 Apr 2005 09:15:18 +0000 (09:15 +0000)]
fix a crash when s->tag_entity is higher than current d->maxedicts

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

19 years agochanged R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one...
havoc [Fri, 15 Apr 2005 08:37:47 +0000 (08:37 +0000)]
changed R_Shadow_RenderLighting to do full base+pants+shirt+gloss rendering in one call (will optimize the rendering itself later to merge some of the passes)

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

19 years agofix a bug in the early out case of R_Q1BSP_DrawLight
havoc [Fri, 15 Apr 2005 08:30:53 +0000 (08:30 +0000)]
fix a bug in the early out case of R_Q1BSP_DrawLight

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

19 years agoR_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed...
havoc [Fri, 15 Apr 2005 08:21:11 +0000 (08:21 +0000)]
R_Q1BSP_GetLightInfo now uses BSP tree recursion as an optimization for a small speed gain

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

19 years agomade dland2.wav not play in GAME_NEXUIZ
havoc [Fri, 15 Apr 2005 08:18:26 +0000 (08:18 +0000)]
made dland2.wav not play in GAME_NEXUIZ
no longer runs physics on disconnected clients (quake did not run them), fixing the physics problems with frikbots, thanks to FrikaC for explanation of this problem

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

19 years ago-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
black [Thu, 14 Apr 2005 20:45:08 +0000 (20:45 +0000)]
-Added the parameter 'persistent'(naming?) to Draw_CachePic, which decides
 whether the texture is loaded in texture memory directly or only on demand.
-Adapted all Draw_CachePic calls (I'll do some corrections, atm most of them
 pass persistent := false)

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

19 years agoLoadTGA is now more compliant with the TGA spec regarding colormaps (they can be...
havoc [Thu, 14 Apr 2005 08:27:36 +0000 (08:27 +0000)]
LoadTGA is now more compliant with the TGA spec regarding colormaps (they can be present even on a truecolor image, just not used by it) and attributebits (alpha is now ignored if attributebits is not 8 which fixes a number of malformed TGA files (though they still waste disk space) - note that attributebits is part of the attributes header byte)

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

19 years agorenamed r_shadow_cursor cvars to actually have the word cursor in their name like...
havoc [Mon, 11 Apr 2005 19:37:04 +0000 (19:37 +0000)]
renamed r_shadow_cursor cvars to actually have the word cursor in their name like they were supposed to

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

19 years agoremove unused variable
havoc [Mon, 11 Apr 2005 19:06:49 +0000 (19:06 +0000)]
remove unused variable

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

19 years ago-Changed the dpv buffer to 1 MB.
black [Mon, 11 Apr 2005 16:53:33 +0000 (16:53 +0000)]
-Changed the dpv buffer to 1 MB.

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

19 years agoimplemented playerclip and monsterclip brush support for q3bsp levels
havoc [Mon, 11 Apr 2005 02:27:30 +0000 (02:27 +0000)]
implemented playerclip and monsterclip brush support for q3bsp levels

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

19 years agochanged color codes to match Quake3
havoc [Mon, 11 Apr 2005 02:23:16 +0000 (02:23 +0000)]
changed color codes to match Quake3
changed chat coloring in Nexuiz to use yellow, instead of shifting to upper 128 characters, this should open up the possibility of 8bit fonts in Nexuiz (for multilingual chat)

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

19 years agosmoke no longer expands over time (eats fillrate and isn't very realistic)
havoc [Sun, 10 Apr 2005 16:53:42 +0000 (16:53 +0000)]
smoke no longer expands over time (eats fillrate and isn't very realistic)

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

19 years agofixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)
havoc [Sun, 10 Apr 2005 15:46:47 +0000 (15:46 +0000)]
fixed ut2003-style smoke ring effect on explosions (not that anyone uses this I assume)

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

19 years agoreimplemented particle lighting, however it is not used (too slow)
havoc [Sun, 10 Apr 2005 15:36:33 +0000 (15:36 +0000)]
reimplemented particle lighting, however it is not used (too slow)
fixed a stupid bug in fogging of alpha blend and modulation blend

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

19 years agofixed a crash if decals are stuck to submodels when cl_entities expands
havoc [Sun, 10 Apr 2005 15:29:29 +0000 (15:29 +0000)]
fixed a crash if decals are stuck to submodels when cl_entities expands

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

19 years agoremoved unused leaf parameter on CompleteLightPoint
havoc [Sun, 10 Apr 2005 14:01:22 +0000 (14:01 +0000)]
removed unused leaf parameter on CompleteLightPoint

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

19 years agoUmm, I think this todo item (netconn) has been done some time ago.
black [Sat, 9 Apr 2005 20:11:40 +0000 (20:11 +0000)]
Umm, I think this todo item (netconn) has been done some time ago.

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

19 years agoAdded the DP_HALFLIFE_SPRITE QC extension
molivier [Thu, 7 Apr 2005 10:00:48 +0000 (10:00 +0000)]
Added the DP_HALFLIFE_SPRITE QC extension

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

19 years agofix 256 frame limit (stupid legacy bug in entity_state_t building code)
havoc [Wed, 6 Apr 2005 20:30:19 +0000 (20:30 +0000)]
fix 256 frame limit (stupid legacy bug in entity_state_t building code)

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

19 years agochanged cl_brushmodel_entities array from entity_render_t * to int, to fix a crash...
havoc [Wed, 6 Apr 2005 11:12:56 +0000 (11:12 +0000)]
changed cl_brushmodel_entities array from entity_render_t * to int, to fix a crash when cl_entities array expands

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

19 years agofixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error
havoc [Wed, 6 Apr 2005 10:06:26 +0000 (10:06 +0000)]
fixed a stupid typo in EntityFrame5_ExpandEdicts that caused a double free error

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

19 years agofixed an error case in S_StartSound
havoc [Tue, 5 Apr 2005 22:23:17 +0000 (22:23 +0000)]
fixed an error case in S_StartSound

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

19 years agofix some crashes with fogged surfaces
havoc [Tue, 5 Apr 2005 20:28:07 +0000 (20:28 +0000)]
fix some crashes with fogged surfaces

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

19 years agomade CL_ExpandEntities cause an error if called before cl_entities is initialized
havoc [Tue, 5 Apr 2005 20:01:33 +0000 (20:01 +0000)]
made CL_ExpandEntities cause an error if called before cl_entities is initialized

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

19 years agoconsolidated many mempools to make memlist more readable (and very slightly reduce...
havoc [Tue, 5 Apr 2005 18:23:53 +0000 (18:23 +0000)]
consolidated many mempools to make memlist more readable (and very slightly reduce memory usage)
changed gltexture_t->identifier from a pointer to an array to reduce the number of allocations per texture (now 2-3 rather than 3-4)
made all MAX_EDICTS arrays in entityframe5_database_t adaptive size to reduce server memory usage

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

19 years agono longer uses SZ_Alloc for cmd_text buffer
havoc [Tue, 5 Apr 2005 17:31:37 +0000 (17:31 +0000)]
no longer uses SZ_Alloc for cmd_text buffer

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

19 years agoreduced client memory usage by 29MB by making cl_max_entities dynamic (starts out...
havoc [Tue, 5 Apr 2005 11:15:45 +0000 (11:15 +0000)]
reduced client memory usage by 29MB by making cl_max_entities dynamic (starts out at 256)
cleaned up cl_num_entities to be more generally useful, it is only increased by network entities, this should speed up some code (by using cl_num_entities instead of MAX_EDICTS or cl_max_entities)

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

19 years agofixed a unintended-water-scroll bug on transparent fullbright surfaces
havoc [Mon, 4 Apr 2005 19:33:09 +0000 (19:33 +0000)]
fixed a unintended-water-scroll bug on transparent fullbright surfaces

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

19 years agofix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex...
havoc [Mon, 4 Apr 2005 18:46:20 +0000 (18:46 +0000)]
fix gl_combine 0 crashes (it was indexing the color vector as if it was a vertex property... wrong!)

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

19 years agooptimized surface rendering to surface->groupmesh->data_* array pointers directly...
havoc [Mon, 4 Apr 2005 16:01:17 +0000 (16:01 +0000)]
optimized surface rendering to surface->groupmesh->data_* array pointers directly instead of indexing them with surface->num_firstvertex, this allows fewer pointer changes (a small speed gain)
fixed stupid bug in q1bsp texture loading which was making all missing textures invisible
changed portal generation to not break when a portal is clipped away, this fixes a crash at render time with bogus portals
changed r_drawportals to only draw portals surrounding the visible leafs (speed gain, but also useful for debugging vis glitches)

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

19 years agoFixed getserversResponse parsing:
molivier [Mon, 4 Apr 2005 14:51:56 +0000 (14:51 +0000)]
Fixed getserversResponse parsing:
* serverquerycount was incremented even when it didn't query this server
* if the list contained a server that was already queried, the remaining servers were ignored

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

19 years ago-ServerList: Changed some if-else-chains to switch constructs.
black [Mon, 4 Apr 2005 13:03:54 +0000 (13:03 +0000)]
-ServerList: Changed some if-else-chains to switch constructs.
-Added a pointer check (!= NULL) to VM_strunzone.

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

19 years agoRemoved LoadLMPAs8Bit; the menu now uses LoadLMP directly
molivier [Mon, 4 Apr 2005 08:26:46 +0000 (08:26 +0000)]
Removed LoadLMPAs8Bit; the menu now uses LoadLMP directly

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

19 years agoFactorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const
molivier [Mon, 4 Apr 2005 05:40:51 +0000 (05:40 +0000)]
Factorized LoadLMP and LoadLMPAs8Bit. Made a bunch of buffers const

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

19 years ago-Changed HostCache to ServerList (and a few other pure name changes)
black [Sun, 3 Apr 2005 10:12:18 +0000 (10:12 +0000)]
-Changed HostCache to ServerList (and a few other pure name changes)

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

19 years agoAdded Quake 2 sprite support (.sp2 files). Added the corresponding QC extension ...
molivier [Sun, 3 Apr 2005 08:26:14 +0000 (08:26 +0000)]
Added Quake 2 sprite support (.sp2 files). Added the corresponding QC extension (DP_QUAKE2_SPRITE)

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

19 years agorewrote parts of Host_ServerFrame to make host_framerate cvar work again for The...
havoc [Sat, 2 Apr 2005 18:25:26 +0000 (18:25 +0000)]
rewrote parts of Host_ServerFrame to make host_framerate cvar work again for The Ascension Of Vigil

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

19 years agofix hl sprite types again
havoc [Sat, 2 Apr 2005 17:38:45 +0000 (17:38 +0000)]
fix hl sprite types again

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

19 years agofixed hl sprite types to properly handle the palette in each mode
havoc [Sat, 2 Apr 2005 16:49:28 +0000 (16:49 +0000)]
fixed hl sprite types to properly handle the palette in each mode

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

19 years agofixed hl sprite additive mode
havoc [Sat, 2 Apr 2005 16:20:34 +0000 (16:20 +0000)]
fixed hl sprite additive mode

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

19 years agofix hl sprite loading (stupid typo in handling sprite types)
havoc [Sat, 2 Apr 2005 16:04:10 +0000 (16:04 +0000)]
fix hl sprite loading (stupid typo in handling sprite types)

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

19 years ago-Now a server is never pinged more than once.
black [Sat, 2 Apr 2005 12:05:05 +0000 (12:05 +0000)]
-Now a server is never pinged more than once.
-Fixed the color code function.

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

19 years agoUpdated a few entries in the todo file
molivier [Thu, 31 Mar 2005 16:08:23 +0000 (16:08 +0000)]
Updated a few entries in the todo file

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

19 years agofix incompatible types warnings (and change pointer_* fields back to void *)
havoc [Thu, 31 Mar 2005 09:50:43 +0000 (09:50 +0000)]
fix incompatible types warnings (and change pointer_* fields back to void *)

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

19 years agoRemoved GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"
molivier [Thu, 31 Mar 2005 05:41:44 +0000 (05:41 +0000)]
Removed GL_OpenLibrary and GL_CloseLibrary from "vid.h" and "vid_null.c"

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

19 years agochanged array pointer state to const float * instead of const void *
havoc [Wed, 30 Mar 2005 23:23:14 +0000 (23:23 +0000)]
changed array pointer state to const float * instead of const void *

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

19 years agoadded a firstvertex parameter to R_Mesh_DrawMesh
havoc [Mon, 28 Mar 2005 12:33:25 +0000 (12:33 +0000)]
added a firstvertex parameter to R_Mesh_DrawMesh

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

19 years agosave some memory by not allocating neighbors for q1bsp and q3bsp meshlists
havoc [Mon, 28 Mar 2005 12:16:48 +0000 (12:16 +0000)]
save some memory by not allocating neighbors for q1bsp and q3bsp meshlists

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

19 years agochanged surface->mesh to surface->groupmesh and added num_firsttriangle and num_first...
havoc [Mon, 28 Mar 2005 11:32:47 +0000 (11:32 +0000)]
changed surface->mesh to surface->groupmesh and added num_firsttriangle and num_firstvertex fields to msurface_t, this cuts the msurface_t size from 120 bytes to 88 bytes, causing a 3.5% speed gain in a 37000 surface benchmark scene

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

19 years agomoved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure...
havoc [Mon, 28 Mar 2005 06:54:34 +0000 (06:54 +0000)]
moved a number of msurface_t fields to a separate msurface_lightmapinfo_t structure which is allocated only for q1bsp maps, to save some memory and save some memory bandwidth (as these fields are not often accessed)
moved collision triangles/vertices information out of surfmesh_t and into msurface_t

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

19 years agoslight optimizations to bsp renderer
havoc [Mon, 28 Mar 2005 01:46:58 +0000 (01:46 +0000)]
slight optimizations to bsp renderer

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

19 years agoremoved an unneeded CHECKGLERROR
havoc [Mon, 28 Mar 2005 01:43:43 +0000 (01:43 +0000)]
removed an unneeded CHECKGLERROR

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

19 years agofixed backwards bumps in r_shadow_glsl 1 mode
havoc [Sun, 27 Mar 2005 09:15:59 +0000 (09:15 +0000)]
fixed backwards bumps in r_shadow_glsl 1 mode

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

19 years agoimplemented tag attachments on skeletal .zym models and centralized the code dealing...
havoc [Sun, 27 Mar 2005 08:22:05 +0000 (08:22 +0000)]
implemented tag attachments on skeletal .zym models and centralized the code dealing with tags in model_alias.c

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

19 years agoadded comments to the bloom code in R_BlendView to try to explain how it works
havoc [Fri, 25 Mar 2005 11:35:48 +0000 (11:35 +0000)]
added comments to the bloom code in R_BlendView to try to explain how it works

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

19 years agorearranged stale worldmodel removal a bit so that trying to load a level that doesn...
havoc [Thu, 24 Mar 2005 14:49:39 +0000 (14:49 +0000)]
rearranged stale worldmodel removal a bit so that trying to load a level that doesn't exist doesn't mess up things on a server due to a partial reload

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

19 years agofixed skybox texture leak on level changes
havoc [Thu, 24 Mar 2005 14:48:06 +0000 (14:48 +0000)]
fixed skybox texture leak on level changes

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

19 years agodisabled item bobbing by default
havoc [Wed, 23 Mar 2005 07:10:17 +0000 (07:10 +0000)]
disabled item bobbing by default

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

19 years agoview_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when...
havoc [Wed, 23 Mar 2005 00:16:28 +0000 (00:16 +0000)]
view_ofs now affects intermission cameras, mods usually set view_ofs to '0 0 0' when going to intermission so this won't break anything, but allows Nexuiz to freeze frame the final moment with players still standing where they were

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

19 years agofix decal fading so they really DO disappear eventually now, rather than hogging...
havoc [Wed, 23 Mar 2005 00:15:03 +0000 (00:15 +0000)]
fix decal fading so they really DO disappear eventually now, rather than hogging particle slots for all time

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

19 years agofixed two more signed/unsigned mismatches
havoc [Mon, 21 Mar 2005 20:47:01 +0000 (20:47 +0000)]
fixed two more signed/unsigned mismatches

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

19 years agofix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)
havoc [Mon, 21 Mar 2005 09:58:21 +0000 (09:58 +0000)]
fix 3 NULL vertex pointer crashes (caused by R_Mesh_State lingering where it shouldn't)

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

19 years agofix a bug in R_Mesh_Finish introduced by the unsigned int i fix
havoc [Mon, 21 Mar 2005 09:57:52 +0000 (09:57 +0000)]
fix a bug in R_Mesh_Finish introduced by the unsigned int i fix

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

19 years agofix two runaway loops caused by unsigned int i
havoc [Mon, 21 Mar 2005 09:14:57 +0000 (09:14 +0000)]
fix two runaway loops caused by unsigned int i

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

19 years agoAdded Mac OS X support to the makefiles. Note that the client doesn't compile yet...
molivier [Mon, 21 Mar 2005 08:44:35 +0000 (08:44 +0000)]
Added Mac OS X support to the makefiles. Note that the client doesn't compile yet since some files are still missing (vid_agl.c mainly)

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

19 years agoMoved some particles texture initialization loops in a separate function to work...
molivier [Mon, 21 Mar 2005 08:42:59 +0000 (08:42 +0000)]
Moved some particles texture initialization loops in a separate function to work around an optimization bug in Mac OS X's GCC

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

19 years agomore unsigned (i/j/size variables)
havoc [Mon, 21 Mar 2005 04:23:14 +0000 (04:23 +0000)]
more unsigned (i/j/size variables)

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

19 years agoless unsigned
havoc [Mon, 21 Mar 2005 04:21:08 +0000 (04:21 +0000)]
less unsigned

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

19 years agomore unsigned
havoc [Mon, 21 Mar 2005 04:18:57 +0000 (04:18 +0000)]
more unsigned

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

19 years agochanged ActiveTexture and ClientActiveTexture to take unsigned
havoc [Mon, 21 Mar 2005 04:17:27 +0000 (04:17 +0000)]
changed ActiveTexture and ClientActiveTexture to take unsigned

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

19 years agochanged a few things to unsigned
havoc [Mon, 21 Mar 2005 04:12:59 +0000 (04:12 +0000)]
changed a few things to unsigned

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

19 years agosurface renderer now does less R_Mesh_State calls, opting instead to change only...
havoc [Mon, 21 Mar 2005 02:05:08 +0000 (02:05 +0000)]
surface renderer now does less R_Mesh_State calls, opting instead to change only individual pieces of state

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

19 years agoadded R_Mesh_ functions for setting individual parts of state, to allow faster state...
havoc [Mon, 21 Mar 2005 02:03:44 +0000 (02:03 +0000)]
added R_Mesh_ functions for setting individual parts of state, to allow faster state changes in surface renderer

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

19 years agoadded 1f and 4f glTexCoord/glMultiTexCoord function declarations
havoc [Mon, 21 Mar 2005 02:02:05 +0000 (02:02 +0000)]
added 1f and 4f glTexCoord/glMultiTexCoord function declarations

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

19 years agofix PBLEND_MOD in fog
havoc [Mon, 21 Mar 2005 00:52:57 +0000 (00:52 +0000)]
fix PBLEND_MOD in fog

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

19 years agoreduced particle struct size (now 32768 particles is 3MB instead of about 3.8MB)...
havoc [Sat, 19 Mar 2005 05:45:24 +0000 (05:45 +0000)]
reduced particle struct size (now 32768 particles is 3MB instead of about 3.8MB) by merging/removing some fields (and adding type structs to define rendering properties based on type to save a little space)
removed 11 parameters to particle() function

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

19 years agofix a warning
havoc [Sat, 19 Mar 2005 02:14:11 +0000 (02:14 +0000)]
fix a warning

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

19 years agomade detailtextures check r_detailtextures again
havoc [Sat, 19 Mar 2005 02:11:44 +0000 (02:11 +0000)]
made detailtextures check r_detailtextures again

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

19 years agoadded GAME_THEHUNTED
havoc [Sat, 19 Mar 2005 02:10:54 +0000 (02:10 +0000)]
added GAME_THEHUNTED

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

19 years agoremoved r_floatbuildlightmaps cvar and related code (since it was only useful to...
havoc [Fri, 18 Mar 2005 02:04:25 +0000 (02:04 +0000)]
removed r_floatbuildlightmaps cvar and related code (since it was only useful to dlights)

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

19 years agogot rid of aliasskin/aliaslayer system for rendering models, now uses texture_t like...
havoc [Fri, 18 Mar 2005 01:58:31 +0000 (01:58 +0000)]
got rid of aliasskin/aliaslayer system for rendering models, now uses texture_t like maps do

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

19 years agoWell, you might not like this change, but I dont like it the way it is, so
black [Thu, 17 Mar 2005 18:57:45 +0000 (18:57 +0000)]
Well, you might not like this change, but I dont like it the way it is, so
it's up to you to fix it in a convenient way.
I certainly dont want to have my config files and qconsole.log (and possibly
all other files DP creates) in some linux-style .darkplaces folder(!) somewhere
hidden in my CVS home directory.

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

19 years agoq3 shader parsing now sets more materialflags (such as transparency)
havoc [Thu, 17 Mar 2005 10:17:07 +0000 (10:17 +0000)]
q3 shader parsing now sets more materialflags (such as transparency)

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

19 years agoremoved a lot of renderer cruft (such as 48% of gl_rsurf.c) as a result of the previo...
havoc [Thu, 17 Mar 2005 07:21:18 +0000 (07:21 +0000)]
removed a lot of renderer cruft (such as 48% of gl_rsurf.c) as a result of the previous commit

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

19 years agomerged q1bsp and q3bsp surface rendering
havoc [Thu, 17 Mar 2005 07:11:41 +0000 (07:11 +0000)]
merged q1bsp and q3bsp surface rendering
disabled MarkLights based dlights (lightmap dlights, etc) because they're just too hard to maintain (broken AGAIN), and the code for them will be removed soon
renamed r_shadow_whitetexture and related textures to r_texture_white and such, and moved them to gl_rmain for more general use

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

19 years agoHost_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame...
havoc [Tue, 15 Mar 2005 18:42:23 +0000 (18:42 +0000)]
Host_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame yet (this means if it crashes during the first frame it won't save a config)

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

19 years agoWillis updated map list in GAME_TRANSFUSION menus
havoc [Tue, 15 Mar 2005 18:12:44 +0000 (18:12 +0000)]
Willis updated map list in GAME_TRANSFUSION menus

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

19 years agonow searchs LAN for servers (using a broadcast message to port 26000) like Quake did
havoc [Tue, 15 Mar 2005 00:12:19 +0000 (00:12 +0000)]
now searchs LAN for servers (using a broadcast message to port 26000) like Quake did

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