Git Product home page Git Product logo

Comments (4)

kchapelier avatar kchapelier commented on July 4, 2024 1

Hi, thank you ! It seems that the issue is that I haven't implemented support for the 'unique' attribute in the node.js example so it tries to load the wrong file (ie cliffcorner.png instead of cliffcorner 0.png, cliffcorner 1.png, cliffcorner 2.png and cliffcorner 3.png) whereas it is correctly handled in the browser demo. I'll try to get that done later today.

For reference, all the translated SimpleTiledModel definitions for the browser demo can be seen here : http://www.kchapelier.com/wfc-example/simple-tiled-model-data.js The only difference with your summer definition is that it includes 'weight' attributes on some tiles (and that it doesn't include the 'path' on each tile because of the different image loading process).

from wavefunctioncollapse.

MatveyK avatar MatveyK commented on July 4, 2024

Thanks for the quick answer and for your help!

Another quick question: could you enlighten me as to what the "symmetry" values are meant to represent? I understood that the neighbors list defines the rules for right-left neighbours (as in which tile can be followed by which tile), but the meaning of the symmetry values eludes me.

from wavefunctioncollapse.

kchapelier avatar kchapelier commented on July 4, 2024

0e394c5

I fixed the node simple-tiled-model example so that it supports unique tilesets. It can be tested by just replacing the require('./data/castle.definition.js'); with require('./data/summer.definition.js');.

Regarding the symmetry value, you should check this discussion on the original repository.

from wavefunctioncollapse.

MatveyK avatar MatveyK commented on July 4, 2024

Thanks a million for the quick reply and help!

from wavefunctioncollapse.

Related Issues (6)

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.