Bill Currie
a1035aafe9
Implement Draw_TextBox.
2011-12-29 17:51:31 +09:00
Bill Currie
2b44a25c6b
Flush console text after each screen function.
...
This on its own doesn't fix menus being overwritten with console text, but
it's an important step.
2011-12-29 11:26:14 +09:00
Bill Currie
9fec4d5be0
Implement Draw_Fill.
...
Almost there with 2d.
2011-12-29 11:25:27 +09:00
Bill Currie
9d0ed6b885
Fix the missing text.
...
Silly case and paste error cleared out my text vertex array prematurely.
2011-12-29 08:47:32 +09:00
Bill Currie
bece72e746
Use a quick hack to get colored crosshairs working.
2011-12-28 21:45:20 +09:00
Bill Currie
e69a583f1b
Work around a bug in mesa.
...
Since I'm not specifying the api when creating my context, mesa is giving
me GL2. This is fair enough, but in GL2, vertex attribute 0 is the vertex
position. This too, is fair enough. The problem is, mesa is assigning 0 to
my vcolor attribute and thus I can't set it. The work around is simply to
swap the declaration order of vcolor and vertex (this really shouldn't work
eiter, I suspect).
2011-12-28 20:43:56 +09:00
Bill Currie
8ee13ef8c2
Do some clipping in the draw routines.
...
After fixing Maraakate's crash, I thought it would be a good idea to put
the fixes into QF, too.
2011-12-28 19:20:18 +09:00
Bill Currie
b657905c83
Bring in Despair's gl error checking from the gl renderer.
2011-12-28 09:05:36 +09:00
Bill Currie
151cc05882
Add support for vertex colors.
...
As I need to control the alpha, they're sent as rgba rather than quake
palette indices. Text works well. All other 2d stuff does not :(.
2011-12-28 09:04:26 +09:00
Bill Currie
b943b6d6e8
Implement crosshairs, mostly.
...
Colored crosshairs aren't supported yet (next).
2011-12-27 17:59:58 +09:00
Bill Currie
db8573b774
Make the cross-hair data sharable between renderers.
2011-12-26 21:43:15 +09:00
Bill Currie
705d07fa39
Implement most of the 2d rendering functions.
...
textbox, crosshair, tileclear, fill and fadescreen are the remaining
functions.
There's a problem with 2d icons being drawn over the text (instead of
under), but I'll leave that for later.
2011-12-26 20:33:40 +09:00
Bill Currie
e2a8de33cc
First real texture support function for glsl.
2011-12-26 18:34:51 +09:00
Bill Currie
42034acc03
Organize the text program data.
...
Also, rename the charmap uniform in quake2d.frag as it's more generic than
that.
2011-12-26 18:00:55 +09:00
Bill Currie
2ccfbb0c1c
Move the shader program code into vid_common_glsl.
...
Much more useful in the long run.
2011-12-26 17:17:29 +09:00
Bill Currie
5bed38dcd9
Rename quaketxt.frag to quake2d.frag.
...
It's actually fairly generic for 2d rendering (no lighting, palette lookup)
2011-12-26 17:11:31 +09:00
Bill Currie
f78db6c570
Clean up the generated shader files.
2011-12-26 16:39:02 +09:00
Bill Currie
d743c6c55f
Make a clean break heading for GLES compatibility.
...
Add GLSL directory to QF and use it for all gsls based code (instead of
GL). defines.h, types.h and funcs.h are derived from gl2.h from khronos.
Text drawing now uses triangles instead of quads.
2011-12-26 16:08:55 +09:00
Bill Currie
7bd5ab882c
Get text rendering working.
...
It comes out as a funky green (that's not in the quake palette!!!), but
it's mostly readable.
2011-12-26 10:16:16 +09:00
Bill Currie
9f5eacd1fb
Try to get text rendering.
...
Still a black screen :(
2011-12-26 08:12:05 +09:00
Bill Currie
c161a91d4a
Split out and partially implement the screen code.
2011-12-26 08:09:47 +09:00
Bill Currie
1268830082
Split out the particle code.
2011-12-26 08:02:18 +09:00
Bill Currie
7d653f3676
Start work on outputting text.
...
The shaders now compile. No linking is done yet. Char quads are generated,
but not sent to the card.
2011-12-25 19:42:39 +09:00
Bill Currie
55a0ed49cd
Build qw-client-glslx too.
...
I was asked about timedemo overkill (bigass1 currently gets 40kfps, haha),
so I had to add qw-client-glslx to the build.
2011-12-25 16:41:14 +09:00
Bill Currie
9df7370bcd
Create some shaders for quake text.
...
Still nothing drawn, but this gets my shader scripts into C without me
having to look at ugly strings.
2011-12-25 15:53:12 +09:00
Bill Currie
99c490ce52
Get glsl running as a null renderer.
...
This means that nq-glslx can get through demo1, demo2, demo3 and bigass1
without crashing. However, nothing is rendered, so unless you like black,
it's not very interesting.
2011-12-25 13:02:26 +09:00
Bill Currie
cc5140e3a1
Move min/max/bound and field_offset into better locations.
...
min/max bound into mathlib.h (they /are/ math functions, after all) and
field_offset into qtypes.h.
2011-12-24 10:04:33 +09:00
Bill Currie
6fe9557dae
Put in the final pieces so nq-glslx can link.
...
Everything is still stubs. Trying to run nq-glslx results in a segfault :)
2011-12-23 12:52:55 +09:00
Bill Currie
53d89bf85a
Clean up the mess around D_FlushCaches.
...
Create an R_ClearState and call that from the clients. It calls any
necessary functions itself.
2011-12-23 12:51:47 +09:00
Bill Currie
33c5320c0e
Create stubs for most of the required render functions.
...
nq-glslx almost links. Just some suspicious references in host.c I want to
check before doing anything more.
2011-12-23 12:19:50 +09:00
Bill Currie
497461b4c2
Make a start on making a pure GLSL renderer.
...
For now, only nq-glslx will be built, but as there is no actual code, it
doesn't link. However, this gets the glsl stuff into the build system.
2011-12-23 12:19:13 +09:00
Bill Currie
52d9269867
Merge brush model with world model rendering.
...
With this, non-mtex global fog now works properly :).
2011-12-18 08:09:55 +09:00
Bill Currie
a8e354536a
Implement the instance surface allocation/freeing.
...
Not actually used yet, so it's harmless at this stage.
2011-12-17 19:42:19 +09:00
Bill Currie
87b78e5533
Move the surface chain links out of the surfaces.
...
The links are now in "instance surfaces". For non-instanced models (world,
doors, plats etc (ie, world and its sub-models)), there will be one
instance surface per model surface. However, for instanced models (ammo
boxes etc), there will be many, dynamically allocated (not yet
implemented). This commit gets the static instance surfaces working.
2011-12-17 19:14:14 +09:00
Bill Currie
9f0bdf7794
Add some comments.
2011-12-17 09:39:57 +09:00
Bill Currie
933120d44f
Fake vertex arrays for text and particles.
...
Getting gl_vaelements_max -1 to work produced a rather nasty surprise :P
2011-12-16 20:09:05 +09:00
Bill Currie
e67690a1a9
Restore the missing lightmaps in non-mtex mode.
...
I forgot to blend in the lightmaps in the fogless non-mtex path.
2011-12-16 09:21:39 +09:00
Bill Currie
b2aa5ce554
Register the textures of other brush models;
2011-12-15 17:09:02 +09:00
Bill Currie
962451e2fe
Create a list of texture chains.
...
This moves the texture chains out of the world model and into a separate
list, allowing other brush models to registter their textures.
2011-12-15 17:09:02 +09:00
Bill Currie
d6a668d517
Split out chain_surface() from visit_node().
2011-12-15 17:09:02 +09:00
Bill Currie
3eb859a88f
Move the entity transform setup into the clients.
...
This has several benifits:
o The silly issue with alias model pitches being backwards is kept out
of the renderer (it's a quakec thing: entites do their pitch
backwards, but originally, only alias models were rotated. Hipnotic
did brush entity rotations in the correct direction).
o Angle to frame vector conversions are done only when the entity's
angles vector changes, rather than every frame. This avoids a lot of
unnecessary trig function calls.
o Once transformed, an entity's frame vectors are always available.
However, the vectors are left handed rather than right handed (ie,
forward/left/up instead of forward/right/up): just a matter of
watching the sign. This avoids even more trig calls (flag models in
qw).
o This paves the way for merging brush entity surface rendering with the
world model surface rendering (the actual goal of this patch).
o This also paves the way for using quaternions to represent entity
orientation, as that would be a protocol change.
2011-12-15 17:09:01 +09:00
Bill Currie
4b515a961b
Back out the fitzquake lerp changes.
...
That's not the direction I wish to take the renderer.
2011-12-13 17:01:15 +09:00
Bill Currie
b05be59ea0
Fix alias models in non-mtex fog.
...
It turns out that due to the way we do fullbrights, nothing special needs
to be done to get the fullbright texture blended with the model even when
fog is enabled.
2011-12-12 17:08:22 +09:00
Bill Currie
8e531a58c2
Get global fog working for multi-pass rendering.
...
For the world textures, anyway. Entity multi-pass rendering still needs to
be verified.
2011-12-12 17:08:22 +09:00
Bill Currie
91e65b6c80
Rename mplane_t to plane_t and clean up the mess.
...
I got rather tired of there being multiple definitions of mostly compatible
plane types (and I need a common type anyway). dplane_t still exists for
now because I want to be careful when messing with the actual bsp format.
2011-11-28 20:54:34 +09:00
Bill Currie
8e30d3098e
Fix asm ilnking in mingw.
...
It seems that recent binutils/libtool doesn't like exporting symbols that
don't begin with a _.
2011-09-10 17:49:14 +09:00
Bill Currie
1c47f9e16d
Kill some magic numbers.
2011-09-04 09:58:12 +09:00
Bill Currie
f75b0a611b
Some compile fixes for OpenBSD
2011-08-25 22:35:20 +09:00
Bill Currie
e89532cb9f
Fix a couple of missed view.h->clview.h changes.
2011-08-02 11:29:20 +09:00
Bill Currie
efa0105748
Rename some headers to fix doxygen warnings.
2011-07-23 15:58:45 +09:00
Antti Harri
358a844a42
Implement --version-info configure switch to override QuakeForge
...
library versioning. From Lasse Collin, thanks!
2011-07-09 01:23:36 +03:00
Bill Currie
0f7390dd60
Clean up all the "set but not used" warnings.
...
gcc on my system is failing to treat this specific warning as an error :/
2011-06-19 10:48:02 +09:00
Bill Currie
74a7e07dfc
Use AM_CFLAGS instead of CFLAGS.
...
CFLAGS is meant to be reserved for the user.
2011-05-10 12:44:44 +09:00
Bill Currie
47e55fe1c6
Properly terminate each fisheye quad strip.
...
The horizontal quad strips need to be rendered individually rather than as
one single strip. The latter results in ugly triangles crossing the screen.
2011-04-17 13:03:22 +09:00
Bill Currie
14480fd1b4
Move the call to R_ClearEnts to the renderer.
...
This fixes the hang on certain maps in qw-client.
2010-12-25 19:59:34 +09:00
Bill Currie
e65d1a7ccf
Remove a redundant assignment.
2010-12-25 19:59:34 +09:00
Bill Currie
774f049646
Fix garbage at edges of conchar characters.
...
Move the texture coordinates in 1/4 of a pixel. To avoid unnecessary
calculations, pre-caclulate the character cell texture coordinates and
blast them into the the texture coordinate array.
2010-12-11 12:09:30 +09:00
Bill Currie
8919aec663
Get global fog working in mtex mode.
2010-12-10 21:40:36 +09:00
Bill Currie
ce96e6b055
The beginnings of fog support.
...
gl_fog.c is taken from fitzquake with only minor modifications to get it
into QF. Other than worldspawn/network parsing, it's not used yet.
2010-12-10 17:17:30 +09:00
Bill Currie
6114495870
Don't try to load skys named "".
...
This makes 'loadsky ""' and 'loadsky none' equivalent.
2010-12-10 17:17:30 +09:00
Bill Currie
c4f71c0cda
Move r_skyname handling from R_NewMap to R_LoadSkys.
...
r_skyname now acts as the default sky to use when no sky name is specified
by other means ("none" is still no sky). 'loadsky foo' will load the
"foo*" sky textures, 'loadsky none' gives the default sky, and 'loadsky
""' causes uses r_skyname.
2010-12-10 17:17:30 +09:00
Bill Currie
b1b1a02c6c
Get entity allocation and freeing working correctly.
...
This fixes the missing static entities.
2010-12-04 23:37:58 +09:00
Bill Currie
a4b97e9e2e
Dynamic entity allocation. Unlimited static entities.
...
Entities can now be allocated dynamically. They are freed whenever a new
map is loaded.
Use the dynamic entities for static entities.
2010-12-03 21:01:52 +09:00
Bill Currie
a6941e27ef
Eliminate MAX_VISEDICTS. Unlimited visible entities.
...
The renderer can now render as many entities as can be crammed into the
currently visible set of nodes.
2010-12-03 14:59:02 +09:00
Bill Currie
f98b002f9e
Make R_StoreEfrags const-correct.
...
R_StoreEfrags does not need to modify its parameter or anything to which
it directly refers, so make the pointer single-level and constant.
2010-12-03 13:30:49 +09:00
Bill Currie
085b0f4448
Remove R_SplitEntityOnNode2
...
When R_AddEfrags is used (as is the case in nq), this function is
redundant. Brush models in qw are currently broken (invisible), but that's
just a matter of getting qw to use R_AddEfrags instead of R_NewEntity.
This removal should speed up the software renderers a little bit.
2010-12-02 08:31:48 +09:00
Bill Currie
cacd2fb895
FiztQuake's lerping system.
...
Seems to be mostly working. I get some funny results for zombies, but that
might be moving and turning at the same time causing issues.
2010-11-26 16:20:05 +09:00
Bill Currie
31c13d92a2
Protocol 666/large map support from FitzQuake.
...
Alpha and lerping aren't implemented yet, but things seem to be working. I
can load and play oms2.bsp (Conflagrant Rodent).
2010-11-26 16:20:05 +09:00
Bill Currie
8c4fe2f844
Rename Sys_DPrintf to Sys_MaskPrintf.
...
We now have finer runtime control over what gets printed. Need to do a
SYS_DEV audit, creating new masks as apropriate.
2010-11-26 16:19:26 +09:00
Bill Currie
232d2f7e18
Fix an undefined operation thanks to spirit of the domain quaddicted.com.
2010-11-16 17:13:22 +09:00
Bill Currie
a51e888a1b
Nuke MAX_OSPATH and clean up the mess.
2010-08-25 13:31:08 +09:00
Bill Currie
669771681a
split up and modernize configure.ac
...
Most of the guts of configure.ac have been moved to config.d and are then
brought in by m4_include. This will make maintaining configure.ac much easier.
Also drop use of PROGRAM and VERSION, using PACKAGE_NAME, PACKAGE_VERSION, and
on occasion, PACKAGE_STRING instead, and clean out some old files we no longer
need.
2010-08-19 15:01:43 +09:00
Bill Currie
0dfff8fd58
ignore stuff
2010-08-07 10:42:09 +00:00
Bill Currie
997102fea8
audit the usage of "only"
...
There are still a few iffy places (notably around certain prepositions), but
the relevant sentences are now much easier to read.
2010-01-13 06:42:26 +00:00
Bill Currie
dbe0c763d5
fix the placement of the "paused" icon
2010-01-13 06:35:33 +00:00
Bill Currie
a5f0fbc821
Proper widescreen support. The GL renderer now respects the pixel aspect calculated by the vid init code. Also, a new cvar: vid_aspect. The format is width:height and the values may be any float greater than 0. The default is 4:3, but any units may be used.
2009-12-24 05:33:41 +00:00
Bill Currie
4b0320f341
glx, gly, glwidth and glheight are now gone too. also GL_BeginRendering
2009-12-23 08:20:29 +00:00
Bill Currie
ee0de1b4e1
got it right this time
2009-12-23 08:05:03 +00:00
Bill Currie
c2945605bc
oops
2009-12-23 07:57:07 +00:00
Bill Currie
8ddfdf03b2
with the changes in size handling, viewport setup becomes much simpler
2009-12-23 07:53:05 +00:00
Bill Currie
a2fa2d425b
fix viewsize interaction with the cleaned up screen size handling
2009-12-23 06:29:11 +00:00
Bill Currie
e0cfe795b0
fix a bogus range check. this could have caused an infinite loop
2009-12-23 06:28:11 +00:00
Bill Currie
018a0b3bb6
fix the missing crosshair
2009-12-23 01:26:14 +00:00
Bill Currie
28601c8ea4
more screen size cleanup
2009-12-22 13:12:03 +00:00
Bill Currie
b6a4fc1b58
fix the glaring error of the sw renderer's aspect ratio. still not quite right for non-4:3 screens, but it's better.
2009-12-21 10:10:45 +00:00
Bill Currie
4ff2cb88cf
bigscreen patch from Philippe Troin
2009-12-20 05:34:41 +00:00
Bill Currie
b14fcccd8f
get qf compiling with gcc 4.4
2009-12-19 10:54:23 +00:00
Bill Currie
fe95805d86
various gcc 4.3 fixes
2008-07-19 05:40:57 +00:00
Bill Currie
e3b47c9c6d
This should make stdint stuff work better in general (can't test properly due to my mingw setup being borked)
2007-11-25 04:44:53 +00:00
Bill Currie
2b81eaea6c
console.h include cleanup
2007-11-06 12:40:38 +00:00
Bill Currie
6d6dc27592
make startup and shutdown a little quieter
2007-11-06 10:39:49 +00:00
Bill Currie
d66934942d
nuke Con_Printf and Con_DPrintf and use Sys_* instead
2007-11-06 10:17:14 +00:00
Bill Currie
d1e2b6b7d2
make the raw particle creation functions available and use them for creating the location marker effect rather than WizSpikeEffect
2007-09-15 04:20:45 +00:00
Bill Currie
6884f97694
allow marcher.bsp to work (initially, anyway)
2007-05-23 10:45:33 +00:00
Bill Currie
0301cd6fa8
fix hud scaling
2007-05-13 04:21:37 +00:00
Bill Currie
b5809eaa4f
this /should/ fix the scaling of high-res hud items
2007-05-13 01:29:29 +00:00
Bill Currie
93ee2e489b
more vc2005 patches from phrosty
2007-04-11 22:03:36 +00:00
Bill Currie
02c41feabc
make gamedir change a two phase operation so things can be done both before and after the cache is flushed. (still having problems with cached sounds, though)
2007-03-24 10:13:10 +00:00
Bill Currie
81a57bb3fa
patch from phrosty for vc2005 support. includes fixes for a bunch of gcc-isms that crept in over the years.
2007-03-22 23:20:57 +00:00
Bill Currie
99c0954b47
the big dso visibility patch :). Sure, we have to have unique names for static builds, but with controlled visibitly we should get faster program loads (although this isn't C++, so it's not as bad) and complex plugins are cleaner.
2007-03-10 12:00:59 +00:00
Bill Currie
5062930bad
bit more cleanup and some documentation
2006-12-03 06:25:57 +00:00
Bill Currie
7bca4cf8af
clean up the draw interface a bit
2006-12-02 10:07:08 +00:00
Ragnvald Maartmann-Moe IV
9390a195e1
Separate out particle physics from particle rendering.
2006-12-01 07:03:13 +00:00
Ragnvald Maartmann-Moe IV
630d4b8587
Fix black halo bugs in even the smallest particles. Same issue as smoke, same solution.
2006-10-18 07:57:10 +00:00
Bill Currie
3fb03fc2be
hah, should have been using __attribute__((used)) all that time (rather
...
than __attribute__((unused))). fixes the missing console in -x11
2005-08-04 15:27:09 +00:00
Bill Currie
616f094369
don't mangle the angle. no idea why it was there and it shouldn't normally
...
get there /anyway/
2005-04-27 08:07:09 +00:00
Bill Currie
23f71485d1
more tree recovering. This includes Despair's anisotropy support work.
2005-01-02 14:23:20 +00:00
Bill Currie
0bfac8dd88
win32 compile fixes
...
This is an imperfect revision of history.
2004-11-06 02:21:00 +00:00
Bill Currie
b95dce5deb
unlimited efrags :)
...
This is an imperfect revision of history.
2004-11-02 07:42:00 +00:00
Bill Currie
ca46503607
add -Wsign-compare (default for -Wall only in C++) and fix up the warnings
2004-07-13 19:14:01 +00:00
Bill Currie
b36569eb9f
grievre's patch to make entity minlight and fullbright fields work properly
2004-07-11 00:37:48 +00:00
Bill Currie
cefc6df98c
grievre's patch to trade (minor) frame rate for frame (non-)latency
2004-07-10 02:32:30 +00:00
Bill Currie
8a237169c3
patches to allow for multiple view ports
2004-05-07 03:54:35 +00:00
Bill Currie
9ed9832789
bring back the alpha setting for dlights (finally found out what it was
...
for) and "fix" the wayward dlights in mvds: caused by svc_muzzleflash being
written before the player updates. Should probably fix properly that in the
server too.
2004-05-03 06:21:39 +00:00
Bill Currie
57ffcae9fe
remove some dead code
2004-05-03 04:52:00 +00:00
Bill Currie
fc4211c257
the rest of Grievre's lighting tweaks
2004-05-02 21:21:00 +00:00
Bill Currie
adf50949e2
slightly modified version of Grievre's fix for black models on an unlit map
2004-05-02 20:40:09 +00:00
Ragnvald Maartmann-Moe IV
f0d9008fa4
Swap normal/vertex order to match order they are accessed in during render.
...
Optimization from Grievre.
Also fix a minimum light clamping to actually be applied.
2004-04-28 20:27:11 +00:00
Bill Currie
1c0735d0c9
* taniwha mutters about end-runs (sorry, Grievre)
2004-04-28 04:07:50 +00:00
Bill Currie
785307fd9a
Grievre's lighting tweeks
2004-04-27 22:18:23 +00:00
Bill Currie
1f9d75a7c7
add r_norefresh support to sw and sw32 and rename the console side of the
...
cvar to get around the evil in customtf
2004-04-16 03:24:10 +00:00
Bill Currie
b62f3c98d9
full path reporting when writing screenshots
2004-04-14 03:31:08 +00:00
Bill Currie
4f79d8ce0a
hopefully more correct surface marking for dlights
2004-03-17 04:53:10 +00:00
Bill Currie
6c1c39c4d2
don't fudge the maxdist by 0.75. no clue why that was done, but it was the
...
cause of the bogusly lit surfaces (not sure why, though. imaginary numbers,
maybe?). timedemo runs are a little more variable :/
2004-03-17 04:47:55 +00:00
Ragnvald Maartmann-Moe IV
509cd09491
Make nearer cloud layer speed more sane for skydomes.
2004-03-15 21:45:45 +00:00
Ragnvald Maartmann-Moe IV
29502c8f5a
Lots of optimizations, particularly for GL state changes, and tweak lighting a
...
bit more.
Also a cleanup from Grievre: Use VectorIsZero in two places in gl_mod_alias.c.
2004-03-15 21:32:19 +00:00
Ragnvald Maartmann-Moe IV
1fe06c326b
More of my experimental GL lighting tweaks.
2004-03-11 01:03:51 +00:00
Ragnvald Maartmann-Moe IV
9cd16b8dfd
Grievre's lighting patch, plus some of my own changes.
...
My changes:
Emit normals if truform is enabled.
Attempt to avoid 0,0,0 normals (makes lighting & tesselation unhappy).
Fix some (ancient) apparent bugs in GetAliasFrameVerts16().
Clamp minlight, instead of adding it.
Apply colormod as glColor, rather than adding it to emission, to prevent QSG2
issues with fullbrights.
Rearrange init code, and don't go quite as wild with responsiveness to lights.
Material & lightmode settings will need tweaking & testing to work well on all
cards. Feedback needed there.
2004-03-10 08:14:38 +00:00
Chris Ison
68a1a50f1f
fix for gl_overbright init order bug, maybe Despair can come up with a better way
2004-03-08 18:42:42 +00:00
Ragnvald Maartmann-Moe IV
b7df0b5278
Remove gl_doublebright, remove fractional overbrights, clean up init a bit,
...
uglify init a bit. Stuff for taniwha to look at. Nothing to see here, move
along.
2004-03-07 23:51:29 +00:00
Bill Currie
cd1fc18ea4
gl_lightmap_subimage 2 now works, but only if using r_lightmap_components 4
...
(with dri, anyway, ymmv).
2004-03-05 21:53:34 +00:00
Bill Currie
37024a4419
final (?) cleanup of center printing. turns out there's no reason to keep
...
it in the renderer and every reason to pull it out (ok, some might
disagree:)
2004-03-02 03:55:18 +00:00
Bill Currie
39fc0fe721
more centerprint cleanup.
2004-03-02 00:58:13 +00:00
Bill Currie
2955fac550
first step of centerprint/finale cleanup. fixes the misplaced text for
...
end-of-episode text
2004-03-01 23:47:39 +00:00
Ragnvald Maartmann-Moe IV
7b5535cb8f
Less surprising default.
2004-02-29 05:32:23 +00:00
Ragnvald Maartmann-Moe IV
58d67f9a75
Lighting init fixes.
2004-02-29 04:50:01 +00:00
Ragnvald Maartmann-Moe IV
fde6e5bf61
Reduce ifs a bit, clean up init a bit. Minor problem with gl_doublebright. LIH.
2004-02-29 01:49:41 +00:00
Ragnvald Maartmann-Moe IV
e29e469646
Multitexture state fix. Harmless so far, but testing carefully helps us avoid
...
state leak horrors.
2004-02-27 21:42:52 +00:00
Ragnvald Maartmann-Moe IV
8c6cc34f83
Fix overzealous optimization which did interesting things to lightmapping when
...
not using multitexture.
2004-02-27 21:36:41 +00:00
Ragnvald Maartmann-Moe IV
cdb02edc88
Make whitespace consistent. yay.
2004-02-27 15:49:15 +00:00
Ragnvald Maartmann-Moe IV
6059c7b4df
...space
2004-02-27 08:51:26 +00:00
Ragnvald Maartmann-Moe IV
997f5feabe
Tiny bit of loop unrolling.
2004-02-27 08:29:56 +00:00
Bill Currie
3855a8e40c
seem to have the itterative world rendering working now (fingers crossed:)
2004-02-26 22:53:30 +00:00
Bill Currie
228c5a0ecf
don't bother binding unmodified lightmaps
2004-02-26 00:33:24 +00:00
Ragnvald Maartmann-Moe IV
beeb1822b3
Fix multipass skydome rendering. Not sure layer speeds are right, but at least
...
they move at different speeds like they are supposed to.
2004-02-24 20:53:09 +00:00
Ragnvald Maartmann-Moe IV
44c89c1904
Optimize fullbright testing for brushes, assorted other cleanups, test for
...
functions built into current GL drivers, as well as the old extensions, and
add incorrectly rendering BGRA support.
Whee!
2004-02-24 20:50:55 +00:00
Bill Currie
f9b95cee92
some micro-optimisations
2004-02-23 07:17:41 +00:00
Bill Currie
680c246e22
the inline went wandering by mistake. gives a tiny (< 0.5%) gain, but a
...
gain none the less
2004-02-23 04:46:55 +00:00
Ragnvald Maartmann-Moe IV
496025473c
Remove no-longer needed parameters from function calls.
2004-02-23 04:25:53 +00:00
Ragnvald Maartmann-Moe IV
872498a1f0
Reorder a lot of code, removing tons of ifs. multitexture paths are a bit more
...
sane now. Also optimize QSG2 color handling, and fix some QSG2 bugs. Not that
anyone cares, nobody uses it anyways.
Should be faster, but isn't here. *grmbl*
2004-02-22 06:00:15 +00:00
Chris Ison
e9d57e0401
Grievres' non-mtex FB being brighter than mtex FB fix. Note: it breaks non-RGBA replacement textures
2004-02-21 10:33:43 +00:00
Chris Ison
ca6112767c
Grievres' water HOM and mtex FB only rendering FB texture fix
2004-02-21 09:04:52 +00:00
Ragnvald Maartmann-Moe IV
5157f668ad
Fix a bunch of state leaks that made multitextured fullbrights smear the world.
...
Now just have one (known) issue with bmodels with fullbright textures not
rendering their base texture. Floating fullbrights are nifty!
Also a number of optimizations, which need wider performance testing.
2004-02-21 05:36:19 +00:00
Bill Currie
551c7ee89a
Grievre's patch to makes R_MarkLights and R_RecursiveMarkLights use the
...
same function for actual marking.. which reduces code redundancy and fixes
the fact that world submodels
2004-02-21 04:23:00 +00:00
Ragnvald Maartmann-Moe IV
1cd0ba3f8f
Pale void.
2004-02-20 22:50:47 +00:00
Ragnvald Maartmann-Moe IV
79689baa83
Grievre's crash fix.
2004-02-15 19:56:28 +00:00
Ragnvald Maartmann-Moe IV
e43129316b
Slightly reorder cases for legibility. (decreasing order instead of random).
2004-02-15 19:55:59 +00:00
Bill Currie
2d2173dc4e
make R_RecursiveWorldNode non-recursive (needs a new name, now :). 0.4%
...
speedup in null-renderer gl: unknown for sw and sw32 (could be slightly
slower, left recursive version in but #if 0ed out jic)
2004-02-15 03:46:55 +00:00
Chris Ison
6642686e33
removal of legacy MGL block_drawing variable. Fixed window restore bug that prevented the screen from being updated.
2004-02-15 03:40:50 +00:00
Ragnvald Maartmann-Moe IV
fef9b30bd7
QF, now complete with underbrights, thanks to Grievre.
...
Play with gl_overbright and gl_doublebright. That's an order.
2004-02-15 00:02:04 +00:00
Ragnvald Maartmann-Moe IV
0dae958a5a
Grievre's fix for texture state leak.
2004-02-14 19:17:51 +00:00
Timothy C. McGrath
b5b61d056f
Grievre passed a one line patch to me which according to his description:
...
"Fixes a bug in dynamic lights (lightstyles weren't being rendered correctly
due to bad assumptions about dlightbits)"
It compiles fine, and seems to work, so, here it is.
Hikaru
2004-02-14 08:36:08 +00:00
Bill Currie
d35f027757
undo my incorrect commit
2004-02-14 07:39:43 +00:00
Bill Currie
0e8ba7cc12
oops, committed the wrong file
2004-02-14 07:38:01 +00:00
Bill Currie
2cdf12cd50
if a leaf isn't in the frustum, don't bother lighting it
2004-02-14 07:32:26 +00:00
Bill Currie
85a268c62f
Grievre's lightmap/fullbright multitexture patch (fbs not tested due to
...
lack of drivers supporting 3 tmus)
2004-02-14 05:10:29 +00:00
Bill Currie
a97b722d7b
get the placement of the nice crosshairs right. make cs_data a square to
...
avoid weird mapping effects
2004-02-14 00:18:22 +00:00
Bill Currie
f34335a0c9
provide a builtin to draw a crosshair.
2004-02-13 23:16:33 +00:00
Bill Currie
4cabb40303
break the crosshair draw code into separate functions and give sw and sw32
...
crosshair 3
2004-02-13 22:16:53 +00:00
Ragnvald Maartmann-Moe IV
88c5d21ece
Whitespace, slight code reorder in gl_rmain.c
2004-02-09 04:13:44 +00:00
Ragnvald Maartmann-Moe IV
c4402e07bd
Working towards merging q2 model, sprite, and map support. Check back in a few
...
years, might be finished. ;)
2004-02-08 02:49:38 +00:00
Bill Currie
8ea7690530
serious cleanup of refdef calculations.
2004-02-08 00:37:11 +00:00
Bill Currie
9784ba5954
Grievre's gamedir callback patch to fix mangled sounds on gamedir change
...
plus a couple minor tweaks I notcied needed doing.
2004-02-03 03:01:06 +00:00
Ragnvald Maartmann-Moe IV
e1146a541c
TruForm support. Controlled by gl_tessellate
2004-01-26 00:13:47 +00:00
Bill Currie
e154c9add5
be consistent with WIN32 and _WIN32 (now all _WIN32)
2004-01-20 03:47:27 +00:00
Bill Currie
77b2942982
several libs can now get built as dlls in windows: console, gamecode,
...
gamecode_builtins, gib, image, modules, object, ruamoko and util.
2004-01-19 07:47:41 +00:00
Bill Currie
acd54afff7
move to using a hash table for builtin number -> builtin lookup so sparse
...
ranges can be used efficiently. move the auto-allocated builtins to
0x10000000-0x7fffffff. should be more than enough :)
use static builtin tables ("nul" terminated) instead of a series of
function calls to add builtins to a vm. should be more memory efficient.
2004-01-06 05:51:09 +00:00
Bill Currie
40b8974c33
better external skin handling from Grievre
2003-12-28 05:25:06 +00:00
Ragnvald Maartmann-Moe IV
9dbb8335f6
Fix loading of some sky textures.
2003-12-23 22:24:48 +00:00
Bill Currie
e53967b346
--disable-static now works (thanks for the heads-up, raorn)
2003-12-22 20:51:08 +00:00
Ragnvald Maartmann-Moe IV
bcf3738c1c
Make trails in sw renderers const-friendly.
2003-10-23 03:53:59 +00:00
Ragnvald Maartmann-Moe IV
1269241612
Make particle effects not mess with stuff they shouldn't. Also fix an
...
improperly declared variable.
2003-10-22 22:21:39 +00:00
Ragnvald Maartmann-Moe IV
2290ed3d3e
l = 64, and taniwha is much happier.
2003-10-22 20:20:24 +00:00
Ragnvald Maartmann-Moe IV
5686ff51e5
Make R_DarkFieldParticles & R_EntityParticles work in all renderers.
2003-10-22 06:00:36 +00:00
Ragnvald Maartmann-Moe IV
0205a8a999
Optimize and slightly clean up R_DarkFieldParticles & R_EntityParticles.
2003-10-22 01:04:35 +00:00
Ragnvald Maartmann-Moe IV
dc84232079
Whitespace, remove misleading .png extension from external conchars loader.
2003-09-20 04:29:42 +00:00
Bill Currie
d699926e6f
external conchars patch from DrSpliff
2003-09-19 06:22:02 +00:00
Bill Currie
89586e0181
don't flush garbage to the screen on the first render frame
2003-09-05 06:55:12 +00:00
Bill Currie
2b5a3753ca
nuke QF/texture.h moving it's contents into QF/image.h (yay, finally, a
...
real home for tex_t:)
2003-09-04 18:59:39 +00:00
Bill Currie
39ed540979
LoadImage is now used for all external textures giving almost transparent
...
.png and .tga support.
2003-09-04 18:46:59 +00:00
Bill Currie
8db2660a4c
make GL_LoadTexture support RGB textures (ie, 24 bit). I'm not happy with
...
the solution, but at least it works.
2003-09-04 05:22:23 +00:00
Bill Currie
0a8867fde9
replace all VectorSubtract (vec3_origin, ... and
...
VectorCopy (vec3_origin, ... with VectorNegate (... and VectorZero (...,
respectively. Should be a small speedup.
2003-09-03 22:17:04 +00:00
Bill Currie
f7b1196b8d
fix the gl stack overflow (and make sure all skybrush surfaces get checked
...
and queued)
2003-08-28 19:50:28 +00:00
Bill Currie
2c30939891
remove some magic numbers (sloppy coder:P)
2003-08-28 02:24:08 +00:00
Ragnvald Maartmann-Moe IV
c2053fbfb1
Prettier particles! Renderer is now informed of sv_gravity changes in qw. Not
...
supportable without protocol changes in nq.
2003-08-27 22:20:03 +00:00
Bill Currie
415fae8d6b
make the two normals arrays consistent
2003-08-26 07:00:13 +00:00
Ragnvald Maartmann-Moe IV
d8068de4fa
Commit experimental particle optimization. Reduces random particles from using
...
6 15 bit rand() to 2 calls, with 5 bits for each of the 6.
This is up to a 1% speedup for qf particles, and up to 2.1% for id.
It may particularly affect explosions with r_particles_style 0.
Please report any anomolies in any particle effects.
2003-08-15 20:26:09 +00:00
Ragnvald Maartmann-Moe IV
9ed8150b85
More particle optimizations.
2003-08-11 20:48:34 +00:00
Bill Currie
7ead5a91f8
don't let gcc automaticly inline functions but make gcc inline bigger
...
functions when told to. also make gcc warn if it can't inline a function.
Explicitly inline several functions (including moving VectorNormalize to
mathlib.h so it /can/ be) resulting in a 5.5% speedup for spam2 (88 to 92
fps)
2003-08-11 06:05:07 +00:00
Bill Currie
b88d275994
fix some warnings
2003-08-11 05:16:04 +00:00
Ragnvald Maartmann-Moe IV
f35b1db291
Fix a potential uninitialized variable segfault taniwha noticed, and optimize
...
particle effects a bit more.
2003-08-09 04:38:11 +00:00
Bill Currie
6a94607d9d
rename VectorMA to VectorMultAdd, add VectorMultSub and use it in a few
...
places. Not certain how much speed difference it makes :/
2003-08-08 15:25:53 +00:00
Bill Currie
184aa7beb0
should be a minor speedup to mono lightmaps
2003-08-07 21:05:58 +00:00
Bill Currie
732a9a80d1
gain about 3 fps (180 to 183) in null-renderer
2003-08-07 19:58:39 +00:00
Bill Currie
6063fb75d9
make the console run at full speed no matter what demo_speed is at. what a
...
lot of work for such a simple concept :P
2003-07-25 22:21:47 +00:00
Bill Currie
772ad66019
don't need that any more (yay:)
2003-07-15 17:41:31 +00:00
Bill Currie
855fc53709
handle alloca properly
2003-07-09 06:28:09 +00:00
Bill Currie
dddf045221
put "FIXME: overflow" on all the char arrays I could find that weren't
...
obviously safe
2003-07-08 20:11:10 +00:00
Bill Currie
66e2ef1926
fix an uninitialized variable
2003-05-23 17:39:33 +00:00
Bill Currie
c2c3a62956
nuke Qexpand_squiggle. instead, expand ~ to $HOME on qfs initialization and
...
cache the value.
don't call Qopen directly in the engine. instead call QFS_Open (generic) or
QFS_WOpen (write only, zip flag).
rework QFS_NextFilename to use a dstring (avoiding a potential buffer
overflow), support 10000 files and work from the top-level fs_userpath
directory. adjust QFS_WriteFile and QFS_WriteBuffers etc to suit.
make sw32 screenshots actually get written.
hopefully everything gets written to the right places :)
2003-05-23 17:17:01 +00:00
Bill Currie
ba3601685c
wad pics don't have extensions (plugs a buffer underflow hole)
2003-05-16 19:44:25 +00:00
Brian Koropoff
dd0332632e
Make gcc2 stfu.
2003-05-15 04:37:00 +00:00
Brian Koropoff
e2061095a6
Fixed .tga loading for GL targets. SW targets still need work in all
...
likelyhood.
2003-05-14 21:08:43 +00:00
Ragnvald Maartmann-Moe IV
6763d73f99
Make glError testing static, for now, to shut up compiler warnings.
2003-05-09 05:22:30 +00:00
Ragnvald Maartmann-Moe IV
f6b556a3a1
*beats CVS with the cluebat*
2003-05-09 01:41:56 +00:00
Ragnvald Maartmann-Moe IV
d68b4b6121
\n is nice occasionally.
2003-05-08 22:32:02 +00:00
Ragnvald Maartmann-Moe IV
28dd1612c3
Clean up glError handling.
2003-05-08 22:16:30 +00:00
Bill Currie
0a5f3c31eb
ping/pl/fps/time now stays put and is now in the client rather than the
...
renderer (so nq is currently missing it)
2003-05-08 05:49:57 +00:00
Bill Currie
a4abf526e8
there's no need to call Con_CheckResize every frame and it's now
...
detrimental anyway
2003-05-06 18:00:03 +00:00
Bill Currie
e732cf591d
remove all references to OFS_* from the C code. only the macros in progs.h
...
use them now
2003-04-22 18:20:15 +00:00
Bill Currie
f842d98964
initialize noise1
2003-04-22 01:37:13 +00:00
Bill Currie
905f1826eb
temporarily remove location support from nq (and location markers from both)
...
until client code has been cleaned up more
2003-04-21 18:26:21 +00:00
Bill Currie
eb099ae0d3
make qf gcc 3.3 clean
2003-04-17 00:01:48 +00:00
Bill Currie
01bff9c79e
WildCode's alias model VA prepatory patch
2003-04-08 04:13:49 +00:00
Bill Currie
e483333bbe
beat the skydome bugs to a pulp. no more seam (and probably a bunch faster
...
on slow cards)
2003-04-05 07:59:29 +00:00
Bill Currie
6cc7d43b53
make the texture coords in skyvec always 1/2 pixel in from the edge
2003-04-04 07:00:51 +00:00
Bill Currie
e00966b319
speed up 16 bit vertex lerping by getting GL to do the 1/256 scaling for us
2003-04-03 23:09:43 +00:00
Ragnvald Maartmann-Moe IV
8db859b77c
Minor bit of neatening, remove CHAIN_SURF alias, so it's clearer what is being used where.
2003-03-25 07:25:22 +00:00
Ragnvald Maartmann-Moe IV
6c7701a38b
Prevent bad gl_max_size settings from causing buggy drivers to freak out.
2003-03-24 20:21:24 +00:00
Ragnvald Maartmann-Moe IV
3bfdf0aea3
Test for gl errors every frame.
2003-03-21 21:28:09 +00:00
Ragnvald Maartmann-Moe IV
88c2735d9c
Make sprite rendering use vertex arrays, as a test for detection of vertex array support (tests only for OpenGL 1.1 or better, at the moment, no driver blacklist yet).
2003-03-20 19:58:18 +00:00
Bill Currie
57a470a88a
alpha compile fixes (unused functions)
2003-03-08 07:17:32 +00:00
Ragnvald Maartmann-Moe IV
2000954a2c
Whitespace, and a workaround for show_* misplacement.
2003-03-03 19:20:44 +00:00
Ragnvald Maartmann-Moe IV
a9c61bb6bf
Updated for OpenGL 1.4, plus whitespace.
2003-02-25 05:45:11 +00:00
Bill Currie
6a687f5e45
rename all the globals in quakefs.[ch] to be QFS_* or qfs_*
2003-02-14 19:46:07 +00:00
Ragnvald Maartmann-Moe IV
a34980eda5
Fix easter_egg toggling.
2003-02-14 00:58:22 +00:00
Ragnvald Maartmann-Moe IV
6d6fade23a
Change mach64 test to only happen at particle system inits, rather than testing for every individual particle injection.
...
Mach64 now gets id particle effects. Disabling the majority of effects isn't the best method, IMO.
2003-02-13 21:48:28 +00:00
Ragnvald Maartmann-Moe IV
af33733ce4
More x86-64 (AMD, not intel IA64, taniwha!) fixes.
...
Compile problems pointed out by Mike A. Harris. Thanks!
2003-02-12 23:41:20 +00:00
Bill Currie
4bd1718475
re-arrange viewsize handling to fix the hud bug in glx
2003-02-11 21:24:27 +00:00
Ragnvald Maartmann-Moe IV
83f0901c17
Cleaned up fisheye code which totally ignored QF coding style.
...
Also attempt to fix an init bug in R_InitFishEyeOnce (add gl_cube_map_capable = false to else).
2003-02-09 19:35:49 +00:00
Bill Currie
3ab4eb6545
Arkadi's mach64 patch
2003-02-06 21:47:33 +00:00
Bill Currie
d63cde4103
import the GL_ARB_texture_cube_map defines
2003-01-15 18:26:58 +00:00
Bill Currie
0ea15c3f82
sw and gl fisheye patches from Arkadi Shishlov (arkadi@it.lv). I don't
...
think /I/ can play that way (dizzy:)
2003-01-15 16:53:34 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Ragnvald Maartmann-Moe IV
34d4483424
white noise, er space.
2003-01-08 01:46:28 +00:00
Ragnvald Maartmann-Moe IV
d2820cd857
Reduce code duplication, kill a function used by only one caller.
...
Also disables a workaround for "interpolation seams" that I believe to be an old DRI bug. If anyone has skybox (not dome!) seams, try altering the ftc `if 0` to `if 1`.
2003-01-07 22:12:54 +00:00
Bill Currie
ca720c26a5
blah, forgot about no-asm :P
2003-01-06 19:05:51 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
8a2fbf43a7
alphageek's crosshair patch modified so it's crosshair 3 (need to port this
...
to the sw renderer's:/)
2003-01-03 03:36:45 +00:00
Bill Currie
f75c88b247
work around a gcc (GCC) 3.1 20020420 (prerelease) bug in darwin (ppc?)
2002-12-20 23:49:11 +00:00