Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Support Jupiter EX Model00p format #24

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b89c3a5
Kick it off with a model00p reader.
haekb Jan 27, 2021
ea1723e
Hook up the import, load in some nodes and start cracking at the anim…
haekb Jan 27, 2021
40ae1c3
Lot more ugly wip code for reading model00p
haekb Jan 29, 2021
9413614
More of a mess. Reads non-interlaced animation headers, and bindings.
haekb Jan 31, 2021
5618c4e
Clean up
haekb Jan 31, 2021
994ee23
Very messily (and incorrectly) read animations
haekb Jan 31, 2021
62a9e74
Re-work animation schema (header) function. Still not working right o…
haekb Feb 1, 2021
e4bb9ca
More re-works
haekb Feb 2, 2021
f28a685
Update the model decompression python script. Supports drag and drop.
haekb Feb 3, 2021
f2a4746
Some initial research on .mdl files. (For funsies.)
haekb Feb 3, 2021
a7b2515
Added binary template for 010 editor (incomplete)
haekb Feb 6, 2021
ffc8b68
Added some super basic mesh reading.
haekb Feb 6, 2021
dec9462
Mesh data now reads for the most part. No weight information yet, and…
haekb Feb 9, 2021
e68a3d9
Bunch more research on figuring out LOD and physics info
haekb Feb 9, 2021
048045a
Mesh data is now reading properly for some character meshes.
haekb Feb 9, 2021
b9eefe9
Clean up
haekb Feb 9, 2021
fa9c746
Determine mesh info, and clean up
haekb Feb 10, 2021
425bfbe
Importer now properly reads mesh data, and also bone weights are now …
haekb Feb 10, 2021
9f2debd
Start researching Condemned's changes
haekb Feb 10, 2021
9b377a0
Fix the UV map
haekb Feb 10, 2021
69e585a
Get ~some~ Condemned models loading
haekb Feb 11, 2021
fff1c0a
Fix big-endian mode, and start reading the dang mesh data properly.
haekb Feb 11, 2021
bf6d78c
Refactor some variable names to match their actual use.
haekb Feb 11, 2021
5438eae
Read the data a bit more properly. Also account for weird material in…
haekb Feb 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions research/gci_mdl_decompress.py

This file was deleted.

27 changes: 27 additions & 0 deletions research/ltjex_mdl_decompress.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Gotham City Imposters (and probably others) model file seems to be zlib compressed.
# Here's a quick decompress script, it'll skip past some header bytes.
#
# Just drag and drop files here!
#
import zlib, sys, os

if not os.path.isdir('./out'):
os.makedirs('./out')

file_paths = sys.argv[1:]
for path in file_paths:
if not os.path.isfile(path):
continue

file_name = os.path.basename(path)

fp = open(path, 'rb')
fp.seek(8, 1)
out_file_data = zlib.decompress(fp.read())
f = open('./out/%s' % file_name, 'wb')
f.write(out_file_data)
f.close()

print("Decompressed file to ./out/%s" % file_name)

Loading