18 years agofixed models getting dark in the distance when fogged bug (thanks to Elric for report...
havoc [Fri, 30 Aug 2002 09:33:04 +0000 (09:33 +0000)]
fixed models getting dark in the distance when fogged bug (thanks to Elric for reporting this, trivial fix, was a silly mistake on my part)

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

18 years agofixed bug which caused all models to be untextured if they used internal skins
havoc [Fri, 30 Aug 2002 02:20:42 +0000 (02:20 +0000)]
fixed bug which caused all models to be untextured if they used internal skins

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

18 years agodraw models which have no textures using the notexture checkerboard
havoc [Fri, 30 Aug 2002 02:06:14 +0000 (02:06 +0000)]
draw models which have no textures using the notexture checkerboard

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

18 years agosupport for loading external skins that don't exist inside the model
havoc [Fri, 30 Aug 2002 01:27:17 +0000 (01:27 +0000)]
support for loading external skins that don't exist inside the model

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

18 years agofixed viewmodel (it wasn't drawing because it's matrix was empty), fixed a bug with...
havoc [Thu, 29 Aug 2002 14:14:34 +0000 (14:14 +0000)]
fixed viewmodel (it wasn't drawing because it's matrix was empty), fixed a bug with scaling in Matrix4x4_CreateFromQuakeEntity (and Matrix3x4 to match), added some extra code to Matrix4x4_Invert_Simple (and Matrix3x4) to further clarify the scaling inversion

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

18 years agofixed crash when ent->skinnum >= model->numskins
havoc [Thu, 29 Aug 2002 12:45:24 +0000 (12:45 +0000)]
fixed crash when ent->skinnum >= model->numskins

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

18 years agospeed gain in lightmap updates
havoc [Thu, 29 Aug 2002 12:44:34 +0000 (12:44 +0000)]
speed gain in lightmap updates

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

18 years agooptimizations to rendering
havoc [Wed, 28 Aug 2002 14:33:20 +0000 (14:33 +0000)]
optimizations to rendering
particle lighting is no longer supported, sorry
particle visibility is no longer checked, it was wasting too much time

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

18 years agofix various fog bugs, and also fix missing colormap layer bugs (specifically if the...
havoc [Wed, 28 Aug 2002 13:35:31 +0000 (13:35 +0000)]
fix various fog bugs, and also fix missing colormap layer bugs (specifically if the base/merged texture is missing, as it is on a lava ball for instance)

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

18 years agono more m.transparent, transparent surfaces are sorted using MeshQueue now
havoc [Wed, 28 Aug 2002 12:56:12 +0000 (12:56 +0000)]
no more m.transparent, transparent surfaces are sorted using MeshQueue now
glow textures were being rendered using detail texture coordinates, fixed

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

18 years agoadded lighting options (and explosion clipping) to effects options menu
havoc [Wed, 28 Aug 2002 12:14:11 +0000 (12:14 +0000)]
added lighting options (and explosion clipping) to effects options menu

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

18 years agomost of the framework for hardware accelerated transforms is back, just the actual...
havoc [Wed, 28 Aug 2002 11:56:00 +0000 (11:56 +0000)]
most of the framework for hardware accelerated transforms is back, just the actual gl calls need to be put in, but that will be a later commit
gl_backend internal mesh structure now has a matrix stored in it
entity_render_t now has a matrix and a inverse matrix
many additions of const to various functions, this required restructuring some code
transparent mesh sorting is gone, this also means subsorting of triangles by depth is gone (meshqueue should be used for transparent mesh sorting, I have not yet written a new triangle sorter)
rewrote RSurf_ shader functions *yet again*, they are now more compact and share code (by way of using lots of function calls)
lots of changes/bugfixes/additions to matrixlib.c and .h, including an actual working Matrix4x4_Invert_Simple function
added gl_flashblend (brightens and enlarges coronas, turns off all actual lighting)
added r_coronas (can turn off coronas)

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

18 years agogot rid of dlightradius variable which was never actually used
havoc [Wed, 28 Aug 2002 06:46:21 +0000 (06:46 +0000)]
got rid of dlightradius variable which was never actually used

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

18 years agoliquid now goes through meshqueue sorting
havoc [Tue, 27 Aug 2002 11:59:28 +0000 (11:59 +0000)]
liquid now goes through meshqueue sorting
fixed a bunch of minor sorting consistency bugs in the meshqueue code
changed behavior of R_MeshQueue_EndScene and exposed R_MeshQueue_Render and R_MeshQueue_RenderTransparent
cleaned up liquid rendering code a bit

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

18 years agoforgot a m.transparent = in the last commit, and removed a comment
havoc [Tue, 27 Aug 2002 10:04:57 +0000 (10:04 +0000)]
forgot a m.transparent = in the last commit, and removed a comment

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

18 years agogot rid of lots of unnecessary m.transparent = lines, as well as some depthdisable...
havoc [Tue, 27 Aug 2002 09:49:54 +0000 (09:49 +0000)]
got rid of lots of unnecessary m.transparent = lines, as well as some depthdisable =, and depthwrite =

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

18 years agoengine mostly converted to use R_MeshQueue functions instead of true transparent...
havoc [Tue, 27 Aug 2002 09:42:59 +0000 (09:42 +0000)]
engine mostly converted to use R_MeshQueue functions instead of true transparent meshs, this meant getting rid of currentrenderentity
the rest of the conversion to R_MeshQueue will be in a future commit, just wanted to get this in now

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

18 years agoAdded a new cvar sv_echobprint which controls the printing of broadcast messages...
molivier [Mon, 26 Aug 2002 14:00:56 +0000 (14:00 +0000)]
Added a new cvar sv_echobprint which controls the printing of broadcast messages in dedicated server mode. It's on by default.

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

18 years agoFixed a potential buffer overflow in Con_DebugLog
molivier [Mon, 26 Aug 2002 06:24:30 +0000 (06:24 +0000)]
Fixed a potential buffer overflow in Con_DebugLog

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

18 years agorenamed mesh_ variables to gl_state. (created a struct for this purpose)
havoc [Mon, 26 Aug 2002 05:40:47 +0000 (05:40 +0000)]
renamed mesh_ variables to gl_state. (created a struct for this purpose)

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

18 years agogot rid of R_Mesh_Draw and R_Mesh_DrawPolygon, now all 3D geometry is drawn using...
havoc [Sun, 25 Aug 2002 15:45:41 +0000 (15:45 +0000)]
got rid of R_Mesh_Draw and R_Mesh_DrawPolygon, now all 3D geometry is drawn using R_Mesh_Draw_GetBuffer and R_Mesh_Render

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

18 years agobatching is gone.
havoc [Sun, 25 Aug 2002 12:26:23 +0000 (12:26 +0000)]
batching is gone.
if you forget to call R_Mesh_Render after each mesh the backend system will yell at you.

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

18 years agomonster movement interpolation now works in both protocols (shared code), this bloate...
havoc [Sun, 25 Aug 2002 11:12:01 +0000 (11:12 +0000)]
monster movement interpolation now works in both protocols (shared code), this bloated the entity persistent struct a bit more unfortunately

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

18 years agodetail texturing added (although with just one generated texture applied to everything)
havoc [Sat, 24 Aug 2002 07:14:15 +0000 (07:14 +0000)]
detail texturing added (although with just one generated texture applied to everything)
detail texturing makes use of up to 3 texture units if you have combine
detail texturing added to effects options menu (r_detailtextures cvar)
surfvertex_t now has another set of texcoords, for detail texturing
Mod_BrushStartup and Mod_BrushShutdown functions added to alloc/free the detail texture
r_multitexture cvar renamed to r_textureunits, so you can limit number of texture units enabled for testing, rather than just as a yes/no kind of option
gl_combine is forced to 0 if r_textureunits is less than 2 (this is purely for consistency, not of any importance)
split up the wall rendering into two kinds - vertex lit with optional transparency, and opaque lightmapped with no support for transparency
R_Mesh_Draw_GetBuffer now takes a wantoverbrights parameter, if false it will not use the 4x overbright (even if combine is enabled), this is useful to improve the color precision of anything which does not need overbright
fixed crosshair brightness (it was unintentionally adjusting the alpha using m.colorscale just like the RGB portion of the color)
sprites only use overbright if they are lit (normal unlit sprites are rendered without overbright)

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

18 years agoremoved check for registered.integer in GAME_NORMAL naming (this means it just says...
havoc [Fri, 23 Aug 2002 06:12:01 +0000 (06:12 +0000)]
removed check for registered.integer in GAME_NORMAL naming (this means it just says DarkPlaces-Quake whether the game is registered or not)
removed support for games FiendArena (because I have not heard from the author in a long time) and Zymotic (because the game was canceled long ago)

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

18 years agoFinally got rid of the last TRANSFUSION define (the key binding menu is determined...
molivier [Fri, 23 Aug 2002 06:04:40 +0000 (06:04 +0000)]
Finally got rid of the last TRANSFUSION define (the key binding menu is determined at runtime now). Also a few maps won't make it for the 1.0 release, so they've been removed from the map list.

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

18 years agoadded DP_SV_SLOWMO to extensions list
havoc [Thu, 22 Aug 2002 22:24:17 +0000 (22:24 +0000)]
added DP_SV_SLOWMO to extensions list

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

18 years agomade stains more small and focused
havoc [Thu, 22 Aug 2002 21:58:33 +0000 (21:58 +0000)]
made stains more small and focused

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

18 years agoworkaround for gcc -funroll-loops bug with RLE compressed TGA, fixed LoadTGA (by...
havoc [Thu, 22 Aug 2002 07:30:58 +0000 (07:30 +0000)]
workaround for gcc -funroll-loops bug with RLE compressed TGA, fixed LoadTGA (by rewriting it), probably faster now too

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

18 years agoDisabled crosshair during intermission
molivier [Thu, 22 Aug 2002 06:13:21 +0000 (06:13 +0000)]
Disabled crosshair during intermission

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

18 years agoFixed GetModuleFileName call
molivier [Wed, 21 Aug 2002 11:26:14 +0000 (11:26 +0000)]
Fixed GetModuleFileName call

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

18 years agoRefixed COM_StripExtension :oP
molivier [Wed, 21 Aug 2002 11:24:46 +0000 (11:24 +0000)]
Refixed COM_StripExtension  :oP

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

18 years agothis should fix the program name in com_argv[0], so detection of which game to run...
havoc [Wed, 21 Aug 2002 09:43:39 +0000 (09:43 +0000)]
this should fix the program name in com_argv[0], so detection of which game to run based on executable name should work now, thanks to Elric for reporting the bug

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

18 years agochange default com_basedir to "." to fix the game when not using -basedir, oops....
havoc [Wed, 21 Aug 2002 09:23:43 +0000 (09:23 +0000)]
change default com_basedir to "." to fix the game when not using -basedir, oops.  thanks to Elric for the bug report.

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

18 years agoFixed COM_StripExtension for strings without a single dot
molivier [Wed, 21 Aug 2002 07:49:50 +0000 (07:49 +0000)]
Fixed COM_StripExtension for strings without a single dot

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

18 years agoStatic/floating crosshair is now an option controled by the cvar "crosshair_static"
molivier [Wed, 21 Aug 2002 07:47:52 +0000 (07:47 +0000)]
Static/floating crosshair is now an option controled by the cvar "crosshair_static"

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

18 years agono more warping meshs of any kind
havoc [Wed, 21 Aug 2002 00:10:30 +0000 (00:10 +0000)]
no more warping meshs of any kind
sky is always of the masked variety if enabled at all
water does not move
R_Mesh_Draw is no longer used by gl_rsurf at all

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

18 years agocorrected spelling of alorgithm
havoc [Tue, 20 Aug 2002 22:47:31 +0000 (22:47 +0000)]
corrected spelling of alorgithm

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

18 years agofixed menu player colormapping
havoc [Tue, 20 Aug 2002 20:24:31 +0000 (20:24 +0000)]
fixed menu player colormapping

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

18 years agochanged color command description to mention it is 0-15 range, not 0-13
havoc [Tue, 20 Aug 2002 19:54:39 +0000 (19:54 +0000)]
changed color command description to mention it is 0-15 range, not 0-13

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

18 years agogot rid of host_parms
havoc [Tue, 20 Aug 2002 08:28:01 +0000 (08:28 +0000)]
got rid of host_parms
added com_basedir
cleaned up gamedir related code

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

18 years agogot rid of host_parms.argc and argv, now uses com_argc and com_argv directly
havoc [Tue, 20 Aug 2002 07:08:40 +0000 (07:08 +0000)]
got rid of host_parms.argc and argv, now uses com_argc and com_argv directly

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

18 years agocleaned up and merged a lot of sys_*.c code into sys_shared.c
havoc [Tue, 20 Aug 2002 03:13:02 +0000 (03:13 +0000)]
cleaned up and merged a lot of sys_*.c code into sys_shared.c

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

18 years agocentered Sbar_IntermissionOverlay
havoc [Tue, 20 Aug 2002 02:57:12 +0000 (02:57 +0000)]
centered Sbar_IntermissionOverlay

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

18 years agosys_usetimegettime is now initialized at a place where it shouldn't crash anymore...
havoc [Tue, 20 Aug 2002 02:50:38 +0000 (02:50 +0000)]
sys_usetimegettime is now initialized at a place where it shouldn't crash anymore (this should make win32 run again)

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

18 years agoremoved fxmesa support (3dfx svgalib) because no one used it to my knowledge, and...
havoc [Sat, 17 Aug 2002 23:19:47 +0000 (23:19 +0000)]
removed fxmesa support (3dfx svgalib) because no one used it to my knowledge, and it probably did not even work due to poor maintenance
and cleaned up makefile a bit

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

18 years agoupdate client color values when new values are recieved from server
havoc [Fri, 16 Aug 2002 05:59:27 +0000 (05:59 +0000)]
update client color values when new values are recieved from server

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

18 years agoSV_ChangeTeam now actually gets called with the right value
havoc [Fri, 16 Aug 2002 05:57:27 +0000 (05:57 +0000)]
SV_ChangeTeam now actually gets called with the right value

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

18 years agoreformatted and updated extensions list
havoc [Fri, 16 Aug 2002 05:56:27 +0000 (05:56 +0000)]
reformatted and updated extensions list

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

18 years agofix alignment of frag list, it is now centered
havoc [Fri, 16 Aug 2002 05:55:25 +0000 (05:55 +0000)]
fix alignment of frag list, it is now centered

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

18 years agochanged GL_MATRIX_MODE check to GL_PROJECTION, and removed GL_MATRIX_MODE define...
havoc [Fri, 16 Aug 2002 05:53:28 +0000 (05:53 +0000)]
changed GL_MATRIX_MODE check to GL_PROJECTION, and removed GL_MATRIX_MODE define, this should be more compatible in identifying odd gl.h's

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

18 years agoonly warn about time stepping backwards if it's more than 10ms
havoc [Thu, 15 Aug 2002 19:00:31 +0000 (19:00 +0000)]
only warn about time stepping backwards if it's more than 10ms

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

18 years agoadded support for .colormap values >= 1024 in QC to mean direct color specification...
havoc [Thu, 15 Aug 2002 18:53:25 +0000 (18:53 +0000)]
added support for .colormap values >= 1024 in QC to mean direct color specification (two 0-15 values, just like SV_ChangeTeam and setcolor use)

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

18 years agocvar_vars is no longer known by files other than cvar.c, this meant adding a Cvar_Fin...
havoc [Thu, 15 Aug 2002 18:51:33 +0000 (18:51 +0000)]
cvar_vars is no longer known by files other than cvar.c, this meant adding a Cvar_FindVarAfter function to keep the server queries working correctly

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

18 years agoturned #define WIN32_USETIMEGETTIME into a cvar named sys_usetimegettime, default...
havoc [Thu, 15 Aug 2002 18:49:43 +0000 (18:49 +0000)]
turned #define WIN32_USETIMEGETTIME into a cvar named sys_usetimegettime, default on (used to be off by default), can be changed at any time

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

18 years agoreset stack position when new progs loaded, or error occurs
havoc [Wed, 14 Aug 2002 23:48:14 +0000 (23:48 +0000)]
reset stack position when new progs loaded, or error occurs

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

18 years agochanged fps counter behavior to be more 'traditional' (count how many frames go by...
havoc [Wed, 14 Aug 2002 23:29:34 +0000 (23:29 +0000)]
changed fps counter behavior to be more 'traditional' (count how many frames go by in a given amount of time), this means 3 modes are now available for showfps...
showfps 1 - count frames
showfps 2 - average of recent frame times
showfps 3 - most recent frame time only

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

18 years ago(patch from Elric) BloodBath renamed to Transfusion
havoc [Sat, 10 Aug 2002 16:51:30 +0000 (16:51 +0000)]
(patch from Elric) BloodBath renamed to Transfusion

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

18 years agoconverted particle rendering to use R_Mesh_Draw_GetBuffer
havoc [Sat, 10 Aug 2002 16:29:27 +0000 (16:29 +0000)]
converted particle rendering to use R_Mesh_Draw_GetBuffer

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

18 years agonow uses R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 23:20:25 +0000 (23:20 +0000)]
now uses R_Mesh_Draw_GetBuffer

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

18 years agochanged viewblend to use R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 23:13:48 +0000 (23:13 +0000)]
changed viewblend to use R_Mesh_Draw_GetBuffer

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

18 years agoconverted coronas to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:45:03 +0000 (22:45 +0000)]
converted coronas to R_Mesh_Draw_GetBuffer

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

18 years agoconverted skysphere to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:19:54 +0000 (22:19 +0000)]
converted skysphere to R_Mesh_Draw_GetBuffer

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

18 years agochanged a bunch of #if 1's to #if USEMESHBUFFER (which is 1)
havoc [Fri, 9 Aug 2002 22:03:28 +0000 (22:03 +0000)]
changed a bunch of #if 1's to #if USEMESHBUFFER (which is 1)

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

18 years agoskybox now uses R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 22:02:06 +0000 (22:02 +0000)]
skybox now uses R_Mesh_Draw_GetBuffer

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

18 years agore-enable optimizations by default
havoc [Fri, 9 Aug 2002 22:01:25 +0000 (22:01 +0000)]
re-enable optimizations by default

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

18 years agoconverted code to use R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 21:48:19 +0000 (21:48 +0000)]
converted code to use R_Mesh_Draw_GetBuffer

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

