• Advertisement

Boris The Brave

  • Content count

  • Joined

  • Last visited

  • Days Won


Boris The Brave last won the day on April 17

Boris The Brave had the most liked content!

Community Reputation

11 Neutral

About Boris The Brave

  • Rank

Personal Information


  • Github
  1. Marching Cubes and Dual Contouring Tutorial

    If you want surface nets out of my code, it's pretty easy. If you turn off adaptivity and run the dual contouring, you get unsmoothed surface nets. If you want smoothed surface nets, replace solve_qef_3d with numpy.mean(positions, axis=0).
  2. Marching Cubes and Dual Contouring Tutorial

    I don't believe normals are your problem, actually. The adaptivity (i.e. choice of vertex location) is also dependent on the function being smooth, which your is not. It expects height of the function to roughly correspond to "depth from the surface". Your function is basically zero inside the unit sphere, and infinity (or 4) outside, with little to no transition, violates this. The julia set is really just an yes/no measurement, it's not meant as function returning a float. The easiest thing to do is to turn off adaptivity, and use marching cubes, as in that case a yes/no measurement is all you need. Then just crank up the resolution.
  3. Marching Cubes and Dual Contouring Tutorial

    Thanks cowcow. I've pushed some changes that may help you. I should point out that the function you've chose is fractal. I'm afraid that it may not be "sufficiently smooth" enough for the gradient evaluation to work. This might be a time where you are better off sticking with marching cubes.
  4. Why the sudden boom in marching cubes? [Possible target]

    Well I just posted a MC tutorial on GameDev just yesterday. I had been working on that tutorial for a long time and picked Sunday due to personal timing, so I expect it's just co-incidence.
  5. Marching Cubes and Dual Contouring Tutorial

    Cow, your evaluation function returns only positive numbers, but I've configured the code to treat anything positive as solid. Try subtracting a constant, like I've done in circle_function, so you get some positive and some negative values.
  6. Java Marching Cubes "Fun"

    Your images are terrible quality, but it looks like you are not getting a manifold mesh out of your algorithm, so I expect you've got the cases wrong. Perhaps with larger, better lit images it would be clearer? While I'm not going to review your cases, I've recently posted a marching cubes tutorial, so you can look over my cases instead? I have unit tests for the case table, you could port that to see if your own table passes. Otherwise, I'd start debugging your code. Marching Cubes is very easy to test a single cube in isolation, so I'd start with one you know to be wrong.
  7. I've put together some tutorials that explain the ideas behind Marching Cubes and Dual Contouring. Maybe it'll be useful to some of the forum-goers. Marching Cubes 2d Marching Cubes 3d Dual Contouring Each tutorial comes with sample code in Python. Let me know what you think. This is the first time I've written a tutorial, but may do more if people want them.
  • Advertisement