Giter Club home page Giter Club logo

lili2012 / converterpix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mwl4/converterpix

0.0 0.0 0.0 6.22 MB

Conversion tool that is able to convert from the game binary formats (.pmx) to the middle formats (.pix) in Euro Truck Simulator 2 & American Truck Simulator.

Home Page: https://truckersmp.com/

License: GNU Lesser General Public License v3.0

C++ 84.32% Python 0.96% Perl 0.07% C 9.19% Makefile 0.30% HTML 0.14% QMake 0.02% CMake 0.92% Batchfile 0.01% DIGITAL Command Language 0.47% Roff 0.08% Less 3.54%

converterpix's Introduction

ConverterPIX

Conversion tool that is able to convert from the game binary formats (.pmx) to the middle formats (.pix) in Euro Truck Simulator 2 & American Truck Simulator.


This software is used by blender add-on ConverterPIXWrapper which allows you easy use in Blender.


Parameters:

-h - prints help text

-m <model_path> - turns into single model mode and specifies model path (relative to base)

-t <tobj_path> - turns into single tobj mode and specifies tobj path (relative to base)

-d <dds_path> - turns into single dds mode and prints debug info (absolute path)

-b <base_path> - specify base path

Usage:

converter_pix -b C:\ets2_base -m /vehicle/truck/man_tgx/interior/anim s_wheel

# export into C:\ets2_base_exp single model with s_wheel animation.
# instead of exact animation name you can use * to convert every anim file from model directory.
# when anim name is not started by /, then converter is looking for it in model directory.

converter_pix C:\ets2_base

# will convert whole base, it will export it into: <base_path>_exp (C:\ets2_base_exp in this example).
# you can also specify export path using the -e parameter.

converter_pix -b C:\ets2_base -t /material/environment/vehicle_reflection.tobj
# will convert tobj file and copy texture to export path.

converter_pix -b C:\ets2_base -m /model/mover/characters/models/generic/m_afam_01 /model/mover/characters/animations/man/walk/walk_01
# animations are located in another directory than the models. These animations can be used for multiple models.

converter_pix -b C:\ets2_base -b C:\mod_base -m /vehicle/truck/man_tgx/interior/model
# multiple base paths (you can specify more paths in the same way)

Note that animations will not be converted when converting the whole base.

This is caused by lack of information, so you have to convert each model individually to edit animations.


Supported formats: pmg(0x13, 0x14, 0x15), pmd(0x04), pma(0x03, 0x04), ppd(0x15, 0x16, 0x17), pmc, tobj, mat, scs(SCS#, CITYHASH), zip(uncompressed & compressed)


This is Open-Source software under GNU LGPL License.

--- Copyright © 2017 Michał Wójtowicz a.k.a. mwl4 ---

--- All rights reserved ---

Enjoy

converterpix's People

Contributors

mwl4 avatar theharven avatar vojtamolda avatar

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.