Eidolon
0dc337c9a5
Fix lots of code for clang-cl compatibility
2025-09-17 17:24:32 -05:00
Nep2Disk
7aceefa904
Add support for terrain floorClip and RF_ALWAYSONTOP in legacyGL
2025-09-15 20:59:15 -05:00
Eidolon
7febf53ec0
Merge public master
2025-08-23 11:34:18 -05:00
Chearii
19fdf19eb4
Add baked offset parameters
2025-08-23 11:20:14 -05:00
Oni
c2cafcdbfb
Merge branch 'hitlagjitter-interp' into 'master'
...
Interpolate hitlag jitters
See merge request KartKrew/RingRacers!112
2025-08-23 00:24:54 +00:00
Eidolon
6e8fdf7f59
Merge public master
2025-08-18 16:30:49 -05:00
Eidolon
dcef3fd4e9
Merge branch 'fixmodelinitoverflow' into 'master'
...
Fix buffer overflow in HWR_InitModels
See merge request KartKrew/RingRacers!114
2025-08-18 21:08:48 +00:00
Eidolon
892a6b8620
Merge public master
2025-08-12 16:49:14 -05:00
Eidolon
255570cfca
Dynamically allocate skins
...
This avoids an issue where the skins array takes up a fixed, but large
amount of memory at runtime. On x86_64 linux, that array is roughly 80
megabytes in memory, most of which is unused when the game is unmodded.
Instead, we treat `skins` as a dynamically resizing array, and it is an
array-of-pointers into separate allocated `skin_t`.
This is based on Lactozilla's skin limit MR for SRB2, but I've rewritten
it because RR has diverged quite a bit.
This was verified to check every access of `skins` by using clangd's
find-all-references function. However, I have only tested plain skins,
not Lua addons, so that could afford some extra checking.
2025-08-12 15:33:00 -05:00
toaster
471e11f4b5
HWR_CreateBlendedTexture: Do not operate on colorbrightnesses outside of TC_RAINBOW
...
This array is uninitialised when that is not being operated upon, and the valid context was only one bracket away, so shift it over
2025-05-18 15:50:34 +01:00
Alug
c07e0452c7
fix overflow due to too small name array size in fscan in model init
2025-05-17 18:25:41 +02:00
luigi budd
2d8c10a694
Interpolate hitlag jitters
2025-05-10 21:33:06 +00:00
Nep2Disk
05de187667
Fix patches being turned inside-out by cliprect in GL
...
Turns out the reason the chat looks strange in LegacyGL is because of cliprect.
This is a fix that was done by GenericHeroGuy for one of my other projects.
2025-02-22 18:08:13 +00:00
Eidolon
5f10a35691
Merge branch 'fixfofalphaogl' into 'master'
...
Clamp rover->alpha levels in LegacyGL
See merge request KartKrew/RingRacers!57
2025-02-14 01:58:39 +00:00
Eidolon
a4d304a1f5
Update copyright years to 2025
2025-02-13 15:32:26 -06:00
Alug
a362e3e23d
reflect sorting order when filling polygon array
...
functionally the same, but keeps consistency
2024-11-27 18:40:57 +01:00
Alug
7e2fbe6217
fix "fade_end" comparison in comparePolygon for ogl batching
...
effectively the comparison for the "fade_end" polygon property was directly discarded and unused
2024-11-27 18:33:17 +01:00
Alug
fed0d3626b
remove subtract by one
2024-11-05 20:47:24 +01:00
Alug
266aa14daf
Clamp rover->alpha levels
2024-09-16 20:13:13 +02:00
wehrlia
05d47fd06b
hw_draw.c: Don't draw anything if alphalevel > 12
2024-08-21 16:59:04 -03:00
bitten2up
cfacbd91be
Fix implicit casts of int expecting 4-byte width
...
This fixes the issue with certain compilers that have int set to
different sizes by either explicitly casting or setting templates
manually
2024-05-03 17:53:53 +00:00
toaster
03e37d1996
HWR_DrawFadeFill, HWR_DrawDiag: Adjust x and y with V_ snap flags
...
Fixes Challenge Board in opengl nongreen resolution
2024-04-26 16:06:13 +01:00
toaster
db9d9059b9
HWR_ProjectSprite: Fix messed up encore remap check ( resolves #1224 )
2024-04-14 20:27:22 +01:00
toaster
1765e270d1
V_DrawCustomFadeScreen fallback behaviour for Legacy GL
2024-04-11 22:12:21 +01:00
Eidolon
3c881597c9
gl: Treat PF_Masked as lower priority than other modes
2024-04-09 13:41:32 -05:00
Sally Coolatta
8f88c29387
SRB2 -> DRRR copyright in hardware folder
2024-04-05 10:00:33 -04:00
Oni
4d0b02413d
Merge branch 'gl-no-resend-load' into 'master'
...
Don't draw OpenGL loading screen when resynching the gamestate
See merge request KartKrew/Kart!2209
2024-04-03 01:06:56 +00:00
James R
01135e1940
Force FOV to 90 during Podium and Title Screen
2024-04-01 19:07:37 -07:00
SteelT
75b7d4bc42
Don't draw OpenGL loading screen when resynching the gamestate
2024-04-01 18:04:19 -04:00
Oni
b8e37bff2f
Merge branch 'fix-ogl-clip-rect' into 'master'
...
Legacy GL: fix cliprect in top/left (fix stretched Kart Krew text for intro)
See merge request KartKrew/Kart!2167
2024-03-29 19:43:04 +00:00
Oni
3694f1b2a2
Merge branch 'gl-no-titlemap-loading' into 'master'
...
Don't draw OpenGL loading screen on titlemap or credits attract demos
See merge request KartKrew/Kart!2166
2024-03-27 22:38:49 +00:00
James R
a43436d469
Legacy GL: fix cliprect in top/left
...
- UV were not adjusted correctly when clipped in the
top/left.
- Code is more plainly written.
2024-03-25 17:34:56 -07:00
James R
8387b5e2cd
Don't draw OpenGL loading screen for credits attract demos
2024-03-25 17:01:18 -07:00
SteelT
5b4b31a354
Don't draw OpenGL loading screen on titlemap
...
As it looks kinda jarring seeing it appear on the title screen for a split second.
2024-03-25 13:29:30 -04:00
James R
c0c1400f98
Legacy GL: sprites support demo skin silhouettes
...
Code more closely matches R_GetSpriteTranslation
2024-03-25 04:04:01 -07:00
James R
1be8e6a762
Legacy GL: models support demo skin silhouettes
...
Code more closely matches R_GetSpriteTranslation
2024-03-25 04:03:57 -07:00
James R
30b3199e28
Legacy GL: models support TC_BLINK
2024-03-25 04:03:27 -07:00
Lach
8d7cc11346
Typo correction: Lightning -> Lighting
2024-03-09 19:25:43 +11:00
Lach
dd52fb7620
Disable directional lighting on Ark Arrow models
2024-03-09 17:37:54 +11:00
toaster
7f0df71558
R_SkinAvailableEX
...
- Most R_SkinAvailable calls should be returning index into demo.skinlist (same numerical value as when demo was recorded), for demo sync
- A handful of general things permit exception for this
- Expose `replaynumskins` (calculated as `(demo.playback ? demo.numskins : numskins)`) to Lua
- There's *always* more that can be done for this, but this is the minimum spec that can at least be somewhat stable
2024-03-05 13:21:38 -08:00
James R
c6bdf4eae3
Remove RANGECHECK, replace with devmode prints
...
- All code that would I_Error behind RANGECHECK, simply
return
- Add debug prints under devmode render
2024-03-03 17:31:33 -08:00
Sal
16f021d7a5
Merge branch 'legacy-gl-is-unsupported' into 'master'
...
Bring back OpenGL "USE AT ROBOTNIK'S RISK" warning screen
See merge request KartKrew/Kart!1987
2024-03-03 01:31:50 +00:00
AJ Martinez
47a9cce133
Add shittysigns cheat
2024-03-02 04:27:41 -07:00
James R
1e44088373
Bring back OpenGL "USE AT ROBOTNIK'S RISK" warning screen
2024-03-01 18:38:16 -08:00
AJ Martinez
25ea0bf743
Exclude all "3D Geometry" sprites from sprite-clip hack
2024-02-14 04:14:28 -07:00
AJ Martinez
77617c9d31
GL: Don't pull papersprites towards camera
2024-02-13 18:19:52 -07:00
SteelT
488386db68
Check for SPR2_SIGN, SPR2_SIGL and SPR2_TALK as well
2024-01-22 22:40:38 -05:00
SteelT
626d39870b
Don't allow model rendering on Ring Shooter face overlay
2024-01-22 22:19:13 -05:00
AJ Martinez
fb20f7b036
Merge branch 'opengl-brightmaps' into 'master'
...
OpenGL BRIGHTMAPs + sprite/model directional lighting
See merge request KartKrew/Kart!1485
2024-01-19 05:14:41 +00:00
James R
014cbdb3bb
OpenGL: fix BRIGHTMAP sneaking into textures where it doesn't belong and creating artifacts
2024-01-17 18:21:46 -08:00