Commit graph

6672 commits

Author SHA1 Message Date
UnknownShadow200
a645f407bc Fix console builds and integrate N64 backend files into the main .sln file 2023-11-03 22:14:27 +11:00
UnknownShadow200
8a20397b6e
Merge pull request #1090 from UnknownShadow200/GfxRewrite
Graphics rendering backend related changes
2023-11-03 21:47:54 +11:00
UnknownShadow200
776906ebce Move entity name rendering into more general EntityRenderers module 2023-11-03 18:34:05 +11:00
UnknownShadow200
a81d9d7ee9 Try to handle out of VRAM when allocating vertex buffers across all graphics backends 2023-11-03 08:50:41 +11:00
UnknownShadow200
3fa4ef6d44 Unify texture creation checking, and defer dynamic vertex buffer allocation for rain/snow until actually needed 2023-11-03 08:06:16 +11:00
UnknownShadow200
abe92bfe8f 3D kinda works 2023-10-29 09:23:14 +11:00
UnknownShadow200
70410bfff3 Non working nintendo 64 test port 2023-10-28 22:07:22 +11:00
UnknownShadow200
4bb4f89781 Move weather rendering to LockDynamicVB/UnlockDynamicVB too 2023-10-27 18:25:51 +11:00
UnknownShadow200
a4fb5098ef Eliminate usage of Gfx_UpdateDynamicVb_IndexedTris 2023-10-26 21:58:13 +11:00
UnknownShadow200
c0831a8f04 Only try to clear solid white/black pixels in 'hat' area of skin for humanoid models - don't do this for skinnedcube or custom models 2023-10-25 22:06:02 +11:00
UnknownShadow200
8d012e9029 Fix last commit oops 2023-10-23 20:42:46 +11:00
UnknownShadow200
0355fdf863 Use elapsed game time instead of elapsed system time for automatic periodic block place/delete when mouse is held down 2023-10-23 20:38:36 +11:00
UnknownShadow200
9e561e645f Consoles: Slightly offset FPS/position text on consoles that output to TV displays to avoid them being partially clipped due to overscan 2023-10-22 20:18:35 +11:00
UnknownShadow200
9e978a2f31 Dreamcast: Add keyboard support 2023-10-22 11:57:02 +11:00
UnknownShadow200
edab3d2ec0 Dreamcast: Fix not compiling 2023-10-21 15:02:59 +11:00
UnknownShadow200
1cc9746511 Dreamcast: Fix can't go in-game anymore 2023-10-21 14:07:41 +11:00
UnknownShadow200
dd45c90b4c Fix custom blocks with no fog in .cw files mistakenly still being loaded with fog density
The easiest way to reproduce this was to use noclip to move inside a solid custom block, and then notice the horizon has become black fog

To solve this problem for both current and past client versions:
- when the read FogDensity value is 0, the in-memory fog density value is set to 0
- when writing FogDensity values to disc, 0xFF instead of 0 is written to indicate 'no fog' (since older client versions convert FogDensity values of 0xFF to 0 in-memory)
2023-10-21 11:42:42 +11:00
UnknownShadow200
60e5b4efa0 WIP on splitting up static and dynamic vertex buffers 2023-10-21 09:29:23 +11:00
UnknownShadow200
b168adc7fe iOS: Update the XCode project so it compiles again 2023-10-20 19:10:37 +11:00
UnknownShadow200
816c1dac8e macOS: Try to fix camera majorly warping the first time after returning to the game from an in-game menu
Note that this was only fixed in the cocoa backend. It still happens in the carbon backend
2023-10-19 22:37:42 +11:00
UnknownShadow200
d443d3d35c Windows: Also dump stack contents near stack register on crashes 2023-10-19 20:05:15 +11:00
UnknownShadow200
532b9924d4 Finish launcher screen rewrite 2023-10-18 20:02:24 +11:00
UnknownShadow200
d60550683c Allow loading HD terrain.png as long as a single tile fits within the GPU's texture limits, instead of the entire terrain.png
For example, this means a GPU with max texture size of 1024 x 1024 can now use a 4096 x 4096 terrain.png

