Commit graph

33 commits

Author SHA1 Message Date
Ragnvald Maartmann-Moe IV
2d9f722218 Whitespace. 2001-01-26 06:10:50 +00:00
Dabb
df7e9b9a14 Fix for borland famous alloca-bug. 2001-01-12 13:31:43 +00:00
Thad Ward
8290955813 get MSVC back up and running again. 2001-01-11 08:43:11 +00:00
Bill Currie
d143410ecd cd_linux.c:
fix silly #include booboo (Thanks, Scottie Shore)
gl_sky_clip.c:
	bring in brighness the right way
2001-01-08 03:16:25 +00:00
Bill Currie
dd37b164e6 skys are no longer brighted with brightness (they saturate way too fast) 2001-01-07 12:19:27 +00:00
Bill Currie
77970ba4d2 replace face related % and / with table lookups. gives almost 50% speedup in
set_vertex (but it's not called that often) and 1/15 speedup in
R_DrawSkyBoxPoly
2001-01-04 06:24:18 +00:00
Bill Currie
ccba39666b #include audit 2000-12-30 02:16:36 +00:00
Bill Currie
9f6b0bf758 put my sky alpha trick into a safe place. currently disabled because while it
works, it's not the right place.
2000-12-25 03:38:48 +00:00
Bill Currie
1b82a5b018 finally found the black water bug!!! forgot to set the color back to the
lighting color
2000-12-09 05:37:25 +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
67896c5d5d fix a stupid bug 2000-12-02 08:31:18 +00:00
Bill Currie
e8da8add75 disable debug output. oops :/ 2000-12-02 07:41:06 +00:00
Bill Currie
bd47fcf241 pass though indent, correct a comment and change vertexen to vertices 2000-12-02 06:09:18 +00:00
Bill Currie
c90adba9dc finally. every condition I've been able to produce in start.bsp (quad jump to
the top of the map) works well. Depth issues have been taken care of as well
(sort of: same problems as non-clipped skybox, but you don't get sky IN the
map any more)
2000-12-02 05:32:50 +00:00
Bill Currie
6ced43e560 this SHOULD take care of case 5.3. Find out when I get home :/ 2000-12-01 19:57:33 +00:00
Bill Currie
a7ed89bdd2 got case 5.1 sorted out and in the process of sorting out 5.3 (just need to
decide on the best way to translate the information).
2000-12-01 08:10:02 +00:00
Bill Currie
588082a570 the cases of 6 faces with two vertexen (both adjoining and opposing) and 7
faces with 1 vertex are implemented, but I have no way of testing them :(ie, I
haven't found anywhere to test them, there just don't seem to be any sky polys
of the right shape)
2000-12-01 07:30:29 +00:00
Bill Currie
257c0eb64a the case of 5 faces with 3 vertexen is now handled. it looks like there might
be a bug in my face visiting code that's causing process_corners to think some
numver of faces < 5 are being visted when really 5 are. I'll sort that out
later (at worst causes a little overdraw).
2000-12-01 05:41:05 +00:00
Bill Currie
fefe5df1bc the case of 5 faces visited with one cube vertex enclosed is now handled. 2000-12-01 05:24:53 +00:00
Bill Currie
d6cb69f6fa a major(?) algo change in cubee vertex handling. When a polygon goes around a
cube vertex, that vertex is no longer added immediatly, instead delaying it's
addition to the poly vertex list until all the sky poly points have been
handled (this has a side benefit of completely eliminating those two almost
identical functions: enter_face() and leave_face() :). After the sky poly
vertexen have been processed, the faces the edges of the poly have visted are
analysed for all 14 possible cases to determine how many and which cube
vertexen are to be added to the face polys. So far, 9/14 cases are handled
properly and 1 seems to be mysteriously handled in what seems to be a correct
fashion part of the time (bloody heisenbugs). The remaining cases are: 5
visited faces with 1 vertex and 3 vertexen (the heisenbug); 6 faces and 2
vertexen (2 variants: neighboring vertexen and opposing vertexen); and 7 faces
with 1 vertex.
2000-12-01 04:57:35 +00:00
Bill Currie
9a44a9fe17 fix up some comments (taking a break tonight, I guess:) 2000-11-21 07:49:58 +00:00
Bill Currie
28701e8f76 poly edge crossing FOUR (ouch, that was unexpected) cube faces partially taken
care of. I have to fill in the incomplete faces (hmm, that will be interesting)
and figure out why one corner in one of my test cases is sometimes set and
sometimes not. Hmm, might be confused buy the enter/leave info from that edge.
2000-11-20 05:41:11 +00:00
Bill Currie
ce5f4b92ca fix a silly bug with framed faces. must have been tired 2000-11-20 05:26:14 +00:00
Bill Currie
b948a6c004 another bites the dust, dn dn dn :)
I think I only have one more clipping case to take care of, and it's really a
bug in an earlier case.
2000-11-19 01:18:54 +00:00
Bill Currie
5ae45ec667 framed cube faces work now! :) clockwise polygon rules are very convenient
(ccw would be just as good, it's the rule that counts:)
2000-11-18 06:44:08 +00:00
Bill Currie
b38903cc6a add the center points of the sky polys to the debug info. 2000-11-17 07:19:47 +00:00
Bill Currie
91b2d46330 fixed the bogus vector. I wasn't copying enough vertexen when doing the insert.
Oops :/
2000-11-17 06:02:47 +00:00
Bill Currie
b19b9141cc WOOHOO, framed box face finally works (mostly). For some reason, I sometimes
get a bogus vector on one of the faces, but this is a major improvement :)
Almost there to fully working skybox clipping.
2000-11-17 05:47:48 +00:00
Bill Currie
c59579c8c5 fix a dumb bug in leave_face() caused by the similarity to enter_face 2000-11-17 03:18:22 +00:00
Bill Currie
5d69bb1342 use Sys_Error instead of abort 2000-11-16 23:00:35 +00:00
Bill Currie
141fb8b7a5 try to insert the cube vertexen into the correct spot in the face poly vertex
list.
2000-11-16 20:05:15 +00:00
Bill Currie
c604d261f7 cleanup and document current code. Also catch a couple of possible bugs in the
process
2000-11-15 18:43:19 +00:00
Bill Currie
293d2bcc13 split gl_sky.c into gl_sky.c and gl_sky_clip.c (should have done this in the
first place, but I didn't realise how much code would go into sky clipping).
2000-11-15 17:20:54 +00:00