Comments (4)
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.
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.
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.
Thanks a million for the quick reply and help!
from wavefunctioncollapse.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wavefunctioncollapse.