Commit graph

52 commits

Author SHA1 Message Date
NepDisk
b4ffbe8ba4 Move tracy and libbacktrace to submodules 2026-02-19 16:06:24 -05:00
Alug
4f1f81cea5 rename "ffloor" global to "visffloor"
prevent name conflicts with a bunch of local variables named "ffloor"
2026-02-04 11:01:24 -05:00
NepDisk
ed26b6272b Don't generate textures in R_GetColumn
Based on a commit by lactozilla
2026-02-04 10:52:23 -05:00
NepDisk
27428e8b9f Hack to fix infitely tall software double sided linedefs flicker bug on some maps
Thanks Alug for looking into this.

Unfornately not easy to fix unless convert a bunch of code to use 64bit math or floats.
2026-02-03 15:00:09 -05:00
NepDisk
0534eb4121 Also apply this to r_segs 2025-11-19 23:04:44 -05:00
chromaticpipe
fdf2464ccf Configurable sector brightness in software 2025-11-16 13:54:10 -05:00
NepDisk
9ded583c90 R_AllocClippingTables & R_AllocTextureColumnTables: fix nullptr arithmetic 2025-11-08 02:14:35 -05:00
Alug
88c0fc51d8 software renderer: handle some float type related issues with slope drawers
there were a bunch of cases where inf and nan float results were casted and used with integer things, which is undefined in c

yes i did use ceepeepee for that crap, cause this wouldve been really annoying without templating
if someone really wants that crap to use outside ceepeepee, feel free to make a bunch of wrappers cause im too lazy for that stuff
2025-11-08 02:06:53 -05:00
NepDisk
d7ed03fab9 Remove M_Memcpy
Was quite literally a wrapper that did nothing.
2025-11-08 02:00:30 -05:00
NepDisk
df581ae69f Remove dead renderer code
based on 0eeacaf51e

