Git Product home page Git Product logo

Comments (5)

mxgmn avatar mxgmn commented on April 28, 2024

The only problem is, given the same seed and its outcome, I cannot obtain the same outcome again

Please help me understand your question. By seed you mean a PRNG seed or seed as the constrained part?

from wavefunctioncollapse.

bitinn avatar bitinn commented on April 28, 2024

The only problem is, given the same seed and its outcome, I cannot obtain the same outcome again

Please help me understand your question. By seed you mean a PRNG seed or seed as the constrained part?

The same seed here mean 2 things: (1) The PRNG seed we feed to the WFC run remains the same. (2) Since the constrained seed for each tile is derived from the PRNG seed and tile index, we can guarantee those seeds are order independent as well.

The problem is weight probability has changed due to constraint propagation. So we can no longer obtain the same tile observation result.

My StackOverflow question might be better phrased:

https://stackoverflow.com/questions/62490854/order-independent-weighted-random-selection

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

My StackOverflow question might be better phrased

I see. So you're trying to get the same result from 2 different constrained parts. Just interesting, why would you want to do this?

You can fix the order of observation. Or you can generate result from the first constraint, save this result, and use the choices from the save when generating from the second constraint.

from wavefunctioncollapse.

bitinn avatar bitinn commented on April 28, 2024

My StackOverflow question might be better phrased

I see. So you're trying to get the same result from 2 different constrained parts. Just interesting, why would you want to do this?

You can fix the order of observation. Or you can generate result from the first constraint, save this result, and use the choices from the save when generating from the second constraint.

Imagine this workflow: generate a texture, pick a part of it as constraint, use them to generate again.

Preferably, you want the 2nd result to remain the same, and then you change the seed to get different output.

But in reality the 2nd result won't match, because constraints reduce entropy, so we cannot obtain the same result even though we know it's one of possible solution.

So yeah, it looks like I need to save some more information.

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

Imagine this workflow: generate a texture, pick a part of it as constraint, use them to generate again. Preferably, you want the 2nd result to remain the same, and then you change the seed to get different output.

I see. Yeah, the simplest solution would be to just save the first result, or save the order of observation.

from wavefunctioncollapse.

Related Issues (20)

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.