Commit graph

180 commits

Author SHA1 Message Date
Alug
68fbf19e27 Fix custom mappalettes not applying to the screen palette
Fixes RB Raceway
2025-12-15 22:40:53 +01:00
Alug
6b81279e33 Revert "Merge pull request 'Revert Pal Render for fixing' (#199) from revertpalfornow into next"
This reverts commit 68dc60eea2, reversing
changes made to e4ce835acb.
2025-12-15 22:25:50 +01:00
NepDisk
4201174519 Revert "Port palette rendering from SRB2"
This reverts commit 5b7699b29a.
2025-12-14 23:38:50 -05:00
NepDisk
6e71c6dd04 Revert "Fix 2.1 palette conversion system issues with GL pal render"
This reverts commit 7bf9975547.
2025-12-14 23:36:44 -05:00
NepDisk
719a7b767e Revert "Clean up 2.1 pal conversion code a lil bit in palshader"
This reverts commit 7a5d5c7a80.
2025-12-14 23:36:35 -05:00
NepDisk
a57e61823d Revert "Unhack Brightmap handling for Palette Rendering"
This reverts commit fea8fe2505.
2025-12-14 23:34:26 -05:00
Alug
fea8fe2505 Unhack Brightmap handling for Palette Rendering
Turns out the Issue was just both the palette and lighttable textures were already bound to the texture unit the brightmap will be bound to, which led the shader to just try get the brightmap data from the lighttable texture instead of the brightmap texture
2025-12-07 00:43:49 +01:00
NepDisk
7a5d5c7a80 Clean up 2.1 pal conversion code a lil bit in palshader 2025-12-06 11:42:34 -05:00
NepDisk
7bf9975547 Fix 2.1 palette conversion system issues with GL pal render 2025-12-06 11:33:06 -05:00
NepDisk
5b7699b29a Port palette rendering from SRB2
Thanks Alug for assistance porting this!

Does not currently support brightmaps
2025-12-05 19:00:23 -05:00
NepDisk
5e63f06de8 only call netkeepalive between calls during gl precache
bcd54110d5
2025-11-14 17:22:05 -05:00
NepDisk
a2e9d4ec64 Revert "call NetKeepAlive during ogl precache"
This reverts commit 278c1ee941.
2025-11-09 20:52:09 -05:00
NepDisk
d7ed03fab9 Remove M_Memcpy
Was quite literally a wrapper that did nothing.
2025-11-08 02:00:30 -05:00
Alug
278c1ee941 call NetKeepAlive during ogl precache
should prevent timeouts on slower systems (*cough* *cough* windoze *cough*) hopefully
thx neppy for the idea!
2025-11-07 16:19:10 -05:00
NepDisk
2fc82065b2 HWR_PrecacheLevelFlats: only run flat encore case when having an 'encoremap'
f34a47c50d
2025-11-07 16:15:30 -05:00
Alug
fc8066b92b HWR_PrecacheLevel: disable sprite precaching
in some cases this may lead to crashes, its mostly useless in gl eitherway due to how colourmapped sprites work
2025-11-07 16:13:10 -05:00
NepDisk
1b499b2a61 [PATCH] Fix GL encore texture num issues 2025-10-30 15:23:56 -04:00
NepDisk
a8609d7204 Un-shitify function.acp1 pointers 2025-10-23 23:26:26 -04:00
NepDisk
ff467c676c port over most fixes from srb2classics clang-tidy pr
Based on 939354f483
2025-10-17 10:32:21 -04:00
NepDisk
b865638cb8 Port restrict and LIKELY/UNLIKELY macros and mark stuff for blitting loop as const and with register 2025-08-18 09:59:58 -04:00
Alug
273ac799c1 optimize legacy sky handling in HWR_GenerateTexture
same test case as earlier on stardust clasic ~20ms faster on my machine
2025-08-07 15:35:03 +02:00
NepDisk
a544be6b84 Fix Encore issues in OpenGL
Thanks Alug!
2025-07-26 14:31:34 -04:00
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
NepDisk
5ce7eef8d8 Add some encore stuff to GL renderer 2025-05-29 13:14:57 -04:00
NepDisk
e78e49e3c1 Texture precaching
A simple port from saturn
2025-05-29 12:06:51 -04:00
GenericHeroGuy
647bc08b3f Fix chromakey in encore mode (+ cleanup) 2025-05-25 19:36:37 +02:00
NepDisk
b429a3e74c Repair removeflats commit to make it function correctly with colormapping 2025-05-25 10:57:49 -04:00
NepDisk
c83d5cebd4 AAAAAA
I'll be honest what am I doing???
2025-05-25 02:01:33 -04:00
NepDisk
6874f7ca70 Fix brightmap overlays being drawn instead of regular texture: 2025-05-25 00:48:25 -04:00
NepDisk
c7cbc27efb completly borked remove flats port
Completey fucked color and brightmap handling for floors.
2025-05-24 23:41:33 -04:00
GenericHeroGuy
d3d67d1d0e W_NeedPaletteRemap refactor because I'm stupid 2025-02-18 21:56:24 +01:00
GenericHeroGuy
48bb0ea5ef The actual palette remapping 2025-01-24 18:18:37 +01:00
NepDisk
f52d841220 Revert "TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP"
This reverts commit d062173bfc.
2024-12-30 08:52:46 -05:00
NepDisk
2a50e4693a Fix noencore map not getting used. 2024-12-29 14:39:06 -05:00
Eidolon
95b98700ae Add encoremap to textures-as-flats 2024-12-29 14:37:35 -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
049c182288 Massive warning clean up 2024-10-23 00:01:03 -04:00
NepDisk
973760e60d opengl directional lighting and gl brightmaps 2024-09-05 22:17:22 -04:00
NepDisk
4395d26168 TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
Nep Note: I dont know where dc_copy or dc->lightmap are from once I find out Ill uncomment that code....
2024-09-05 22:12:44 -04:00
Eidolon
603be1dcaa Merge branch 'gl-encoremap-leak-fix' into 'master'
Fix GLENCORE memory leak, re-enable

