Commit graph

46 commits

Author SHA1 Message Date
Atirut Wattanamongkol
ad37be19b7 Stuff 2025-03-04 14:25:47 +07:00
Atirut Wattanamongkol
e3c1371871 Fix coordinate system 2025-03-04 14:04:25 +07:00
Atirut Wattanamongkol
afd55cd8bc Use safer typed dictionaries 2025-03-04 13:57:57 +07:00
Atirut Wattanamongkol
819b871e87 Upgrade to Godot 4.4
This also update resource references to use UIDs.
2025-03-04 13:46:01 +07:00
Ribbon
fdeee17337 Huge cleanup and improvements 2024-08-15 19:25:32 -03:00
Atirut Wattanamongkol
16efb3f0cd Fix models not loading 2024-08-01 10:14:10 +07:00
Atirut Wattanamongkol
027f2ccd53 Finish implementing Frame List 2022-12-04 17:35:40 +07:00
Atirut Wattanamongkol
492487029f Initial progress on RW Frame List 2022-12-04 17:16:17 +07:00
Atirut Wattanamongkol
99df35219e Implement the rest of chunk types 2022-11-19 04:19:19 +07:00
Atirut Wattanamongkol
dfc8da11f4 Some initial work 2022-11-19 03:56:48 +07:00
Atirut Wattanamongkol
d3d499e48a Properly load mipmaps
This fix some textures failing to load after the rewrite
2022-11-19 02:45:26 +07:00
Atirut Wattanamongkol
2cbd6eb139 Mipmap stuff 2022-11-18 11:31:04 +07:00
Atirut Wattanamongkol
1fdbda65a0 Rewrite RW raster loader 2022-11-18 09:37:51 +07:00
Atirut Wattanamongkol
9333bf54fa Implement multiple textures 2022-11-18 01:20:04 +07:00
Atirut Wattanamongkol
33d387d52b Make RWTexture properties easier to access 2022-11-17 22:17:12 +07:00
Atirut Wattanamongkol
4812a2c22c Alpha detection 2022-11-17 18:46:38 +07:00
Atirut Wattanamongkol
5437920383 Load texture info only when textured 2022-11-15 21:29:53 +07:00
Atirut Wattanamongkol
0486f3c95c Read material data from DFF models 2022-11-15 21:02:40 +07:00
Atirut Wattanamongkol
663c3c5ced Load geometry UV(1) 2022-11-15 20:00:22 +07:00
Atirut Wattanamongkol
689f1daf62 Got the whole map to show 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
f64a25dff1 Fix model orientation being wrong
Turns out the game use XZY coordinates
2022-11-14 18:50:19 +07:00
Atirut Wattanamongkol
def7a0cc6e Implement geometry mesh getter 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
7aa192980a Properly detect UV set flags 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
f679eac565 Expose UV count 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
de4d50d91e Properly calculate UV count from flags 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
5e565fe3a8 Do too much stuff in one commit 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
a90856eba5 Initial progress on RW Clump loader 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
934b1234b7 RWClump stub 2022-11-14 18:23:43 +07:00
Atirut Wattanamongkol
fc88126a90 Shave off some lines from TXD loader 2022-11-11 03:41:27 +07:00
Atirut Wattanamongkol
2518e8f095 Lazy-load TXD rasters 2022-11-11 03:37:25 +07:00
Atirut Wattanamongkol
bbd212a81f Use width * height for correctness
See: https://gtamods.com/wiki/Raster_(RW_Section)
2022-11-10 13:22:16 +07:00
Atirut Wattanamongkol
290a9f99ef Fix dummy image alpha 2022-11-10 04:39:27 +07:00
Atirut Wattanamongkol
c8f648b4af Use raster size in non-palette textures for consistency 2022-11-10 04:37:22 +07:00
Atirut Wattanamongkol
06bf5df987 Implement getter for RW version & build 2022-11-10 04:24:30 +07:00
Atirut Wattanamongkol
a4e71ef104 Make dummy image RGBA8 2022-11-10 03:12:57 +07:00
Atirut Wattanamongkol
4e17f4d283 Remove color format comment from TXD loader 2022-11-10 02:40:06 +07:00
Atirut Wattanamongkol
107581e4a4 Assume even more things about TXD 2022-11-10 02:32:31 +07:00
Atirut Wattanamongkol
c2bd85dc65 Remove RW version assert
Seems to load other textures just fine so eh
2022-11-10 02:21:32 +07:00
Atirut Wattanamongkol
e0fea686d9 Convert BGRA to RGBA 2022-11-10 01:10:28 +07:00
Atirut Wattanamongkol
5870c3a1c1 Finally got RW raster working properly 2022-11-09 23:43:36 +07:00
Atirut Wattanamongkol
ba8e5a6afb Try to clean up codes 2022-11-09 09:37:46 +07:00
Atirut Wattanamongkol
41a18abca7 Implement reading paletted textures 2022-11-09 06:38:55 +07:00
Atirut Wattanamongkol
ed7cda9519 Some more progress on raster loading 2022-11-09 05:55:25 +07:00
Atirut Wattanamongkol
3393916e81 Implement loading all of raster data 2022-11-09 04:29:26 +07:00
Atirut Wattanamongkol
5368372786 Initial progress on TXD loader 2022-11-09 04:10:09 +07:00
Atirut Wattanamongkol
7d1b34fad0 File read test 2022-11-09 04:10:09 +07:00