Git Product home page Git Product logo

Comments (1)

Javier-Garzo avatar Javier-Garzo commented on June 15, 2024

First, thanks for the supportive comments, that mean a lot for me.

About the seed change problem with the old chunks, that's the old working system where you need to remove old chunks by hand in the directory Application.persistentDataPath+"/worlds/default" (the chunk of a world is saved in: worlds->[world name]). You haven't found the "/chunks" folder because that was old dir that I changed to the explained one when I created the worldManager. You can use the WorldManager prefab inspector button to get fast access to the "/world" folder:

image

That was a bad user interaction so I create a new constant AUTO_CLEAR_WHEN_NOISE_CHANGE (default set true) and improve the save system to support the save of the noise parameters. The new system remove old chunks if detecte that NoiseManager.worldConfig (noise parameters) change from the previous save one, so you don't have that problem any more.
Also, if you use the 0 seed value, you always generate a new world and delete the old chunks.

Remember that if WorldManager exist in the scene this two previous interactions not work, so I suppose that you are trying load world to play and not for testing. With a WorldManager in the Scene you always load the previous chunks and the NoiseManager.worldConfig from the world file to the current NoiseManager.

Try the new implementation, I expect that the new system meets your needs.
Feel free ask other doubts or talk about improvements.

from marching-cubes-on-unity-3d.

Related Issues (15)

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.