Commit Graph

64 Commits

Author SHA1 Message Date
Jarrod Doyle 6db4d75a37
Properly create and apply color based model materials 2024-08-18 12:37:03 +01:00
Jarrod Doyle 20cf0f7292
Really bad awful model texturing 2024-08-18 11:14:30 +01:00
Jarrod Doyle 5aafab148b
Better logging and handling of failed model file loading 2024-08-18 11:14:07 +01:00
Jarrod Doyle 30db43eac8
Make MeshSurfaceData more generic 2024-08-18 11:13:18 +01:00
Jarrod Doyle 2db83a827e
Add fullbright ambient light level 2024-08-18 11:12:47 +01:00
Jarrod Doyle 6340a4c545
Fix incorrect light and uv indices on model materials 2024-08-18 11:08:42 +01:00
Jarrod Doyle 8a22defe17
Add basic model material texture output 2024-08-18 10:34:17 +01:00
Jarrod Doyle d9a54b65d5
Add GIF support for terrain textures 2024-08-18 10:28:22 +01:00
Jarrod Doyle 66c324be53
Add .GIF image loading using ImageSharp 2024-08-18 10:27:44 +01:00
Jarrod Doyle 2c9958a64a
Add model material parsing 2024-08-18 10:23:31 +01:00
Jarrod Doyle b5d3a3c275
Add initial basic .BIN model support 2024-08-17 20:53:16 +01:00
Jarrod Doyle b12070f982
Add ReadVec2 utility function 2024-08-17 20:52:41 +01:00
Jarrod Doyle 742324765f
Remove old unused function 2024-08-17 19:00:04 +01:00
Jarrod Doyle 35a3158ea6
Move Godot utility conversion to TMV namespace 2024-08-17 18:48:01 +01:00
Jarrod Doyle 622192a489
Add safer chunk usage 2024-08-14 18:39:13 +01:00
Jarrod Doyle 736ced24e4
Remove old unused code 2024-08-13 21:38:32 +01:00
Jarrod Doyle 93488ffc65
Add proper overbrightened 32bit2x lightmap rendering 2024-08-13 21:38:00 +01:00
Jarrod Doyle a8b9ce8a54
Fix incorrect lightmap colors 2024-08-13 19:23:52 +01:00
Jarrod Doyle 6f62d2ca00
Load textures from root thief resource CRF 2024-08-13 19:11:03 +01:00
Jarrod Doyle 9db1bc6681
Handle Thief 2 inst config file 2024-08-13 19:10:05 +01:00
Jarrod Doyle e773635677
Mission selector allows better browsing of campaigns 2024-08-13 18:31:20 +01:00
Jarrod Doyle 27dbc47419
Enable loading of PCX textures from FM folders 2024-08-12 19:52:36 +01:00
Jarrod Doyle 21b018298c
Use family palettes for PCX textures 2024-08-12 19:02:20 +01:00
Jarrod Doyle c14f74b108
Add PCX image loading 2024-08-12 18:46:30 +01:00
Jarrod Doyle 3aa6024103
Remove unused imports 2024-08-11 16:22:51 +01:00
Jarrod Doyle d1d6b310ab
Move material creation back to Mission 2024-08-11 15:43:44 +01:00
Jarrod Doyle 59edc0744c
Add texture manager/loader 2024-08-11 15:23:56 +01:00
Jarrod Doyle 51136b9526
Remove old code/comments 2024-08-11 14:31:27 +01:00
Jarrod Doyle 2ec121e056
Create one mesh per texture used 2024-08-11 12:28:24 +01:00
Jarrod Doyle 24ac6395d5
Moved Mission to TMV namespace 2024-08-11 09:18:02 +01:00
Jarrod Doyle 1508ed111d
Load TGA textures 2024-08-10 13:15:06 +01:00
Jarrod Doyle 1b661cbc7f
Meshes no longer cast shadows 2024-08-10 12:31:20 +01:00
Jarrod Doyle 9ef3a17e97
Mission node is no longer an EditorTool 2024-08-10 11:56:36 +01:00
Jarrod Doyle ad359ba656
Remove unnecessary WorldEnvironment node 2024-08-10 11:52:17 +01:00
Jarrod Doyle ae243fcd58
Fix lightmap colour blending 2024-08-10 11:50:46 +01:00
Jarrod Doyle 1539d1910d
Fix incorrect 16bit lightmaps 2024-08-10 10:22:57 +01:00
Jarrod Doyle 64dde9509d
better case insentitive checks 2024-08-10 08:58:02 +01:00
Jarrod Doyle 10da283f02
Add initial support for case sensitivity 2024-08-07 20:10:45 +01:00
Jarrod Doyle aaf93477d0
Fix incorrect paths for textures relative to mission file 2024-08-07 18:40:46 +01:00
Jarrod Doyle 9d49b38bf2
Clear texture cache on map clear 2024-08-07 17:30:20 +01:00
Jarrod Doyle 0758e24be5
Remove dummy mesh instance 2024-08-07 17:09:03 +01:00
Jarrod Doyle b2fc789734
Render textures and lightmaps together 2024-08-05 21:47:03 +01:00
Jarrod Doyle 74f4d0e7c6
Calculate texture UVs and move lightmap UVs to UV2 2024-08-05 19:49:36 +01:00
Jarrod Doyle da3f9b9203
Load and apply textures 2024-08-05 19:25:44 +01:00
Jarrod Doyle 79f7ebd7eb
Re-add occlusion culling 2024-08-05 18:57:21 +01:00
Jarrod Doyle 770f4e22d5
Split meshes into a surface for each poly 2024-08-05 18:46:57 +01:00
Jarrod Doyle 714c9804d8
Extract lightmap generation 2024-08-03 17:24:04 +01:00
Jarrod Doyle 114997f720
Extract mesh content generation 2024-08-03 17:22:38 +01:00
Jarrod Doyle 5dceedeaf1
Extract mesh and occluder generation to methods 2024-08-03 17:16:28 +01:00
Jarrod Doyle 91bddd5c12
Remove dummy light generation 2024-08-03 17:14:20 +01:00