18 years agoconverted drawing code from R_Mesh_Draw to R_Mesh_Draw_GetBuffer
havoc [Fri, 9 Aug 2002 21:47:11 +0000 (21:47 +0000)]
converted drawing code from R_Mesh_Draw to R_Mesh_Draw_GetBuffer

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

18 years agorewrote most of the RSurfShader_ functions to use R_Mesh_Draw_GetBuffer instead of...
havoc [Fri, 9 Aug 2002 21:14:12 +0000 (21:14 +0000)]
rewrote most of the RSurfShader_ functions to use R_Mesh_Draw_GetBuffer instead of R_Mesh_Draw

r_modellights replaced r_lightmodels, r_modellights sets limit on how many directional lights will be shaded onto the model (only the brightest are chosen)

cleaned up lighting code a lot, it is now consistent between static and dynamic light sources, and the light radius has been reduced

unfortunately this commit seems to have slowed down the engine a bit, and I don't know why, it should be a speed gain

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

18 years agofixed r_drawentities 0 which was forgetting to enlarge the farclip based on the world...
havoc [Wed, 7 Aug 2002 20:31:56 +0000 (20:31 +0000)]
fixed r_drawentities 0 which was forgetting to enlarge the farclip based on the world bounding box

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

18 years agosupport for top to bottom TGA, thanks Elric.
havoc [Wed, 7 Aug 2002 20:09:46 +0000 (20:09 +0000)]
support for top to bottom TGA, thanks Elric.

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