See merge request KartKrew/Kart!1688
2024-08-01 03:44:32 -04:00
toaster
a149fa9db9 GL now loads in netgames and doesn't memory leak
What is broken:
* Encore mode remapping in GL only
* Seizure effect in Daytona (NOT IVO SAFE)
* God knows what else has been waiting in the wings
2021-12-09 20:57:15 +00:00
Sally Coolatta
a93acd1958 Make it through OGL 2021-03-01 01:48:31 -05:00
Sally Coolatta
9d7ec0ab8f Merge SRB2 next
Probably doesn't compile yet, but I got rid of all of the conflicts for anyone who wants to take a stab at it.
2021-02-27 05:18:36 -05:00
toaster
4052e01f4a Introduce a sequence of macros to reduce the reliance of Colormap-related code (especially but not limited to Encore mode) on magic numbers. 2021-02-16 14:34:00 +00:00
Jaime Ita Passos
7e28b7d3e9 OpenGL backend: Manage uploaded GPU textures with an internal list
Indirectly fixes the game doing whatever after freeing a patch.
This commit implements a FTextureInfo struct type, instead of it being a typedef to the GLMipmap_s struct type.
2021-01-27 17:48:57 -03:00
LJ Sonic
2fcebc5eba Merge branch 'gl-levelflat-fix' into 'next'
Fix a misuse of levelflat_t.picture in OpenGL

See merge request STJr/SRB2!1327
2021-01-25 16:40:02 -05:00
Jaime Ita Passos
5b56c49e1f Fix a misuse of levelflat_t.picture in OpenGL (Kitchen Sink SRB2 port) 2020-12-14 02:07:12 -03:00
Jaime Ita Passos
f928709fa5 Fix animated skincolors in OpenGL 2020-12-06 20:17:14 -03:00
Jaime Ita Passos
490758eac2 Remove SHORT macros for referencing patch width/height/offsets 2020-11-22 20:02:47 -03:00
Jaime Ita Passos
82b11c224a Improve GPU texture management. 2020-11-22 18:18:26 -03:00