A converter for Devil May Cry 1 model formats to Collada, vice versa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

daedevil1.py 556B

123456789101112131415161718192021
  1. #!/usr/bin/python3
  2. import collada
  3. import ctypes
  4. import numpy
  5. import sys
  6. from lib.lib3ddevil1.bindings.py3devil1geo import pyMesh, pyGeoHeader
  7. if __name__ == "__main__":
  8. def main():
  9. if len(sys.argv) < 2:
  10. print("No file specified - exiting.")
  11. return
  12. filename = sys.argv[1]
  13. with open(filename, "rb") as f:
  14. data = f.read()
  15. header = pyGeoHeader(data)
  16. for i in range(0, header.getnummesh()):
  17. mesh = pyMesh(i, data)
  18. mesh.show()
  19. main()