18 years agoadded r_sortsurfaces cvar, default off, sorting them seems to be a very minor slowdow...
havoc [Tue, 6 Aug 2002 16:35:51 +0000 (16:35 +0000)]
added r_sortsurfaces cvar, default off, sorting them seems to be a very minor slowdown ingame for me

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

18 years agofix for the effects menu input code, thanks Elric
havoc [Tue, 6 Aug 2002 16:04:57 +0000 (16:04 +0000)]
fix for the effects menu input code, thanks Elric

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

18 years agofix for 'falling' in a corner bug, thanks to Elric for finding the fix for this.
havoc [Tue, 6 Aug 2002 16:01:46 +0000 (16:01 +0000)]
fix for 'falling' in a corner bug, thanks to Elric for finding the fix for this.
also removed a SOLID_BSP check that shouldn't be there anymore.

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

18 years agospawned entities were often not appearing in quake protocol (demos), oops
havoc [Mon, 5 Aug 2002 23:23:53 +0000 (23:23 +0000)]
spawned entities were often not appearing in quake protocol (demos), oops

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

18 years agothe -I and -L weren't necessary (and didn't work anyway)
havoc [Mon, 5 Aug 2002 19:57:04 +0000 (19:57 +0000)]
the -I and -L  weren't necessary (and didn't work anyway)

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

