Jaime Passos
26e367eb9b
Merge remote-tracking branch 'origin/next' into pictureformats
2020-03-07 20:43:16 -03:00
Steel Titanium
76f26cda24
Merge branch 'master' into next
2020-02-21 21:01:29 -05:00
James R
7060083db5
Update copyright year to 2020
2020-02-19 14:08:45 -08:00
Jaime Passos
2893803c68
Merge remote-tracking branch 'origin/next' into pictureformats
2020-02-19 02:25:36 -03:00
MascaraSnake
512c6f24a9
Clean up the mess that is extracolormap_t::fog
2020-02-16 20:19:24 +01:00
Jaime Passos
5b5f371b0c
R_GetTextureFlat -> R_GetLevelFlat
2020-01-07 13:27:59 -03:00
Jaime Passos
76a6710f8b
Move location of R_CheckPowersOfTwo and R_CheckFlatLength
2020-01-07 12:46:46 -03:00
Jaime Passos
06d6e2e027
Move location of R_GetTextureFlat
2020-01-07 12:45:22 -03:00
Jaime Passos
762ce146eb
Organise header files, use R_GetFlat
2020-01-07 12:43:27 -03:00
Jaime Passos
f85476c723
Move texture stuff to its own file
2020-01-07 12:35:10 -03:00
Jaime Passos
218fdaeaf8
Fix patch conversion
2020-01-06 20:39:38 -03:00
Jaime Passos
edb0bbcd6d
Cleanup, NOW
2020-01-06 20:16:48 -03:00
James R
be063c454a
Fix NOPNG compiling
2019-12-24 11:37:37 -08:00
Jaime Passos
4d87bcca13
Move position of R_PlaneRipple in the file so this looks more organised
2019-12-14 19:50:40 -03:00
Jaime Passos
871ebef332
Merge remote-tracking branch 'origin/master' into ripple2
2019-12-14 19:36:54 -03:00
Jaime Passos
a27a225a81
Remove SPANDRAWFUNC_MMX, as it's not needed anymore.
2019-12-13 19:02:36 -03:00
Jaime Passos
6720279969
Separate non-powers-of-two draw routines into its own file
2019-12-13 13:11:56 -03:00
Jaime Passos
fa58c1fb26
stuff
2019-12-13 12:26:47 -03:00
Jaime Passos
be13f463f0
Update r_plane.c
2019-12-11 12:36:54 -03:00
Jaime Passos
f51253a0a8
Tilted water
2019-12-10 17:01:19 -03:00
Steel Titanium
d415cd5c6d
Update copyright date on source files
2019-12-06 13:49:42 -05:00
Jaime Passos
227f69f063
fix missing mmx check
2019-11-22 17:30:53 -03:00
Jaime Passos
245881ec55
Merge remote-tracking branch 'origin/master' into rotsprite_i
2019-11-12 21:38:02 -03:00
Jaime Passos
ae838d4879
Merge remote-tracking branch 'origin/master' into texture-flats-optimization
2019-11-08 23:01:29 -03:00
Jaime Passos
79e99dc471
Merge remote-tracking branch 'origin/master' into rotsprite_i
2019-10-28 14:29:10 -03:00
MascaraSnake
2a8e5b7bff
Merge branch 'james-kart' into 'master'
...
My changes to Kart
See merge request STJr/SRB2Internal!406
2019-10-25 15:36:40 -04:00
toaster
d89d8acc59
I can't figure out how to make this consistent at all, so in order to have the water look good in levels designed for it, I think it's necessary to effectively revert everything with SHITPLANESPARENCY to a roughly 2.1-equivalent behaviour.
2019-10-24 20:40:03 +01:00
James R
0b314a82bb
Use long double suffix
2019-10-22 21:48:15 -07:00
James R
e15ffd2bc8
Optimize texture/patch/png/flat flat caching
...
SIGSEGV in the case where you have a TEXTURES entry, but no texture or flat,
has been fixed.
Missing flats for now yield a HOM instead of REDFLR as well.
OpenGL also doesn't work yet. And I'm too tired for now to bother with it.
2019-10-20 20:24:03 -07:00
Jaime Passos
88d19a2d9c
fix holey textures
2019-10-13 18:37:41 -03:00
Jaime Passos
5118f8589d
Merge remote-tracking branch 'origin/master' into rotsprite_i
2019-09-28 12:14:55 -03:00
Jaime Passos
a0ec86ce01
Fix powers-of-two checks
2019-09-12 14:32:31 -03:00
Jaime Passos
f1cc17ea02
Enable usage of R_DrawSpan_8_MMX if drawing a flat with powers-of-two dimensions
2019-09-10 17:25:21 -03:00
Jaime Passos
a67dd633ff
if that function can't return NULL why should i do this?
2019-09-07 19:02:50 -03:00
Jaime Passos
ff293c3f6f
fix non powers of two spans
2019-09-07 18:20:49 -03:00
Jaime Passos
f461b76bb0
fix translucency
2019-09-07 16:54:26 -03:00
Jaime Passos
d38ba4d88c
define stuff idk
2019-09-06 19:41:29 -03:00
Jaime Passos
2a85ed0bdd
test
2019-09-06 19:26:05 -03:00
Jaime Passos
0cc553be5f
Merge remote-tracking branch 'jimita/flats-png' into flats-png_port
2019-09-06 19:20:45 -03:00
Jaime Passos
f68652aa66
I
2019-08-18 14:16:48 -03:00
Jaime Passos
afa6afa593
something something memory leaks
2019-06-28 19:43:37 -03:00
Jaime Passos
8362710e50
Merge remote-tracking branch 'origin/flats' into flats-png
2019-06-25 16:04:24 -03:00
Jaime Passos
5047f4e7f0
Fix slope flat offsets
2019-06-25 14:58:34 -03:00
Jaime Passos
02c3710211
hHA
2019-06-25 14:40:00 -03:00
Nev3r
581e80ed69
Made Portal_Add static; move ffloors clip reset from R_RenderPlayerView to r_plane.
2019-06-09 22:48:54 +02:00
Nev3r
8c3ddd61d5
Refactored a bit of code regarding visplane bound trimming for portals; reset ffloor's f_clip/c_clip so that FOFs on portals don't interfere with previously acquired bounds.
2019-06-07 13:10:12 +02:00
Nev3r
264386f842
Add visplane portal creation functionality and use it to replace the skybox rendering.
...
The skybox rendering process has been replaced with portals instead. Those are generated after the first BSP tree pass by looking for existing sky visplanes at the time, and their windows are used to define new portals.
The skybox portals are still incomplete and cause visual glitches when masked elements are involved.
2019-06-02 00:07:55 +02:00
Nev3r
df0a40b3c2
Code refactoring to turn portal struct into a more generalized shape.
...
Split portal-related code to its own source files.
Most of the 2-line-specific setup has been moved to the function which adds a 2-line case. The portals should render as they used to so far, anyway.
2019-06-01 13:07:23 +02:00
Jaime Passos
39857a846a
PNG support
2019-05-26 23:37:23 -03:00
Jaime Passos
93f60267c1
Minor fixes
2019-05-26 16:22:33 -03:00
Jaime Passos
dbb1575a6d
Animations, better flat management.
2019-05-21 15:24:26 -03:00
Jaime Passos
869f1e4e8d
Fix warnings
2019-05-21 11:03:53 -03:00
Jaime Passos
714c997aac
Support for patches and textures to be used in place of sector flats
...
Still a work in progress.
2019-05-21 00:28:52 -03:00
Monster Iestyn
3203dc5d4b
Remove old code altogether at Nev3r's request
2019-04-17 16:46:32 +01:00
Monster Iestyn
6bddd131da
Undefine toaster's old define to flip full-brightness default status for planes
2019-04-17 14:51:48 +01:00
mazmazz
075f28b7c8
WIP 20190101 merge
...
d_netcmd.c
filesrch.c
m_menu.c
p_setup.c
p_spec.c
r_data.c
r_main.c
r_things.c
w_wad.c
w_wad.h
2019-01-02 01:09:15 -05:00
MPC
9c2197db17
Software plane fixes
2018-12-14 14:08:25 -03:00
Monster Iestyn
5069acb110
Merge branch 'mpc-software-yslope-fix' into 'master'
...
Fix glitches with flats visible when looking up/down in 1st person (software renderer fix)
See merge request STJr/SRB2!282
2018-11-25 11:51:54 -05:00
mazmazz
ea7162a76a
Update source copyrights to 2018
2018-11-25 07:35:38 -05:00
Monster Iestyn
58a844d3cf
Merge branch 'public_next'
...
# Conflicts:
# src/r_things.c
# src/v_video.c
2018-08-28 19:31:08 +01:00
toaster
85474e33dd
Introduce a temporary measure to enable the old stuff, minus one of the most obviously terrible bugbears of yesteryear. Let it be known that any downstream poirt will almost certainly toggle this ASAP.
2018-08-25 21:17:34 +01:00
toaster
973b3c3f5e
Continuing my recent streak of making random lighting/colormap-related fixes to long-standing bugs:
...
* Fix that thing where ALL transparent FOF planes were continuously fullbright unless encased in a fog which disables sprite fullbrightness, which was long-hated by many people in the community!
* For backwards compatibility, setting flag 1 in that fog field (which is probably the most common "in-the-wild" usage of this feature) will continue to make objects un-fullbright.
* For situations where you desperately want the behaviour to be enabled, you can apply fog flag 2.
* Change the fadestart and fadeend range in which colormaps are generated.
* The problem HERE was that the darkest light level reached by generated colormaps was actually slightly brighter than the darkest level reached by normal colormaps.
* The typo I fixed does have SOME basis in fact - standard colormap lumps are 34 (33 in 0-indexing) long rather than 32 (31), but whoever wrote this didn't realise that the code for generating them didn't do it DooM style, just bright-to-dark with no extras on the end...
2018-08-25 16:46:45 +01:00
Monster Iestyn
febefd41ba
Fix glitches with flats visible when looking up/down in 1st person
2018-08-18 23:31:20 +01:00
Monster Iestyn
fbd4ce1d47
optimised R_ExpandPlane too
2018-02-07 18:11:32 +00:00
Monster Iestyn
5c70d6e6ca
Fix skies in software being displayed backwards
...
(I'll get round to OpenGL later)
2018-01-27 19:29:41 +00:00
Monster Iestyn
f6c740840a
Move sky plane-drawing code from R_DrawPlanes to a new function called by R_DrawSinglePlane
...
This potentially allows FOFs and polyobjects to display sky flats on them properly, unless skyboxes are involved in which case they'd fail either way
I also updated or added comments to some places of the sky drawing code and related where useful
2018-01-27 19:18:17 +00:00
toasterbabe
1d11a14f64
Getting polyobject flats to the equivalent functionality BEFORE I changed up how floor offsets worked. (Doesn't touch OGL, since they work perfectly there.)
2017-08-08 15:32:12 +01:00
toasterbabe
48ed7835d7
Add a helpful comment in order to make people who look at this in future suffer less.
2017-04-10 11:41:26 +01:00
toasterbabe
e333dd62f0
I did it!!!!!!!!!!!!!!!!!!!!!!
2017-04-10 11:34:56 +01:00
toasterbabe
8ee8bd532b
Got it rendering slopes far away from the origin properly at the expense of having weird offsets near it. Still experimenting, but closer than ever before.
2017-04-10 10:51:52 +01:00
toasterbabe
54e0a0c17d
Reeeeeeeeeeeeeed fix ur slops
...
Recreated my previous code using floats in case the issue was overflowing that could be mitigated using floating point precision - but still doesn't work. Pulling my hair out.
2017-04-09 15:22:42 +01:00
toasterbabe
ab34bd231b
No need for oldxoffs.
2017-04-01 16:25:20 +01:00
toasterbabe
0ff036c2e2
Some progress!
...
http://i.imgur.com/yVPJQpp.png
Previously, both were visual garbage. So it's gettin' there.
2017-04-01 16:20:20 +01:00
toasterbabe
d5ba29eb9b
Get plane scrolling effects working the same on and off slopes in both renderers again.
2017-03-31 16:45:47 +01:00
toasterbabe
79ec8fbf29
Minor refactor.
2017-03-31 16:29:50 +01:00
toasterbabe
b924a7d902
Interesting consideration: flat angle wasn't used to determine seperate visplanes. This is obviously incorrect behaviour. Enabling this restriction makes flat alignment on slopes ALMOST work identically to normal, but not quite.
...
Also, made the fudge a const, since it may as well be one.
2017-03-30 23:56:14 +01:00
toasterbabe
d62a628346
Consistency between software off-slope and GL on+off-slope flat alignment! (Software slopes are now MORE broken with respect to this, but that comes later.)
2017-03-30 22:48:13 +01:00
Monster Iestyn
12ae6bb22a
Merge branch 'public_next'
...
# Conflicts:
# src/d_clisrv.c
# src/r_things.c
2017-01-07 15:03:59 +00:00
Monster Iestyn
b66925e467
R_FindPlane now has a polyobj argument, R_DrawPlanes now skips polyobj planes, like it does with FOF planes
2016-10-09 21:48:25 +01:00
Monster Iestyn
f3efebe889
Merge branch 'vertical-sky-distort2' into 'master'
...
Proper barrel sky distortion
Skies now use proper barrel distortion in both axes, rather than just the x-axis (i.e. just horizontally) as in all previous SRB2 versions. Credit goes to Nev3r for the original change and idea.
Was going to make an option for a non-barrel distorted sky, assuming barrel distortion is the default, but I just can't quite get it to work in a way that is pleasing to the eyes. So I've not bothered with it here for now, unless someone objects to barrel distorted skies for any reason?
See merge request !35
2016-10-07 17:30:15 -04:00
Monster Iestyn
f465de8f8c
Nev3r's vertical sky distortion
2016-08-01 21:07:01 +01:00
Monster Iestyn
fe5b8c58af
Add basic support for animated sky textures
2016-07-31 20:51:39 +01:00
Alam Ed Arias
57091261d9
MSVC: fixed up MSVC project
2016-05-21 23:53:04 -04:00
Inuyasha
f07585191b
copyright dates/statements updated and such
...
(no actual SLOC changes)
2016-05-17 17:42:11 -07:00
Monster Iestyn
48e3b5e37d
Corrected botch-up with plane viewangles, slope planes probably broke because of the last commit
2016-04-05 10:43:56 +01:00
Monster Iestyn
44fe6e0533
Fix sky rendering when visportals are on-screen.
...
They now render the same way they would if you were actually at the other side of each portal. Why didn't they do this before?
2016-04-04 21:46:51 +01:00
Monster Iestyn
3c5a8b806d
Fix slope planes rendering at wrong heights when visportals are visible on-screen
2016-04-04 20:49:01 +01:00
Monster Iestyn
1e131d2786
Partial undo of what I did last commit to make Inu happy again.
...
Note: polyobj_t's "translucency" is apparently a SIGNED integer, so in theory it's possible to get polyobj flats to use the "spanfunc = splatfunc" line using negative values. If this is not meant to happen, this should probably be fixed asap
Conflicts:
src/f_wipe.c
2016-01-14 16:40:55 +00:00
Monster Iestyn
734419d549
FF_TRANSSHIFT is meant for transmaps linked to states, not anything else!
...
I'm surprised how the source code flew in the face of this fact for so long and just used it everywhere, that's just silly.
Conflicts:
src/f_wipe.c
2016-01-14 16:39:31 +00:00
Monster Iestyn
8cad9a6dc8
We can compile the slopes code now, yay! My brain hurts.
...
Compiling errors fixed in this commit:
* Various cases of mixed declaration and statement code
* Implicit declaration of slope functions (read: you forgot to put "include "p_slopes.h" in MORE than a few places)
* an odd case of a bad fixed_t to float typecase, cause by using P_GetZAt directly inside FIXED_TO_FLOAT
* a few minor cases of bad unsigned-signed comparisons
* no prototypes for some of the new slope functions. For goodness sake Red, this is basic stuff!
2016-01-03 10:30:36 -06:00
RedEnchilada
6026fa42eb
Add masked FOF slopes (+other rendering tweaks)
2015-08-03 14:47:05 -05:00
RedEnchilada
e0d97e4b1a
Slope planes should now not turn into static in 99% of cases
2015-05-23 16:27:15 -05:00
RedEnchilada
109d379980
Fix conveyor slopes eventually turning to static
2015-05-23 15:44:53 -05:00
RedEnchilada
485f671f23
Sloped planes now respect flat offsets
2015-05-23 02:18:32 -05:00
RedEnchilada
3629a2141b
Slope planes work again. I hacked an alignment fix in too.
2015-05-23 01:19:38 -05:00
RedEnchilada
89319b1c2a
Dummy out m_vector and use m_fixed's functions instead
...
These functions were already here before, and I /swear/ the slope
physics became slightly less glitchy after switching to them...
Only issue is the slope plane mapping code hasn't been properly
converted yet, so they don't render properly for now.
2015-05-22 22:07:07 -05:00
RedEnchilada
0af3852273
Add translucent slope renderer
2015-05-17 12:24:20 -05:00
RedEnchilada
bd0b7829bb
Fix rotated flats on slopes
2015-05-14 10:55:43 -05:00
RedEnchilada
0cc917a0ff
Plane lighting for slopes now actually acts like it should
2015-05-13 21:41:54 -05:00
RedEnchilada
d0a726c00b
Teeny optimization in renderer code??
2015-04-26 13:06:45 -05:00