Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [marching-cubes]

Marching Cubes is an algorithm for generating a mesh (rounded or with cut corners) from a 3D grid of voxels.

0
votes
0answers
32 views

Game Object's Vector3 changing through script without reason

I am trying to do a combine block script. However, I encountered 2 problems: the blocks / the combined mesh isn't showing up anymore when it was, all the blocks where at the same location Even ...
1
vote
0answers
111 views

How to use Transvoxel tables

Could someone explain how to use the lookup tables provided on http://transvoxel.org/ with the regular Marching Cubes algorithm? I'm not even talking about the whole LOD System etc. I actually ...
0
votes
1answer
99 views

Issues with Marching Cubes

so I'm trying to write a marching cubes class for my game, at the moment I have it close (I think). Right now I'm focusing on vertexes and indices. So I'm getting triangles to appear where I want them ...
1
vote
1answer
185 views

Unity Marching Cubes triangulation bug

So, well I've been trying to find out the reason of the following bug in my marching cubes implementation, but I can't figure it out. Now this is a two state implementation of MC (just two exact ...
1
vote
1answer
328 views

Marching cubes with destructible environment

I've been spending a lot of time over the past few days finding out information about the marching cubes algorithm and I'm pretty sure I understand it. My game would be using chunks of land with the ...
1
vote
2answers
817 views

Using 2D Heightmap Data to generate terrain with the Marching Cubes Algorithm

The Marching Cubes (MC) algorithm works by taking 8 points of a cube with different density values and converting them into vertices and triangles based on a given iso level (threshold above which is ...
0
votes
2answers
257 views

What does mean the float value in a voxel data?

We know that a voxel can be represented by a three dimensional array of boolean or float values. There is an answer that demonstrates this perfectly: the difference between binary/boolean or floating-...
1
vote
2answers
2k views

Smooth mesh from voxel grid

Im trying to implement smooth voxel grid meshing using marching cubes algorithm but I dont quite understand how to do the interpolating (I understand that this would solve the problem) to achieve the ...
1
vote
1answer
649 views

How to do Marching Cubes Meshing in unity 3D

I'm getting very peculiar results from my marching cubes based surface generator within unity and figured this must be a pretty common problem that has been solved already, so I thought I would ...
3
votes
1answer
807 views

Mining cubes out of marching cubes

I originally built the start of my game world with a fully minecraft style structure: chunks, only visible faces rendered, noise, etc. Too blocky. I implement marching cubes. Looks great, horrible to ...
1
vote
2answers
2k views

Marching Cubes Vertex Normals

I understand how to generate geometry using marching cubes at an isosurface, but I haven't been able to find a clear explanation on how to calculate the vertex normals for a mesh produced using ...
0
votes
1answer
977 views

Marching Cubes Chunks

I'm doing some voxel based game, where I want to have voxel planets. I decided to use the marching cubes algorithm, and I successfully created a planet (even with noise) with the following density ...
5
votes
1answer
2k views

Voxel (Marching Cubes) Terrain Creation / Terrain Editing

im working on a voxel based game in unity. the terrain(sphere-->planet) should be out of voxels and at first i built a minecraft like voxel plugin for unity. this means that i had a sphere out of ...
6
votes
2answers
3k views

How to construct the marching cubes tables algorithmically?

I want to implement the marching cubes algorithm from scratch, but I'm stuck at the polygon generation phase (building edge loops with correct orientation and triangulating them). Obviously, I should ...
0
votes
1answer
559 views

Marching cubes leaving holes in the mesh

Hi I'm trying to reproduce GPU Gems 3 chapter 1 (Generating Complex Procedural Terrains Using the GPU) and so far I managed the basics... Now I'm betting some strange output. I started with the ...
4
votes
1answer
852 views

What version of Marching Cubes bring “ambiguities”

I am reading Eric Lengel’s paper about the Transvoxel algorithm. In an early part describing the classical Marching Cubes (3.1.1), he talks about ambiguous cases. From what I understand, these can ...
1
vote
2answers
1k views

How to do collision detection on marching cubes terrain?

I'm writing the physics part of my game engine. The world uses the marching cubes algorithm on a 3d perlin noise to make the terrain. How do I do collision detection on the resulting mesh? I can't ...
2
votes
2answers
1k views

Texturing a mesh generated from voxel data

I have implemented the Marching Cubes algorithm to display an isosurface based on voxel data. Currently, it is displayed with triplanar texturing. I'm working with unity, so I have a material with the ...
3
votes
1answer
2k views

Marching cubes over an octree dual - how?

In Dual Marching Cubes the dual of an octree is tessellated via the standard marching cubes method. But the classical marching cubes algorithm operates only on cubes with eight vertices (it uses signs ...
2
votes
1answer
379 views

Dual marching squares/cubes - divide or do not divide a node?

In the marching squares/cubes algorithm, how is it decided if a node in the quadtree/octree will be divided further (into 2^dimension nodes)? I read about this ...
2
votes
1answer
946 views

Marching cubes density function: noise sampling leaves holes in plane

I'm following the GPU Gems 3 chapter 1 (Generating Complex Procedural Terrains Using the GPU). The main difference is that I'm using the CPU for generating the mesh(es) based off of marching cubes. ...
5
votes
1answer
2k views

Marching cubes and LoD

I have and octree based world constructed (on the start) via marching cubes with certain density function to make a terrain (variations on noises). The terrain is rater smooth, it is not like ...
1
vote
1answer
2k views

Marching Cubes Terrain [closed]

For the past week I've been researching the Marching Cubes algorithm. I hope to use this for Terrain as it would allow the creation of destruction of terrain. After looking at source code and reading ...
3
votes
3answers
6k views

How to implement marching cube algorithm for rendering clouds

I would like to render clouds using C#, directX9.0 using Microsoft.DirectX.Direct3D; using Microsoft.DirectX; Now I have roughly add and render the vertex as per ...
1
vote
2answers
2k views

How to texture voxel terrain without triplanar texturing?

How can a voxel terrain (marching cubes) be textured without triplanar mapping ? The goal being to have more artistic freedom. I think, I could unwrap the mesh while extracting the isosurface then ...
5
votes
2answers
4k views

Generating terrain using Marching Cubes

I searched around the web but I found nothing that could help me, so I'm asking here. I'm trying to procedurally generate terrain using the marching cubes algorithm, and I can generate a mesh. The ...
5
votes
1answer
4k views

Producing a smooth mesh from density cloud and marching cubes

Based on my results from this question I decided to build myself a 3D noise map containing float values in place of my existing boolean point values. The effect I'm trying to produce is something like ...
5
votes
2answers
9k views

Understanding marching cubes and voxel data relationships

in case it matters i'm doing all this in unity with C# ... I think I missed something or maybe don't understand the logic correctly. I have an existing voxel engine that looks very "minecrafty" at ...
0
votes
2answers
1k views

“Marching cubes” voxel terrain - triplanar texturing with depth?

I am currently working on a voxel terrain that uses the marching cubes algorithm for polygonizing the scalar field of voxels. I am using a triplanar texturing shader for texturing. say I have a grass ...