Code Monkey home page Code Monkey logo

iga's Introduction

iga

texture synthesis algorithm inspired by wave function collapse for love

What

This is an edited version of image generation algorithm: http://www.hempuli.com/blogblog/archives/1598

It also includes a main.lua to use in Löve.

Original Info

Let me repeat the original information here:

IMAGE GENERATION ALGORITHM

Based on & heavily inspired by the WaveFunctionCollapse (WFC) algorithm by mxgmn: https://github.com/mxgmn/WaveFunctionCollapse Executable & the .mfa source made using Multimedia Fusion 2 by Clickteam

The MIT License Copyright 2017 Arvi Teikari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that commercial use of the .mfa source file may be limited by Clickteam's licenses. Please refer to those if needed.

iga's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iga's Issues

Not really working... at all.

As far as I can tell, the algorithm currently pseudo-randomly places the input tiles into the given space. I'm not sure how to fix it, or even what's broken.

Empty colors in output & strange behavior

Hello,

It happens that the output contains empty colors (value 0). It look like the output is filled with holes.

Can you explain why and may be help me correcting the issue ?

Also I do not understand the reset to nil of all the globals and principally "colours" at line 490 in function "iga:generate()".
It clears all the vars and I am forced to comment this code to be able to get the output with "iga:getColours()".

Am I missing something ?

Thanks

Tillable results

Hi,

It's an awesome port and gives me a lot of inspiration but I have one question :

I've heard that the original WFC was capable of returning tillable results.

I've made some test with IGA and it nearly nails it but that still a matter of chance.

Do you know if it would be possible to make an input parameter to ask for tillable result ?

Thanks, keep up the great work. This algorithm is amazing.

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.