Commit graph

158 commits

Author SHA1 Message Date
Atirut Wattanamongkol
8aacf6255b Merge branch 'dff-loader' into main 2022-11-14 19:31:05 +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
40e6e18b7c Use new flycam 2022-11-14 18:29:45 +07:00
Atirut Wattanamongkol
13718a4c01 Move the camera a bit closer 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
def7a0cc6e Implement geometry mesh getter 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
29d5bd4ff5 Camera rig 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
0f5a6112bb Optimize stuff 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
b3921c0268 Make DFF viewer top bar take less space 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
1bc9e49d6f Revamp model viewer uI 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
399636a924 World grid material 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
9e2bbdda94 Move DFF test scene 2022-11-14 18:24:49 +07:00
Atirut Wattanamongkol
bba140875c DFF test scene 2022-11-14 18:24:10 +07:00
Atirut Wattanamongkol
934b1234b7 RWClump stub 2022-11-14 18:23:43 +07:00
Atirut Wattanamongkol
52b51c6139 Implement up & down flycam movement
Forgot to implement this
2022-11-14 18:23:16 +07:00
Atirut Wattanamongkol
9de5bd986a Merge branch 'flycam' into main 2022-11-14 18:18:54 +07:00
Atirut Wattanamongkol
b10fd84e3b Implement flycam 2022-11-14 18:18:14 +07:00
Atirut Wattanamongkol
040c27d01a Flycam prefab 2022-11-14 17:31:26 +07:00
Atirut Wattanamongkol
fc0a4ca394 Add monke model for testing 2022-11-14 17:27:02 +07:00
Atirut Wattanamongkol
850ee36fb1 Flycam scene 2022-11-14 01:24:32 +07:00
Atirut Wattanamongkol
cf39ec2a7d Overhaul main menu script 2022-11-14 01:01:10 +07:00
Atirut Wattanamongkol
61cfd30a53 Tweak TXD viewer 2022-11-14 00:46:28 +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
0a85a7e5c3 TXD test -> Texture viewer 2022-11-10 21:05:48 +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
fedcea23fa Clean up TXD test script 2022-11-10 03:51:49 +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
0a135bc679 Update TXD test scene 2022-11-10 02:32:45 +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
94a3750cbb Enable MSAA 2022-11-09 23:29:35 +07:00
Atirut Wattanamongkol
ca1eb2b49e Merge branch 'txd-loader' into main 2022-11-09 09:58:52 +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
Atirut Wattanamongkol
cd35a93d63 TXD loader scene 2022-11-09 04:10:09 +07:00