Commit graph

80 commits

Author SHA1 Message Date
Jeff Teunissen
40cfa92aa7 The gl_texsort cvar is gone. It did not do anything but disable
multitexture, so I replaced it with a gl_multitexture cvar. It defaults
off. Set gl_multitexture nonzero to enable it, but be warned that
multitexturing and sorted textures are currently incompatible; this means
that if you enable texturing, your textures will not be sorted and you may
or may not get better performance.

Made the following Cvars archived in GL: r_shadows, gl_affinemodels,
gl_cull, gl_flashblend, gl_keeptjunctions, gl_multitexture, gl_particles,
gl_sky_clip, gl_skymultipass, gl_smoothdlights.
2001-01-09 00:45:54 +00:00
Jeff Teunissen
fc005fc215 Cleanup of extensions, they are no longer defined in glquake.h. In
addition, removed support (for now) for SGIS and EXT multitexture. It
allowed me to enhance support for ARB multitexture, which is better anyway
(especially for Radeon, but that won't get special support yet until we
need a third texture pass).

Updated the Unix 8-bit GL code to be more like the Windows version, which
may work better. It still defaults off, because many drivers have bugs in
their handling of the shared texture palette extension.
2001-01-06 07:29:17 +00:00
Bill Currie
ccba39666b #include audit 2000-12-30 02:16:36 +00:00
Jeff Teunissen
52cc1fa218 Whitespace, some optimizations 2000-12-28 09:26:00 +00:00
Bill Currie
8c90357234 subdivided skys are back. it seems some cards don't like big polys.
gl_sky_divide (default 1) controls this.
2000-12-17 22:07:06 +00:00
Jeff Teunissen
54e2a4d9d3 Okay, the big whitespace reformat. There is some silliness (case
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Bill Currie
4ee0be8f91 first step on the way to merged gl_screen.c and screen.c 2000-12-07 11:12:19 +00:00
Bill Currie
7623a08ada don't subdivide sky polys. we don't need it and it only slows us down 2000-12-02 07:41:47 +00:00
Bill Currie
14d5c349fd not there yet. the lines are debug info :) 2000-11-13 01:43:14 +00:00
Bill Currie
7bd99717d2 gl_sky_clip is getting closer to working with skybox. Textures are borked (not
sure if I'm doing something wrong or if gl is having problems with the scale)
and clipping is a little wonky, but I know the reason for that:) Also, it
seems skys aren't always being drawn: probably something wrong in gl_rsurf.
2000-11-10 16:26:40 +00:00
Bill Currie
4057988e1f tree now builds again. Note: this includes some of my sky work, but so long as
gl_sky_clip is not set, it's not working won't affect you :)
2000-10-29 22:02:29 +00:00
Zephaniah E. Hull
13bd5ce012 The init sequence cleanup!
Also broke up client.h into a lot of smaller headers.
Oh, software rendering works again.

And yes, this does hit a hell of a lot of files.
2000-10-29 15:35:24 +00:00
Bill Currie
2682888425 the big cvar value -> int_val audit. seems to work ok 2000-10-17 03:17:42 +00:00
Zephaniah E. Hull
bdb02ef735 Reduced the dynamic light range, might still need tweaking. 2000-10-06 03:28:31 +00:00
Bill Currie
0a8dc3c98f make r_wateralpha actually do something :) 2000-10-05 04:40:16 +00:00
Zephaniah E. Hull
3935e40c3a Killed the mirror code completely. 2000-09-28 07:16:29 +00:00
Zephaniah E. Hull
660b82e3ea Bigger cleanup of glTexEnvf calls. 2000-09-28 07:09:32 +00:00
Zephaniah E. Hull
0b8cf1e303 glTexEnvf audit. 2000-09-28 06:58:24 +00:00
Zephaniah E. Hull
f6bfcfc82d State change cleanup, but saner code! 2000-09-28 00:22:24 +00:00
Jeff Teunissen
cbc9d34954 Back out Chris Ison's patch, make another change for readability (in this
case, 255 << 8 is more readable than 255*256, and was the intent anyway)
2000-09-26 16:15:57 +00:00
Zephaniah E. Hull
68a4e60eaf Behold, the great state audit, and a few other things.
First off, a cleanup in alias model rendering.
Then we have R_CullBox, which is now a inline function.
Then the big one, the state change cleanup, right now GL_BLEND.
2000-09-26 09:03:21 +00:00
Jeff Teunissen
b0fc35b3e3 Apply patch from Chris Ison <wildcode@users.sourceforge.net> with some
changes from me.
2000-09-26 07:53:50 +00:00
Jeff Teunissen
71b841adeb Cvar audit; These files set cvars improperly, by changing their values
without using Cvar_SetValue ().
2000-09-25 06:36:50 +00:00
Zephaniah E. Hull
210ba16069 First off in gl_draw.c we have some nice cleanup code for the upload
code.

Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!

Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
2000-09-22 09:08:08 +00:00
Bill Currie
ddef594b2e gl bmodel fullbrights implemented. I hope. I'll find out for sure when I get
home.
2000-09-20 23:06:26 +00:00
Forest Hale
5ead0237ca Possible fix for ATI multitexture (gl_texsort 0) wall rendering. 2000-07-17 14:12:05 +00:00
Joseph Carter
289cfa557c cosmetic change - FWIW Mercury it's a bug that blend needs to be disabled
there and the bug's not in our code, so don't whack LH too hard.
2000-07-06 07:04:16 +00:00
Zephaniah E. Hull
46855eff2d gl_screen.c:
- Cleanup for the screenshot code.. (Now requires OpenGL 1.2+)

