Git Product home page Git Product logo

Comments (9)

Javier-Garzo avatar Javier-Garzo commented on June 18, 2024 1

Yeah exists two possible solutions, you can see in this stackexchange:

  • The first solution of the post uses procedural generated textures, this change the texture of the terrain depending if it's undeground or superficial terrain. A video of Sebastian Lague with this implementation.
  • The second solution of the post is the use a marching cube table for generating the texture. That's the idea for this project, however this post not talk about the interpolation (voxes that are smaller) that is another problem of the UV scales.

The current project texturization have problems with the UV directions and the UV scales (with interpolations active).
I try implementing the marching cube tables for the UV or fix the interpolation bug, but I fail. I must spend more hours trying a fix, but I little busy right now.

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

Javier-Garzo avatar Javier-Garzo commented on June 18, 2024 1

I am working on that. Let's see if i can achieve something this week.

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

Javier-Garzo avatar Javier-Garzo commented on June 18, 2024 1

Look to the new version, I improve the UV calculations removing the first image UV bug. Also create a little debug helper, you can active on runtime with F4 key.
A image of both improvements (no interpolation terrain, bool inside MeshBuilderManager):
Captura debug2

The brick texture still with a bad orientations and the interpolations have some UV problems (affected also by the illumination shader) :
Interpolation

However the visual results have improve a lot.

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

emre-sahinn avatar emre-sahinn commented on June 18, 2024 1

Thanks a lot! you literally saved me, thanks for the update and awesome project

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

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

It's already a known error. The texturization system have problems with the UV scales and the correct texture face orientation (also other UV problem). The problem is inside the BuildChunkJob.cs, line 75-95, where the UV calculation take place in the code. Now is a trivial method, it must use the marching cubes tables (static variables inside the bottom on the same script) .

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

Somshekardsi avatar Somshekardsi commented on June 18, 2024

Okay, thank you.

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

emre-sahinn avatar emre-sahinn commented on June 18, 2024

Are there any fix for this bug?

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

emre-sahinn avatar emre-sahinn commented on June 18, 2024

Hi again, are there any updates? I tried implementing my self but no success..

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

emre-sahinn avatar emre-sahinn commented on June 18, 2024

I am working on that. Let's see if i can achieve something this week.

Hi, did you succeed? I really need this update :')

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.