remove
- broken viewborder code (if we really want it back for some reason, we should rather port RR´s fixed version of it)
- remove console clipping code for software (this was broken eiherway)
- remove hud message clearing stuff
- remove renderscreen and linesize variables (they just pointed to vid.screen and vid.widht)
2025-10-19 16:34:38 -04:00
NepDisk
f7378caf66 Use more vars for multireads to vid.height and vid.width 2025-10-17 10:53:45 -04:00
NepDisk
243359659c init 0 2025-10-13 16:57:41 -04:00
NepDisk
24e15786a2 clear thicksides with memset instead of loop 2025-10-13 11:19:05 -04:00
Lactozilla
3b489df3db Fix SRB2 1393 (Nep: also flats and brightmap support Thx lug) (Closes #115) 2025-09-20 13:43:35 -04:00
GenericHeroGuy
2592c805c3 Revert the renderer FOF inversion logic to SRB2
Dunno what the point of this was, it breaks fog blocks though
2025-07-21 17:10:44 +02:00
NepDisk
38495d4449 Fix some clang warnings 2025-06-14 16:46:49 -04:00
Alug
e63f68e732 fix portal clipping being completely completely broken on kart maps
truly amazing
2025-06-08 22:01:41 +02:00
NepDisk
ecfc29ac8a Revert Test rewrite for R_FFloorCanClip
This reverts commit 86e1a65502.
2025-05-01 12:13:12 -04:00
NepDisk
86e1a65502 Test rewrite for R_FFloorCanClip
Wanna see if this fixes software for windows users.
2025-05-01 11:09:55 -04:00
NepDisk
ed7b667aa7 Update File headers to use BLANKART 2025-04-19 13:33:28 -04:00
NepDisk
fb5d81a26c Fix Copy Paste in wallrange code 2025-04-02 16:28:25 -04:00
NepDisk
0e79925607 [PATCH] Convert kart renderer related changes to use mapnamespace system instead of UDMF
Thanks Alug!
2025-04-02 16:04:54 -04:00
GenericHeroGuy
197be8cb00 Fix FOF sides clipping in Kart maps 2025-03-17 22:14:07 +01:00
Lactozilla
5681f5b803 Fix a possible crash in R_RenderMaskedSegRange
R_AllocTextureColumnTables wasn't checking if the tables were never allocated, making the renderer later attempt to render midtextures for drawsegs that don't contain actual midtextures.
2025-02-11 16:48:45 -05:00
NepDisk
8f040ed151 Reapply 'Implement per-texture offsets in UDMF'
This reverts commit c713de1225.
2025-02-11 16:11:03 -05:00
NepDisk
c713de1225 Revert "Implement per-texture offsets in UDMF"
This reverts commit 6808564763.
2025-02-11 15:52:37 -05:00
NepDisk
77dbfcd3bb Fix Mid texutres not rendering 2025-02-11 11:26:47 -05:00
NepDisk
b9196f921d Use separate table for maskedtexturecol 2025-02-10 17:54:40 -05:00
MascaraSnake
6808564763 Implement per-texture offsets in UDMF 2025-02-10 01:23:32 -05:00
Alug
6c80e5c80f Fix R_DrawWallColumn not rendering some textures on binary maps 2025-01-13 08:02:27 +01:00
Alug
f8fd814799 fix a few other cases i missed in skywall handling 2024-12-31 14:30:15 +01:00
Alug
8c7c0da986 add back hAx for software binary skywall and addline code 2024-12-31 02:24:30 +01:00
NepDisk
c9fd66be7f Fix startcolor 2024-12-30 13:22:48 -05:00
NepDisk
57c4cc6df1 Use some rendering code from durrr 2024-12-30 13:10:51 -05:00
Eidolon
b39bc68b05 Merge branch 'fix-texture-scale-overflow-freeze' into 'master'
Prevent overflow when scaling textures

Closes #844

See merge request KartKrew/Kart!1879
2024-12-30 09:17:49 -05:00
NepDisk
f52d841220 Revert "TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP"
This reverts commit d062173bfc.
2024-12-30 08:52:46 -05:00
Eidolon
df0d49f89a Tracy instrument software BSP traversal and render 2024-12-30 00:23:34 -05:00
James R
e90224bcd1 R_StoreWallRange: do not render textures with holes
- Holey textures are ones where the column height may not
  match the texture height.
- R_DrawColumn cannot cope with this directly and it may
  lead to a read out bounds.
- Transparency would not render for true wall textures
  anyway since these are not masked midtextures, so just
  don't render the texture in this case.
2024-12-29 16:16:08 -05:00
James R
86b8757aee devmode render: display skybox portal, visplane and drawseg counts on HUD
- Skybox portal count moved from console print to HUD
- Displays visplane count and drawseg count
2024-12-29 16:10:12 -05:00
Oni
ac2b3651ae Merge branch 'fix-column-fix' into 'master'
R_DrawColumn_Template: fix non-po2 column drawing

Closes #1033

See merge request KartKrew/Kart!1913
2024-12-29 15:58:35 -05:00
Oni
5c48744842 Merge branch 'templated-drawing' into 'master'
Use C++ templates for DrawColumn/Span

See merge request KartKrew/Kart!1728
2024-12-29 15:56:33 -05:00
Sally Coolatta
397f79fcbf Use C++ templates for DrawColumn/Span
Two reasons:
- Makes it more straight-forward to add brightmaps to the non-power-of-two rendering functions.
- Made it easier to split off brightmap rendering. Hopefully improves performance, but I haven't thoroughly tested this.
2024-12-29 15:19:24 -05:00
James R
d062173bfc TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
- Software* + OpenGL support
- *Not supported: R_DrawColumnShadowed_8
  - This has something to do with walls and FOF lights.
    However, I don't see an easy code solution and I don't
    know how to even test this.
2024-12-29 14:31:53 -05:00
NepDisk
4fd99ef3ff Multithreaded Software rendering 2024-12-29 14:14:28 -05:00
NepDisk
b7b9fdabae Fix transparency issues 2024-12-28 09:03:39 -05:00
NepDisk
3b0e62e495 Clean up R_RenderMaskedSegLoop 2024-12-28 08:41:56 -05:00
James R
76aa677901 debugfinishline: highlight deathpits and instakill planes 2024-12-28 08:03:14 -05:00
James R
312c4234b0 Add specialized drawing loop for debugfinishline
- Cache DBGLINE texture
- Draw this texture at horizon (player's eye level)
- Draw this texture at max brightness
- Do not slope skew this texture
- Use R_DrawColumn_Flat_8 to colorize the this texture
2024-12-28 07:58:41 -05:00
James R
92ca47e9c5 Add debugfinishline, highlight finish line linedefs and black fill solid walls
- Highlight is drawn across the screen at the horizon
  (player's eye level).
- Highlight alternates between red and white for 35 tics
  each.
2024-12-28 07:53:45 -05:00
James R
179608829b Add the debugrender_highlight command, highlight specific rendering in flat colors
Software mode only.

The command is used like this:

debugrender_highlight planes sprites
debugrender_highlight pl spr
debugrender_highlight none

(Abbreviations work.)

Supported rendering to flag:

planes      - sector floor/ceiling
fofplanes   - FOF top/bottom
fofsides    - FOF sides
midtextures - pegged midtexture
walls       - sector upper/lower texture, one-sided linedefs
sprites     - sprites
sky         - skybox
2024-12-27 11:52:16 -05:00