gl_rsurf.c:
 - Oh Mr Havoc, *WHACK*, you needed to disable GL_BLEND when you switch
   to GL_REPLACE..
2000-07-06 03:35:25 +00:00
Dabb
298f23f2c7 Borland C++ uses __int64 too. 2000-07-05 14:31:12 +00:00
Forest Hale
54648f9a93 Rewrote multitexture rendering. (faster, no fullbright bugs) 2000-07-04 09:29:56 +00:00
Bill Currie
d24e28f28b speed up R_RenderBrushPoly ever so slightly 2000-07-04 07:04:46 +00:00
Forest Hale
1dd7a8be0d Fix for the fullbright models. 2000-07-04 06:59:34 +00:00
Forest Hale
225cbaff0d Minor world rendering fixes. 2000-07-04 04:19:06 +00:00
Forest Hale
9f5df4afa6 Possible world rendering speedup. 2000-07-04 02:23:50 +00:00
Forest Hale
51c1db9220 Very minor world rendering optimization. 2000-07-04 00:52:00 +00:00
Forest Hale
5644666f0c Massive dynamic light rendering speedup. 2000-07-02 13:47:00 +00:00
Forest Hale
fdcf20b4a3 Fix for black static lightmaps. (oops, forgot that one too) 2000-07-02 06:40:46 +00:00
Forest Hale
cd0fbe1b52 Fix for black walls. (oops) 2000-07-02 06:13:46 +00:00
Bill Currie
0af7b854e8 fix a warning that msvc doesn't pick up but gcc does. 2000-07-02 06:00:15 +00:00
Forest Hale
906ab864c2 Brightness controls (brightness, contrast) and gl_lightmode cvar. 2000-07-02 05:16:10 +00:00
Forest Hale
0793a90813 Dynamic lighting fixes. (relative bmodel lighting, mainly) 2000-06-30 22:26:11 +00:00
Forest Hale
6f8c87fa02 Fix for immediate R_MarkLights crash. (oops) 2000-06-30 04:35:05 +00:00
Forest Hale
0b826825ec GL cleanup. (cleanup after Endy mainly) 2000-06-30 00:47:26 +00:00
Zephaniah E. Hull
29ef95a9b5 The end of Z_*!!
This after the Z_* stuff hit my profiling list as a top user..
2000-06-29 05:46:15 +00:00
Zephaniah E. Hull
66e9bfd98c Fixed the GL water texture problem.. 2000-06-28 23:11:52 +00:00
Zephaniah E. Hull
016f682389 R_RecursiveWorldNode from DP, speed improvement.. 2000-06-26 19:56:09 +00:00
Bill Currie
09af993795 source/gl_rsurf.c:
removed commented out line
source/in_x11.c:
	re-enable the mouse warpage.
2000-06-26 10:09:13 +00:00
Forest Hale
7e4def70af Fix for bmodel relative lighting in R_AddDynamicLights. 2000-06-26 07:47:43 +00:00
Forest Hale
4698dc0d7d Readability improvements and minor speedup in R_AddDynamicLights. 2000-06-26 07:42:29 +00:00
James Brown
089a0a35d0 Patched for QSG Standard 2 (Extend Protocol).
Unfinished, renderer effects are only half implimented at this point.
2000-06-25 13:00:19 +00:00