Code Monkey home page Code Monkey logo

Comments (5)

Eldemarkki avatar Eldemarkki commented on May 18, 2024

I’m aware of this bug, but currently I don’t really have ideas as to what is causing it. The most logical reason in my opinion is something to do with the density calculation in HeightmapDensityCalculationJob.cs. I will probably try to fix this soon.

from marching-cubes-terrain.

Eldemarkki avatar Eldemarkki commented on May 18, 2024

I have figured out what is causing this, but haven't thought of a solution yet. It is caused when a chunk's only mesh is a tiny edge. It can be seen in this video: https://vimeo.com/399672667. The grey box (which can be barely seen) is the chunk that is causing the error. At 8 seconds in the video, I'm showing the edge that is inside the error-chunk causing the problem.

from marching-cubes-terrain.

CHenBuCHen avatar CHenBuCHen commented on May 18, 2024

Hello,I fork you project ,and create my tools based on it. In my project I can editor terrain in editor mode and save chunk states ,serialize densities. You can use "tools/Create Voxel World" create terrain.
Tools are simple ,not easy to use. I'm thinking about translate FBX/OBJ to terrain .
The problem is this, I want to reproduce bug in my tools, but it does not appear. I notice in your project when amplitude = 30, 34, 40,60,68. error message appear(I had try amplitude =1-70). In my tools error messages does not appear.
(For example when amplitude = 30 , in your project chunk_4_0_11'mesh has 30 verts 10tris, in my project chunk_4_0_11'mesh has 0 verts 0tris)
I don't know what's happend, and what's the difference between this.I'm not sure if I solved the bug or if the bug will appear at other values /* I'm a terrible programmer,with ugly code. :( */ . I hope this can help .https://github.com/CHenBuCHen/Marching-Cubes-Terrain
微信截图_20200330233243
微信截图_20200330233300
微信截图_20200330233459
微信截图_20200330233534

from marching-cubes-terrain.

Eldemarkki avatar Eldemarkki commented on May 18, 2024

Fixed in develop branch. Commit id: 67a254f

from marching-cubes-terrain.

Eldemarkki avatar Eldemarkki commented on May 18, 2024

Fixed in master

from marching-cubes-terrain.

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.