Giter Site home page Giter Site logo

shenmue-export-tools's Introduction

Shenmue-Export-Tools

Tools for Exporting Meshes from Shenmue for Blender and Noesis Under MIT License

Noesis

Installation

To install the Noesis plugin copy fmt_kion_mt5.py and inc_powervr.py into the noesis plugins/python folder. From there the plugin will recognize the .mt5 file extension from the Shenmue game data. fmt_kion_mt5.py contains the logic for reading the actual files. inc_powervr.py contains tools for reading PVR files, including some of the twiddled rectangluar images that are unique to Shenmue. The inc_powervr.py extension is set to .kvm, as to not overwrite Noesis's internal PVR handling for other textures.

Also a quick note is that Shenmue uses mirrored texture wrapping. So the textures on wheels and bikes will be displayed incorrectly. I'm not sure if this functionalinty has been added to the Noesis API, or not. But this bug can be ammeded if it is, or if there is a better method of clamping and repeating that I am not aware of.

Screenshots

Shenmue Noesis 01 Shenmue Noesis 02

Blender

For some reason I decided to punish myself by attempting to write a Blender Plugin. The functionality is the same as the Noesis plugin, as I simply translated the Noesis Plugin to work with Blender. Since information on writing a Blender import plugin can be hard to come by, maybe this can act as an example.

Installation

The io_mesh_hcm needs to be copied into the C:\Users\%your_user%\AppData\Roaming\Blender Foundation\Blender\2.xx\scripts\addons\ and then enabled from the User Preferences menu. From there you can goto File -> Import "Shenmue Model (mt5)". One really important aspect to mention about the Blender Plugin, is that if the textures for a given .mt5 model is not in the same source folder, textures will not be applied and you will end up with an invisble model.

For exporting textures as png files with the correct name, please use the included PythonPVR included in this repository.

Screenshots

Shenmue Blender 01 Shenmue Blender 02

PythonPVR

The PythonPVR folder contains a set of tools, written in Python to read PVR images (thus the name). In practicality, it's very similar to the Noesis PVR tools included with the Noesis Plugin, but isolated to run independently on its own.

Installation

Download the repository zip and extract "PythonPVR" to its own directory. Copy a .pvm or .mt5 file to the PythonPVR folder (with main.py), for example "Map01.MT5". Run the program with python __main.py__ Map01.MT5. The textures internal to the .mt5 file will be exported to the "output" folder included in the directory. Copy the source .mt5 file and the resulting .pngt files from the output folder into a new folder, and then you will be able to use those files with the Blender plugin.

Shenmue Python PVR

License

MIT License

shenmue-export-tools's People

Contributors

seiche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

blendercn-org

shenmue-export-tools's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.