18 years agofix for double to float warning in MSVC
havoc [Mon, 5 Aug 2002 19:18:15 +0000 (19:18 +0000)]
fix for double to float warning in MSVC

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

18 years agoconsistency fix for GL_EXT_draw_range_elements - don't be silent about missing functi...
havoc [Mon, 5 Aug 2002 19:17:28 +0000 (19:17 +0000)]
consistency fix for GL_EXT_draw_range_elements - don't be silent about missing functions if the extension is reported

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

18 years agoa rather hefty 6% speed gain by getting rid of the R_Mesh_UpdateFarClip function...
havoc [Mon, 5 Aug 2002 13:28:26 +0000 (13:28 +0000)]
a rather hefty 6% speed gain by getting rid of the R_Mesh_UpdateFarClip function, and reorganizing it to use bounding boxes instead (outside of gl_backend even)

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

18 years agoR_GetTexture is now named R_RealGetTexture, R_GetTexture is a macro which hardly...
havoc [Mon, 5 Aug 2002 12:16:44 +0000 (12:16 +0000)]
R_GetTexture is now named R_RealGetTexture, R_GetTexture is a macro which hardly ever calls R_RealGetTexture - this is a nice speed gain, cutting out about 2.3 million calls during timedemo bigass1

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

18 years agoremoved procedural texture support because it was inefficient where it was implemente...
havoc [Mon, 5 Aug 2002 11:54:28 +0000 (11:54 +0000)]
removed procedural texture support because it was inefficient where it was implemented - it can be implemented more efficiently in renderer code than in R_GetTexture

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

