Giter Club home page Giter Club logo

ptex-tools's Introduction

ptex-tools

Tools for working with ptex textures

Usage

> ptex-tool reverse input.ptx output.ptx

Reverse winding order in ptx texture. Useful when you need to render alembic geometry with texture created from maya model.

> ptex-tool merge input.ptx input2.ptx [input3.ptx ..] output.ptx
0:input.ptx
555:input2.ptx
1337:input3.ptx

Merge ptex textures into one. Outputs offsets for accessing individual textures. All textures should have same format.

Also includes ptexutls python module exposing this functionality.

Dependencies

  • cmake 2.8.10 or newer
  • ptex 2.0 or newer
  • python 2.7

Building

> mkdir build
> cd build
> cmake ..
> make && make install

Configure options

  • BIN_INSTALL_DIR - where to install executable files, default bin.
  • PYTHON_INSTALL_DIR - where to install python modules, default python.
  • PTEX_LOCATION - ptex library installation root, by default is empty.
  • PTEX_INCLUDE_DIR - path to PTex includes.
  • PTEX_LIBARY - path to PTex library.

Options for finding python executable/libraries are from cmake FindPython*.cmake modules in your installation. Example for Autodesk Maya built-in interpreter:

cmake -DPYTHON_EXECUTABLE=${MAYA_LOCATION}/bin/mayapy \
      -DPYTHON_LIBRARY=${MAYA_LOCATION}/lib/libpython2.7.so \
      -DPYTHON_INCLUDE_DIR=${MAYA_LOCATION}/include/python2.7 ..

ptex-tools's People

Contributors

sopvop avatar

Stargazers

 avatar xtvjxk avatar Philippe Weier avatar Siew Yi Liang avatar Bill D. Strong avatar Erich Ocean avatar Deke Kincaid avatar yann le paih avatar

Watchers

Deke Kincaid avatar  avatar James Cloos avatar  avatar

Forkers

sonictk

ptex-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.