Commit Graph

55 Commits

Author SHA1 Message Date
Xiao Qi 4609aa8044 Migrated necessary tinygltf files into project as include headers instead of as dependency 2023-03-07 16:16:38 +08:00
Xiao Qi ffb489a0d6 Implemented node<->joint mapping across the asset 2023-03-06 21:41:52 +08:00
Xiao Qi 810c1e4c08 Reorder nodes to follow skin node order to eliminate one layer of indirection in indices 2023-03-05 04:17:54 +08:00
Xiao Qi 13fab61332 Added side to compile all files in folder 2023-03-03 21:56:32 +08:00
Xiao Qi 6b2490611b Fixed bug in setting bit flag for rig node data included
Fixed bug in building rig header
2023-03-03 21:56:03 +08:00
Xiao Qi 5839a2b80d Changed bone weight data format in mesh 2023-03-02 15:17:52 +08:00
Xiao Qi 2188aa4998 Removed unused variables and added constructors for vec 4 to vec3 2023-03-02 15:17:01 +08:00
Xiao Qi 29b553ba0a Removed unnecessary params in FetchChannelKeyFrame function 2023-03-02 15:15:03 +08:00
Xiao Qi acbf67f2a8 Completed rig node data and rig structure write 2023-03-01 17:54:27 +08:00
Xiao Qi fc072a8967 WIP: write node tree structure into file 2023-02-28 17:11:58 +08:00
Xiao Qi 94af967fb1 Changed structure of model asset in mesh and animations.
Data write for mesh and animations have been update.

TODO: Reimplement data write for rig node data
2023-02-27 21:57:24 +08:00
Xiao Qi d5ed571b64 TODO: Copy nodes, figure out skin inverse bind matrices 2023-02-27 03:49:12 +08:00
Xiao Qi 73a7cbcda0 Changed string literal to string_view 2023-02-27 03:44:12 +08:00
Xiao Qi 69d3cc7619 Animation node Channels copy complete 2023-02-27 03:41:38 +08:00
Xiao Qi 6615f0c2b8 Animation WIP 2023-02-27 00:56:41 +08:00
Xiao Qi 52fc8132d9 WIP Template function to generalise data copy for varying data types 2023-02-26 02:36:47 +08:00
Xiao Qi 1e17e17594 Working commit, do byte based copy 2023-02-25 23:32:51 +08:00
Xiao Qi bc8347a161 Fixed memory read issues
Templated load function
2023-02-25 19:18:35 +08:00
Xiao Qi d94e81231c Testing 2023-02-22 15:36:05 +08:00
Xiao Qi 966ce21686 Working commit, weird memory allocate/deallocate bug 2023-02-22 14:48:19 +08:00
Xiao Qi 5cd0b272c9 Working commit, write load with tinygltf 2023-02-20 19:56:26 +08:00
Xiao Qi 7cba537fc9 Check for bones before doing bone offset copy 2023-01-30 16:38:05 +08:00
Xiao Qi ce98884376 Output compiled file 2023-01-30 16:17:40 +08:00
Xiao Qi 86738fee2a Turned off preprocessing flags that messed with rig/bone data 2023-01-24 19:15:31 +08:00
Xiao Qi 393ae91333 Copy Bone offsets into rig bone node data 2023-01-22 21:47:19 +08:00
Xiao Qi 5670f06046 Rig node order and tree structure should match that of default order in mesh 2023-01-18 03:45:11 +08:00
Xiao Qi 89338acbea WIP change BFS to DFS for rig building and writing 2023-01-17 19:45:20 +08:00
Xiao Qi d590a3894f Fixed bug when processing nodes in scene
Rewrote bone writing because i discarded like a moron
2023-01-17 15:40:35 +08:00
Xiao Qi b99c9e6ebf Uncommented assimp preprocessing flags 2023-01-17 13:24:50 +08:00
Xiao Qi 3482688718 Fixed ProcessNode to either Build armature or feed children for processing, not both 2023-01-08 12:30:51 +08:00
Xiao Qi 71dbf6632e Fixed preprocessor #if statements 2023-01-07 21:56:05 +08:00
Xiao Qi 6c951d3e42 Prepare for pull from main project 2023-01-07 21:34:10 +08:00
Xiao Qi e0392bd601 Fixed recursive process node function to process root node and not ignore 2023-01-07 21:33:08 +08:00
Xiao Qi 6eca9b021f Fixed anim header write to account for vector of objects
prepare for merge into main
2023-01-07 20:49:52 +08:00
Xiao Qi 5d6cdc7fd3 Some refactoring to make writing to file slight more efficient and organised 2023-01-07 16:32:47 +08:00
Xiao Qi d54222e2cf Finished Writing rig to file 2023-01-07 11:51:49 +08:00
Xiao Qi abd3f2dd53 Gave up on trying to build node collection while copying ai node tree.
Tree copy is done, finish writing to file after building node data collection
2023-01-07 00:16:28 +08:00
Xiao Qi e6f6f9b0c5 BFS Copy WIP 2023-01-04 18:08:08 +08:00
Xiao Qi d03c12d1e2 Write tree into binary with BFS style traversing 2022-11-21 20:21:17 +08:00
Xiao Qi c5f7b22515 Changed structure for program, segregated asset types structs 2022-11-19 23:02:59 +08:00
Xiao Qi 456167e9f0 Added abstraction for rig data and representation
WIP Building rig node collection to prepare for write
2022-11-16 20:38:43 +08:00
Xiao Qi 37a2edef14 Write animation data 2022-11-16 18:38:16 +08:00
Xiao Qi 7cc7c51fd9 Parse and build all animation data and headers for write
Added functions for writing animation headers and data [NOT YET IMPLEMENTED]
2022-11-16 17:28:55 +08:00
Xiao Qi 03c17ca5d4 Separated asset data class
Parsing of animation clips, frames, channels
2022-11-16 10:41:27 +08:00
Xiao Qi 66baaf374d Compile mesh bones and weights into binary
Rig structure still WIP
2022-11-12 15:55:41 +08:00
Xiao Qi 310765f4f6 Node copying completed, wip to write into file 2022-11-11 18:20:46 +08:00
Xiao Qi f673036e4e recursion WIP 2022-11-11 17:54:50 +08:00
Xiao Qi 7777e5642b WIP Ingestion of rig nodes from model file 2022-11-11 17:33:42 +08:00
Xiao Qi 457094dc50 Anim WIP 2022-11-11 13:18:51 +08:00
Xiao Qi 418dcaebfd Removed unnecessary stuff from macros 2022-11-11 13:18:28 +08:00