18 years agolightmaps shouldn't be procedural, because they have no generate function anyway...
havoc [Mon, 5 Aug 2002 11:40:14 +0000 (11:40 +0000)]
lightmaps shouldn't be procedural, because they have no generate function anyway (and are therefore not self-animating)

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

18 years agoattempt to optimize SND_PaintChannelFrom8 a little bit
havoc [Mon, 5 Aug 2002 11:39:08 +0000 (11:39 +0000)]
attempt to optimize SND_PaintChannelFrom8 a little bit

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

18 years agofix view_ofs when dead (negative viewheight)
havoc [Mon, 5 Aug 2002 11:11:52 +0000 (11:11 +0000)]
fix view_ofs when dead (negative viewheight)

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

18 years agoremoved support for r_ser (also known as R_Clip or "Hidden Surface Removal") as it...
havoc [Mon, 5 Aug 2002 10:58:27 +0000 (10:58 +0000)]
removed support for r_ser (also known as R_Clip or "Hidden Surface Removal") as it was a slowdown for everyone I know of

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

18 years agoan optimization to CL_RelinkNetworkEntities (and related code) which increases perfor...
havoc [Mon, 5 Aug 2002 10:20:25 +0000 (10:20 +0000)]
an optimization to CL_RelinkNetworkEntities (and related code) which increases performance by 5%
(store the ent->state_current.active flags in a separate array to use less memory bandwidth)

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

