sWangTiler is a java implementation that generates wang tiles from any given input image.
By assembling wang tiles that share common edges (like domino pieces) one may generate textures of any desired size.

Wang tiles greatly reduce visible repetitions making textures seem more natural and thus improve the quality of any graphic application like games, simulations etc.

This implementation is based on the strict wang tile algorithm as proposed by Xinyu Zhang and Young J. Kim in "Efficient Texture Synthesis Using Strict Wang Tiles". In order to calculate the lowest cost path between any edge- and sample image an implementation of Dijkstra's algorithm is used which was found in the java graph library 'JGraphT'.

Credits to all mentioned parties and to http://www.texturemate.com/.

Features

  • Generate a group of 4, 8 or 16 Wang tiles
  • Supports Wang tiles in multiple resolutions:16x16, 32x32, 64x64, 128x128
  • Colors indicate common edges
  • Create large preview texture from tiles
  • Save tiles individualy or packed as one image
  • Download includes folder with various images that proved to work extremely well with this program

Project Samples

Project Activity

See All Activity >

Categories

Graphics

License

Eclipse Public License

Follow sWangTiler

sWangTiler Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sWangTiler!

Additional Project Details

Operating Systems

BSD, Linux, Windows

User Interface

Java Swing

Programming Language

Java

Related Categories

Java Graphics Software

Registered

2015-05-01