Commit graph

65 commits

Author SHA1 Message Date
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
Bill Currie
f67e48fb95 put MAX_LIGHTMAPS back to 64 as I found the bug that was causing them to be exhausted 2000-06-24 08:31:38 +00:00
Bill Currie
ee44cd05e6 source/gl_rsurf.c:
put lightmaps back to 256
configure.in:
	give us a --enable-profile
2000-06-24 06:19:24 +00:00
Bill Currie
18a9900b21 merge in knghtbrd's work, minus his over-bright stuff (it causes textures to
not be drawn when multitexture is not available (or at least I think that's
the condition)). More specificly, his altered blend states.
2000-06-17 10:39:28 +00:00
Bill Currie
acb5f4b21a revert Endy's HL changes. Sorry endy but what would you rather have: HL
support in quakeforge, or knghtbrd using your guts for violin strings? :)
2000-06-16 09:41:42 +00:00
Zephaniah E. Hull
b8a92f28dc Newtree compiles again, no promices that it will work though..
I'm tempted to pull Endy's CVS write abilitys until he promices
to make sure major changes at least COMPILE before he commits them.
(=:]
2000-06-10 21:40:31 +00:00
James Brown
957873f3bb Half-Life BSP support, and fixed that idiotic WGL multitexture crash. I don't know and don't care if other targets are also screwed this way :) 2000-06-10 03:36:28 +00:00
Joseph Carter
3287c0e38b ARB multitexture for glx, wgl, and 3dfx targets 2000-06-09 21:34:21 +00:00
Jeff Teunissen
d7d581e546 Fix inverted lightmap problem. 2000-06-07 07:23:23 +00:00
Joseph Carter
0b893de220 Doh! 2000-06-06 11:34:50 +00:00
Jeff Teunissen
6c2ae3cb47 Increase the effective radius of dynamic lights in GL. 2000-06-04 12:56:28 +00:00
Joseph Carter
accc15a82e non-skybox skies were overbrighting, fixed 2000-06-03 22:47:05 +00:00
Joseph Carter
19afb34084 This adds multitexture for win32 back into the game. 2000-06-03 22:32:53 +00:00
Joseph Carter
8d08bc4d86 This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to
make work properly:

Win32 thing..  If you don't free textures explicitly, you can cause a
problem with nVidia drivers.

Colored lighting is now RGB instead of RGBA.  The alpha is kinda pointless
on a lightmap and the effect's not all that great.  Plus people stuck with
16 bit OpenGL (any other 3dfx people out there?) will be quite pleased
with the improvement in image quality.  This does include LordHavoc's
dynamic light optimization code which takes most of the pain out of having
gl_flashblend off.

All glColor*'s are now half of what they used to be, except where they
aren't.  If that doesn't make sense, don't worry.  If you see one that's
only half what you'd expect, don't worry---it probably is meant to be like
that..  (More below)

glDisable (GL_BLEND) is now a thing of the GL_PAST.  As is GL_REPLACE.
Instead, we _always_ use GL_MODULATE and leave GL_BLEND turned on.  This
seems at first like it might be a performance hit, but I swear it's much
more expensive to change blending modes and texture functions 20-30 times
every screen frame!

Win32 issue..  Even though we check for multitexture, we currently don't
use it.  Reason is that I am planning to replace SGIS_multitexture with
the preferred ARB_multitexture extension which is supported in most GL 1.1
implementations and is a requirement for GL 1.2 anyway.  I also wanted to
get rid of some duplicated code.  Since Linux doesn't support multitexture
yet, I just commented out the code keeping me from compiling to get it to
work.  Win32 should work without it until it's fixed, which shouldn't be
long since the differences between SGIS and ARB multitextures as far as
Quake is concerned is minimal AT BEST.

LordHavoc and I have been working tirelessly (well not quite, we both did
manage to sleep sometime during this ordeal) to fix the lighting in the GL
renderers!  It looks DAMNED CLOSE to software's lighting now, including
the ability to overbright a color.  You've gotta see this to know what I'm
talking about.  That's why the glColor*'s are halved in most places.  The
gamma table code and the general way it works is LordHavoc's design, but
over the course of re-implementing it in QF we did come up with a few more
small optimizations.


A lot of people have noticed that QF's fps count has gone to shit lately.
No promises that this undid whatever the problem was.  That means there
could be a huge optimization lurking somewhere in the shadows, waiting for
us to fix it for a massive FPS boost.  Even if there's not, the code in
this commit DOUBLED MY FPS COUNT.  Granted I was getting pathetic FPS as
it was (around 30, which is pathetic even for a Voodoo3 in Linux) but
still---60 is a big improvement over 30!

Please be sure to "test" this code thuroughly.
2000-06-03 19:56:09 +00:00
Joseph Carter
beb6472cd5 Sorry about that, unused vars commented out 2000-05-26 04:19:46 +00:00
Joseph Carter
c9d579b1b5 if (0) is evil. If you're going to comment it out, comment it out or use
something like #if 0!
2000-05-26 03:40:22 +00:00