Giter Site home page Giter Site logo

node-atf's Introduction

Node-ATF

Usage

var nodeatf = require('node-atf');
	nodeatf.png2atf('filename.png', 'output.atf', 'options', function(error, stdout, stderr){
		console.log(error, stdout, stderr);
	});

Options

-c Create a block compressed texture set (DXT1+ETC1+PVRTC4bpp). Use d, e or p to only encode and embed either dxt1, etc1 or pvrtc.

-m Create a cubemap. Input files need to be named .png where n=0-5. Order is [-x,+x,-y,+y,-z,+z].

-r Compress block compressed textures using JPEG-XR+LZMA to reduce file size. -e Embed empty (black) mip maps. -n Embed a specific range of texture levels (main texture + mip map). The range is defined as ,. 0 is the main texture, mip map starts with 1. -x Read mip map images from input files instead of autocreating them. Input files need to be named .png where ll=00-12. For cubemaps the format is .png -s Silence output during compression.

Options for non-block compressed textures: -4 Use 4:4:4 colorspace -2 Use 4:2:2 colorspace -0 Use 4:2:0 colorspace

-q quantization level. 0 == lossless. (default is 30 for standard textures and 0 for block compressed textures) -f trim flex bits. 0 == lossless. (default is 0)

License (BSD)

node-atf's People

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.