Commit graph

266 commits

Author SHA1 Message Date
Atirut Wattanamongkol
e4e3067841 Fix another rotation axis being wrong 2022-11-18 03:52:32 +07:00
Atirut Wattanamongkol
8466f2279e Merge branch 'map-streaming' into main 2022-11-18 03:48:39 +07:00
Atirut Wattanamongkol
ebbaaf997a Make StreamedMesh thread a class member 2022-11-18 03:46:30 +07:00
Atirut Wattanamongkol
de0ab8708a Initial implementation 2022-11-18 03:10:21 +07:00
Atirut Wattanamongkol
f3b6e658ce Make Item Definition & Placement global classes 2022-11-18 01:52:29 +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
ca4bac0423 Fix wrong rotation on train tracks, etc. 2022-11-17 21:24:10 +07:00
Atirut Wattanamongkol
acb90fc623 Load all geometries in a DFF file 2022-11-17 21:02:09 +07:00
Atirut Wattanamongkol
828a281a3a Add missing newline
Because GDSCript style™️
2022-11-17 20:11:01 +07:00
Atirut Wattanamongkol
aeb4249f5e Use alpha hash
This fixes the alpha sorting problem and also make trees cast shadow but also make some items grainy. Still not sure if I should use this in the long run.
2022-11-17 20:03:21 +07:00
Atirut Wattanamongkol
3c76567ee8 Detect alpha from item flags 2022-11-17 19:40:56 +07:00
Atirut Wattanamongkol
8d2963413a Ignore shadow items 2022-11-17 19:31:34 +07:00
Atirut Wattanamongkol
330b5a7af2 Disable face culling on transparent items 2022-11-17 19:31:18 +07:00
Atirut Wattanamongkol
4812a2c22c Alpha detection 2022-11-17 18:46:38 +07:00
Atirut Wattanamongkol
e52e49cb9f Break out of loop when the model texture is found 2022-11-17 18:30:21 +07:00
Atirut Wattanamongkol
2a2663ca32 Properly compare model and TXD texture name 2022-11-17 17:56:11 +07:00
Atirut Wattanamongkol
a2f8e7594d Fix wrong render distance token 2022-11-17 17:49:00 +07:00
Atirut Wattanamongkol
8bce57153e Set render distance 2022-11-17 17:48:50 +07:00
Atirut Wattanamongkol
8b559100e8 AssetLoader + some refactoring 2022-11-17 17:38:22 +07:00
Atirut Wattanamongkol
4d168aad23 Store draw distance
Soon™️
2022-11-16 05:40:36 +07:00
Atirut Wattanamongkol
631da53db5 Properly rotate model in DFF test 2022-11-15 23:44:01 +07:00
Atirut Wattanamongkol
19174fefe0 Adjust frame time threshold for map loader 2022-11-15 23:02:44 +07:00
Atirut Wattanamongkol
0161cf7e79 Got more textures loaded 2022-11-15 22:34:07 +07:00
Atirut Wattanamongkol
37482245f7 Texture test 2022-11-15 21:30:07 +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
ca373e5227 Clean up some stuff 2022-11-15 20:01:44 +07:00
Atirut Wattanamongkol
21d62ed676 Load textures when building map 2022-11-15 20:01:29 +07:00
Atirut Wattanamongkol
663c3c5ced Load geometry UV(1) 2022-11-15 20:00:22 +07:00
Atirut Wattanamongkol
22fc389b1d Ditch multithreading 2022-11-15 17:59:27 +07:00
Atirut Wattanamongkol
129bc01714 Multithread map loading 2022-11-15 16:57:42 +07:00
Atirut Wattanamongkol
3b472400d2 Move map-related codes into MapManager 2022-11-15 16:56:41 +07:00
Atirut Wattanamongkol
b63bd6b960 IDE object flags 2022-11-15 15:40:03 +07:00
Atirut Wattanamongkol
9d51aa7328 Split switch statement for IDE Objects 2022-11-15 15:39:50 +07:00
Atirut Wattanamongkol
91569b5914 Various map-related stuff 2022-11-15 04:12:21 +07:00
Atirut Wattanamongkol
aa5292db6c Merge branch 'map-loader' into main 2022-11-15 03:22:33 +07:00
Atirut Wattanamongkol
0adfea1ba4 expose open_file() 2022-11-15 03:20:17 +07:00
Atirut Wattanamongkol
a3ef71eb7a Rename gta3.img reading function 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
0817726b17 Rename some private functions 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
fe2186a2e8 Split up even more stuff 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
144a10ea97 Split some part ofINST into a function 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
689f1daf62 Got the whole map to show 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
83bf3412d5 Do not persist world data 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
18a7fecd04 Use float for object positions 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
1f275074c4 Got a silhouette of the map to show 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
33cc19183a Reuse IDE loader scene 2022-11-15 03:11:49 +07:00
Atirut Wattanamongkol
40e92952a9 Fix flycam clamping 2022-11-14 23:10:07 +07:00
Atirut Wattanamongkol
99c6761ca7 Merge branch 'itemdef' into main 2022-11-14 22:34:11 +07:00
Atirut Wattanamongkol
93dd616e1c Overhaul map data loading 2022-11-14 22:29:50 +07:00