Giter Club home page Giter Club logo

dmt's Introduction

DMT

Dynamically Mapping Textures

Using vector images guarantee image sharpness while scaling, moving, etc - but suffer from poorer performance, which mean low FPS.
Using bitmap images allows the application to reach higher FPS (using 3rd party libs like starling) - but compromises image quality at scaling.
The DMT library make the best of both world by providing run-time dynamic (and fast) rasterize vector images to bitmaps and generate the atlases.

This way, images are optimized for each screen resolution, avoiding ugly stretch marks and pixlezation. Having the display object tree allows you to manipulate each sub object separately (as in flash).

DMT is Open Source library, released under Apache License.

This library is currently in early alpha state. The API may change. Nevertheless we already have a production game that uses the library: Memory Game

More information can be found at XTDStudios web site.

Features

  1. Dynamically generated at run-time
  2. Storing the original Display Tree
  • Display Object manipulations is available as in the original Flash Display Object This allows you to change any property like alpha, x, y, scaleX, scaleY, and rotation of any children, this also means you have the original PIVOT point and you can listen to events of any child object.
  • Keeping instance name, so getChildByName also works as usual.
  1. Smart Effects
  • capturing Effects.
  • Scale effect support (Optional) - All the Display Object effects are being scaled to the proportional requested size
  1. Automatically generates a packaged textures atlas.
  • All textures are being packed into a minimized atlas(s), optimized using bean packing algorithm (To save GPU memory, loading time, and draw calls!)
  • Dynamically packing.
  • Multiple instances of object with the same transformation matrix are treated as the same Texture. (No duplication)
  1. Cache support - generate the device optimized images once, and saved for reuse in later runs.
  • Save/load all rasterized data to/from cache.
  • Cache contains all rasterized textures (PNG file format) and all Display Tree data, in one file.
  1. Asynchronous support using pseudo thread. (Ready for workers when available on mobile.)
  2. Rasterize MovieClips.

dmt's People

Contributors

xtdstudios avatar

Watchers

 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.