Giter Site home page Giter Site logo

ka3d_tools's Introduction

KA3D Tools

This app is a tool to convert KA3D/Fusion Engine assets back to their general format:

  1. .ntx -> Img/Tex -> .png/.jpg/.tiff
  2. .hgr -> Assets/Objects

[NOTE: not all .hgr files (KA3D engine's gamedata, leveldata, prefabs, etc.) can be directly converted into existing files]

Downloads

Windows

Information

NTX

KA3D stores images and textures as binary NTX files (written using buffer-writer), thus can be read using any buffer-reader. It is made up of three parts: Header, Colour Palette, and Pixel Data.

[All the data in header is of size 'uint16_t']

Header:

  1. Version (Engine or Converter)
  2. [Width, Height]
  3. Format (KA3D Image Data Format | Not the actual image format) - How to efficiently store 'data'
  4. Palette Size - for reading the colour palette
  5. Flags(unused)
  6. User Flags (unused)

Colour Palette: Next in buffer of size 'Palette Size' from the header; It is an array of all the colours that may be present in an image. Size limited to 256 unique colours.

Pixel Data: Remaining data in the buffer; Each Pixel contains the index for its colour to lookup in the colour palette.

HGR

???

changelog: a little error i made in v0.1

What it looked like:                         What it should look like:

Error Png Fixed Png

This intepolating artifact occurred simply because of the swap between height and width.

ka3d_tools's People

Contributors

sb-nes avatar

Watchers

Lucian avatar  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.