18 years agooptimized phys_moveentities (in cgame.c) so it doesn't waste so much time
havoc [Mon, 5 Aug 2002 09:47:21 +0000 (09:47 +0000)]
optimized phys_moveentities (in cgame.c) so it doesn't waste so much time

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

18 years agofix svc_setview
havoc [Sun, 4 Aug 2002 20:07:11 +0000 (20:07 +0000)]
fix svc_setview

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

18 years agomoved the GL_CloseLibrary call a bit
havoc [Sun, 4 Aug 2002 20:04:22 +0000 (20:04 +0000)]
moved the GL_CloseLibrary call a bit

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

18 years agofix mouse in win32, I had forgotten to update a lot of code
havoc [Sun, 4 Aug 2002 19:37:09 +0000 (19:37 +0000)]
fix mouse in win32, I had forgotten to update a lot of code

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

18 years agolimit gl_mesh_batchtriangles to never go below 1, because although < 1 works it calls...
havoc [Sun, 4 Aug 2002 15:06:53 +0000 (15:06 +0000)]
limit gl_mesh_batchtriangles to never go below 1, because although < 1 works it calls R_Mesh_Render twice per mesh rather than once

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

18 years agoremoved cl_light.h (which has already been merged into client.h)
havoc [Sat, 3 Aug 2002 21:02:02 +0000 (21:02 +0000)]
removed cl_light.h (which has already been merged into client.h)

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

