Git Product home page Git Product logo

tilemaker's Introduction

Tile Maker

This utility is used for creating seamless tiling textures by means of Gaussian masked overlapping. A variety of different parameters allow for fine control of how the output texture is generated which can allow for more realistic looking textures. Much of the parameters for tuning the outputs are varied based on the particular image to be tiled and for the most part must be adjusted from the default parameters to obtain acceptable results.

Installation

Make sure you have gcc-4.8.4 or greater installed on your machine which can be achieved by executing:

$ sudo apt-get install gcc

Next make sure you are in the base directory and compile the binary by executing:

$ make

The binary will be compiled to the same directory and produce the binary tilemaker.

Usage

In order to execute this utility, run it from the command-line as below:

$ ./tilemaker input.png output.png [options]

Where [options] can be any of the flags described below:

  • -c [R,G,B] -- Background Color (used in non-overlapping areas)
  • -o [num] -- Octave where: 2^Octave = Number of repeats
  • -h [num] -- Tile height
  • -w [num] -- Tile width
  • -m [num] -- Mask blur (Gaussian sigma value)
  • -R [num] -- Base rotation value (Default=0.0)
  • -r [num] -- Rotation variance (Default=0.0)
  • -S [num] -- Base scale value (Default=1.0)
  • -s [num] -- Scale variance (Default=0.0)
  • -x [num] -- Random seed (Default=0 implies none)

Examples

You can test this utility by running the following examples to get these results from a given input:

Input1.png:

input1

$ ./tilemaker ./examples/input1.png ./examples/output1.png

Output1.png:

output1

./tilemaker ./examples/input1.png ./examples/output2.png -o 2 -h 500 -w 500 -m 0.1

Output2.png:

output2

tilemaker's People

Contributors

mdushkoff avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rnnccl

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.