All Projects → XTDStudios → Dmt

XTDStudios / Dmt

Dynamically Mapping Textures

Programming Languages

actionscript
884 projects

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

Basic Tutorial

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.

Follow me on Twitter @gilamran for any news

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].