18 years agonow entirely dynamic OpenGL binding
havoc [Sat, 3 Aug 2002 20:59:29 +0000 (20:59 +0000)]
now entirely dynamic OpenGL binding

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

18 years agoadded r_floatbuildlightmap, unfortunately using floats for the calculations is still...
havoc [Sat, 3 Aug 2002 20:51:07 +0000 (20:51 +0000)]
added r_floatbuildlightmap, unfortunately using floats for the calculations is still ever so slightly slower than integer

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

18 years agooptimized entity updates substantially (or rather, UpdateEnd), nice speedup
havoc [Sat, 3 Aug 2002 20:46:17 +0000 (20:46 +0000)]
optimized entity updates substantially (or rather, UpdateEnd), nice speedup

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

18 years agosome optimizations (notably sparks don't have air friction anymore, which is a signif...
havoc [Sat, 3 Aug 2002 20:44:31 +0000 (20:44 +0000)]
some optimizations (notably sparks don't have air friction anymore, which is a significant speedup to demos), a bit of reorganization

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

18 years agorearranged things a little, mostly related to particles created by EntityParticles...
havoc [Sat, 3 Aug 2002 20:41:12 +0000 (20:41 +0000)]
rearranged things a little, mostly related to particles created by EntityParticles, which should only live one frame

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

18 years agodefault gl_mesh_floatcolors on, and force it off on 3Dfx drivers (sure this is unnece...
havoc [Sat, 3 Aug 2002 20:39:43 +0000 (20:39 +0000)]
default gl_mesh_floatcolors on, and force it off on 3Dfx drivers (sure this is unnecessary unless it is specifically the windows 3Dfx drivers, as surely WickedGL and others work fine, but oh well, 3Dfx cards want byte colors anyway)

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

18 years agoLots of speedups and cleanups in client code, dynamically allocated cl_entities ...
havoc [Sat, 3 Aug 2002 20:34:59 +0000 (20:34 +0000)]
Lots of speedups and cleanups in client code, dynamically allocated cl_entities (and friends), rearranged some things  - sorry this commit is vague, but it's mostly just a lot of rearrangement, cleanup, etc...

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

18 years agocls.spawnparms isn't needed
havoc [Sat, 3 Aug 2002 20:27:54 +0000 (20:27 +0000)]
cls.spawnparms isn't needed

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