Commit graph

223 commits

Author SHA1 Message Date
lzwdgc
3e6326747e Add missing db save. 2021-06-04 16:57:07 +03:00
lzwdgc
c01c10f2d0 Fix script2txt build. 2021-02-20 23:16:41 +03:00
lzwdgc
2ca07e9b11 Fix linux build. 2021-02-15 15:56:24 +03:00
lzwdgc
dc8733dd49 Update for manager changes. 2021-01-08 04:43:16 +03:00
lzwdgc
ea250f11ea [mmp_extractor] Fix ue4 z scales and heightmap values. Required Z scale for the map is printed into the info file. 2020-12-13 00:39:52 +03:00
lzwdgc
aea765a7b2 Misc. 2020-12-10 03:19:49 +03:00
lzwdgc
c2565c4cb5 Restore animations reading when first animation header n = 0. 2020-12-10 03:19:44 +03:00
lzwdgc
649fb9fb97 Remove unused def. 2020-12-09 23:33:03 +03:00
lzwdgc
7a7abb8253 Some fbx animation stubs. 2020-12-09 22:27:20 +03:00
lzwdgc
1185a57df6 More verbose help message. 2020-12-09 22:27:02 +03:00
lzwdgc
50bd8a4a22 [mmo_extractor] Fix crashes. 2020-12-09 21:32:56 +03:00
lzwdgc
2137d165d5 Fix 32-bit build. 2020-12-09 21:32:31 +03:00
lzwdgc
e0d8f31839 Throw exception on unknown object. 2020-12-09 21:32:23 +03:00
lzwdgc
deba3b5e72 [mmo_extractor] Improve yaw calculations. Remove hardcoded angle. Fix atan2 arguments to correctly calculate yaw. 2020-12-09 18:48:15 +03:00
lzwdgc
4158345612 Improve animations reading. 2020-12-09 18:46:37 +03:00
lzwdgc
d6e290855c Clarify animated textures. 2020-12-09 18:45:55 +03:00
lzwdgc
2ce251997d Fix C++20 array comparison. 2020-12-09 14:19:20 +03:00
lzwdgc
1c0bea8a9c [model] Fix reading vertices. 5th attempt. (1 - initial, 2 - initial + minus x, 3 - modern, 4 - Yakim's.) 2020-12-09 05:12:20 +03:00
lzwdgc
0f06403862 [mod_converter] Allow to process and print loaded .mod files from Viewer.exe from AIM2 SDK. 2020-12-09 05:10:07 +03:00
lzwdgc
27b175238a Throw on unknown axis system. Explicitly add default one. 2020-12-09 05:09:20 +03:00
lzwdgc
40c9393a43 Misc. 2020-12-09 05:08:49 +03:00
lzwdgc
3283a0193a Misc. 2020-12-09 05:08:21 +03:00
lzwdgc
4e86ad3aae [mmo_extractor] Allow to set mapname. 2020-12-09 05:03:29 +03:00
lzwdgc
a604488ed8 Add natvis for model types. 2020-12-08 23:04:32 +03:00
lzwdgc
e96ed6e2fa Add comment. 2020-12-08 22:38:12 +03:00
lzwdgc
0c33c1870d Misc. 2020-12-08 22:17:12 +03:00
lzwdgc
ed66fa5ba1 Remove commented line. 2020-12-08 22:12:07 +03:00
lzwdgc
dd840fcbd2 Update default coordinate system value. Add according switch case and default clause. 2020-12-08 22:11:49 +03:00
lzwdgc
e2228f51c1 Remove unused function. 2020-12-08 22:03:47 +03:00
Yakim3396
77a4319ad0 Fix face mirroring use std::swap 2020-12-08 20:46:25 +03:00
Yakim3396
e9cab14ae6 Disable mirroring on axis and flip faces 2020-12-08 19:57:05 +03:00
lzwdgc
3640d875f6 Rename check method to be able to be included in UE4. 2020-12-08 18:42:34 +03:00
lzwdgc
58e1c6eafb Fix emitter usage. 2020-12-08 18:41:33 +03:00
lzwdgc
d16180dce7 Pass yaml by value. It has internal shared pointers to root document. 2020-12-08 18:41:22 +03:00
lzwdgc
c61cb0117e Fix headers. 2020-09-19 01:36:01 +03:00
lzwdgc
1f3ebf67e7 [db] Write sql from processed db. 2020-09-18 23:31:15 +03:00
lzwdgc
217ba181c0 [db] Prepare strings as utf-8. 2020-09-18 23:30:54 +03:00
lzwdgc
8fdac09842 Send errors to stderr. 2020-09-18 23:30:40 +03:00
lzwdgc
6819cd92fc [db] Keep raw strings. 2020-09-18 23:30:25 +03:00
lzwdgc
36f5234afb Use exceptions in default case. 2020-09-18 23:30:04 +03:00
lzwdgc
fd543790dd Add member function to process db into more friendly form. 2020-09-18 22:27:57 +03:00
lzwdgc
5f6c3e1fcf Better parameter name. 2020-09-18 22:27:30 +03:00
lzwdgc
fffc6f08f3 Fix includes order. 2020-09-18 22:27:12 +03:00
lzwdgc
068f0e185e Process db better. Respect value size. 2020-09-18 22:26:57 +03:00
lzwdgc
9a9082dfb7 Read more models. 2020-09-18 22:26:19 +03:00
lzwdgc
5327fe3e70 Move string conversion functions into common.cpp. 2020-09-18 22:26:10 +03:00
lzwdgc
c261342d6b Fix printing paths. 2020-09-16 14:42:46 +03:00
lzwdgc
962c12374f Handle models with additional faces. 2020-09-16 14:20:02 +03:00
lzwdgc
b5013c3fc6 Write raw r16 heightmap back again. 2020-09-16 14:19:34 +03:00
lzwdgc
d39c091312 Update to C++20. 2020-09-10 13:34:07 +03:00
lzwdgc
170fad79d7 Better variable name. 2020-09-07 01:12:55 +03:00
lzwdgc
771c8e4697 Do not fix uv coords when printing .obj. 2020-03-08 18:36:57 +03:00
lzwdgc
08c0e49cf4 [db_add_lang] Make functions static. 2020-03-07 01:22:03 +03:00
lzwdgc
25454a9e0d [db_add_lang] Set current path to lang dir. 2020-03-07 01:21:52 +03:00
lzwdgc
6b68a19cc2 Add todo. 2020-03-06 14:06:40 +03:00
lzwdgc
6bb005e5cc Remove using namespace. 2020-03-06 14:05:40 +03:00
lzwdgc
0265eb5e89 Better .obj offsets for different groups. 2020-03-06 14:04:15 +03:00
lzwdgc
1011a80add Finish link faces algorithm. Fbx export is not properly working with it. 2020-03-06 13:57:34 +03:00
lzwdgc
3b614b2da1 Disable link faces by default as uvs work is not over. Restore basic link faces. 2020-03-06 13:38:19 +03:00
lzwdgc
33787f94ae Refactor fbx output. 2020-03-05 03:04:21 +03:00
lzwdgc
baacacc44b More model data transformations. 2020-03-05 01:05:04 +03:00
lzwdgc
7325952708 Allow to load .mod files exported from M2 SDK Viewer. 2020-03-05 01:04:21 +03:00
lzwdgc
1bf7903a62 Do not print any SHAPE blocks. 2020-03-02 04:11:57 +03:00
lzwdgc
0336abf712 Misc. 2020-03-02 04:11:47 +03:00
lzwdgc
56a2422efa Misc. 2020-03-02 03:52:14 +03:00
lzwdgc
4fbe749be7 Add fbx conversion for win viewer. 2020-03-01 22:45:50 +03:00
lzwdgc
e8edda1ccf Allow to rotate data for .obj files. Add eWindows3DViewer axis system. 2020-03-01 22:22:26 +03:00
lzwdgc
4eb4e232a2 Refactor. Turn on link faces by default. 2020-03-01 21:39:47 +03:00
lzwdgc
e262989492 Fix link faces algorithm. 2020-03-01 21:20:19 +03:00
lzwdgc
6a74caf0d0 Initial dummy implementation of model patching. 2020-03-01 14:02:08 +03:00
lzwdgc
0faadd0756 Add blender enum entry. 2020-02-29 04:21:46 +03:00
lzwdgc
d2b64bdc25 Propagate axis system when printing. But disable during .obj print for now. 2020-02-29 04:19:19 +03:00
lzwdgc
3c5c756eaa Add stub of internal rotate facility. 2020-02-29 03:51:46 +03:00
lzwdgc
a1390640b5 Add aim_vector3f typedef. 2020-02-29 03:48:07 +03:00
lzwdgc
4fecc76b59 Fix models export. Improve export coordinate system selection. 2020-02-29 03:33:55 +03:00
lzwdgc
13c12f9bd3 Update for string changes. 2020-01-23 21:20:29 +03:00
lzwdgc
e96b6d0bea Improve wide paths support. 2020-01-12 22:16:48 +03:00
lzwdgc
d9b49e957d Update sw build. Update emitter addition. 2019-10-29 02:46:49 +03:00
lzwdgc
1c146ad9e3 Update sw script. Rename Context to Emitter. 2019-05-23 20:04:00 +03:00
lzwdgc
57c6947172 Add MECH sav segment hack. 2019-03-22 00:28:58 +03:00
lzwdgc
de7fd7742f Improve objects segment. Temporarily disable MECH segment. 2019-03-20 17:59:08 +03:00
lzwdgc
0c24d18b92 Improve ORGS and MMS_C_CONFIG segments. 2019-03-20 04:21:44 +03:00
lzwdgc
5c88d06a62 Improve save loader. 2019-03-20 03:59:12 +03:00
lzwdgc
c59d9702a6 Split save implementation. Improve save loader. 2019-03-19 22:18:46 +03:00
lzwdgc
f81baa57e4 Improve model loading. 2019-03-12 22:02:56 +03:00
lzwdgc
943f38dc96 Fix cl enum values. 2019-03-11 01:30:26 +03:00
lzwdgc
f741ade168 Add axis system option. 2019-03-10 22:39:16 +03:00
lzwdgc
a28531d834 Improve coordinates loading. 2019-03-10 22:15:51 +03:00
lzwdgc
712fa30090 Dump heightmaps to 16-bit pngs. 2019-03-07 18:49:22 +03:00
lzwdgc
f9c4071b3f Invert x axis for the left hand ue4 xyz system. Print r32 heightmap. 2019-03-06 23:01:25 +03:00
lzwdgc
ea7282f3d1 Add print info to mod converter. 2019-03-05 23:57:51 +03:00
lzwdgc
5f4ce8d1b0 Fix bison warning. 2019-02-24 18:07:34 +03:00
lzwdgc
1be3906e78 Improve loading of orgs, org bases, map goods. 2019-02-24 02:29:35 +03:00
lzwdgc
a9ee110c75 Initial sw build. Remove test code from unpaker. Turn on zero compression algorithm in unpaker. 2018-12-29 00:55:17 +03:00
lzwdgc
65c6ab3e59 Update readme for cppan. 2018-10-01 13:14:37 +03:00
lzwdgc
9c3034e7ef Save to png via opencv. 2018-08-02 14:14:38 +03:00
lzwdgc
bdf5e9ff37 Add split colormap option. 2018-08-02 01:56:52 +03:00
lzwdgc
f900353090 Overhaul with modern command lines. 2018-08-02 00:36:18 +03:00
lzwdgc
dc81075ee1 Switch to cppan. 2018-07-31 01:28:23 +03:00
lzwdgc
d3aa6a395f Consider shadow as color. 2018-07-10 00:29:51 +03:00