I don't know how well it will perform, but it probably won't be great
2023-10-17 21:40:14 +11:00
UnknownShadow200
9bbee1cb8f Show better error messages for some reasons plugins fail to load, fixes #1076 2023-10-17 08:12:38 +11:00
UnknownShadow200
09bfca5217 Launcher: Simplify button initialisation code 2023-10-14 12:49:06 +11:00
UnknownShadow200
656497b0ea Start moving entity shadow rendering to dedicated file 2023-10-12 20:11:23 +11:00
UnknownShadow200
6aedeffa30 Console: Don't show Register button in Launcher and disable support for opening links from chat, fixes #1081 2023-10-11 20:46:07 +11:00
UnknownShadow200
4042e3e742 Launcher: Simplify creating screens with non-fixed number of widgets 2023-10-11 19:49:06 +11:00
UnknownShadow200
2d8067ea2d Consoles: Always use Goodly's font for classicube texture pack as the system font 2023-10-09 20:26:11 +11:00
UnknownShadow200
b827246fcc Try to fix Xbox and Dreamcast builds again 2023-10-08 18:26:16 +11:00
UnknownShadow200
5a094d1a70 Get it to compile with tcc again 2023-10-07 23:40:57 +11:00
UnknownShadow200
76c175e61d Make it compile in MSVC again 2023-10-07 22:20:30 +11:00
UnknownShadow200
32d29727b4
Merge pull request #1073 from calebabutler/math
Remove external math lib dependency
2023-10-07 21:48:32 +11:00
UnknownShadow200
67c7a486cd PS3: Fix rendering and add actions workflow 2023-10-07 08:57:25 +11:00
UnknownShadow200
4c60ceda46 PS3: Rendering mostly works now 2023-10-06 22:07:20 +11:00
UnknownShadow200
57c05867d6 PS3: Rendering sort of works now 2023-10-06 20:45:44 +11:00
UnknownShadow200
4f6d3850f0 PS3: Make texture animations work 2023-10-06 20:00:48 +11:00
UnknownShadow200
9ee529c8c3
Merge pull request #1078 from Spongecade/patch-1
Update Minecraft wiki links to new domain
2023-10-06 08:09:38 +11:00
Spongecade
6e232e6178
Update Minecraft wiki links to new domain 2023-10-05 16:02:36 -05:00
Caleb Butler
c13d4f4429 Rename PI and DIV_2_PI to avoid conflict
On Windows, PI and DIV_2_PI are already defined, so we cannot use those
names for constants. I renamed them to DOUBLE_PI and DOUBLE_DIV_2_PI
respectively.
2023-10-05 09:48:16 -04:00
Caleb Butler
4741c548d6 Fix compiling on VS2019
In VS2019, although the math functions are intrinsic, they need to be
declared by the math.h header. So the header must be included in the
ifndef block.
2023-10-05 09:40:52 -04:00
Caleb Butler
0d97d58edc Fix arguments of Atan2 to match ExtMath.h 2023-10-05 09:08:48 -04:00
UnknownShadow200
d932c8cbb5 PS3: Texturing at least works now 2023-10-04 23:40:49 +11:00
Caleb Butler
cc933ced82 Remove -O2 from readme 2023-10-02 12:41:09 -04:00
Caleb Butler
13f73de403 Remove external math lib dependency
Replace external math lib functions with our own custom versions.
2023-10-01 22:13:28 -04:00
UnknownShadow200
031da68c8e Dreamcast: Fix build not working, also add classicube textures for default textures since Dreamcast build currently can't write any files 2023-09-30 15:22:23 +10:00
UnknownShadow200
2b34308d8d Dreamcast: Hopefully get github actions build to work 2023-09-30 13:44:27 +10:00
UnknownShadow200
08e2238a49 Dreamcast: Simplify gldc code a bit, to hopefully alleviate the minor performance reduction from disabling LTO 2023-09-30 12:36:41 +10:00
UnknownShadow200
b07f6575ba WIP on very basic platform independent system font backend 2023-09-30 09:11:21 +10:00
UnknownShadow200
0c2b52efe7
Merge pull request #1072 from UnknownShadow200/MainClosingRewrite
Allow closing back to launcher on consoles
2023-09-29 16:07:59 +10:00