r/dualcontouring • • Sep 18 '24

Naive Surface Nets on GPU in Unity. All in a single draw call using "meshlet" system.

14 Upvotes

r/dualcontouring • • Jun 25 '25

Surface Nets weird "overdraw"

Thumbnail
reddit.com
2 Upvotes

r/dualcontouring • • May 26 '16

[Question]Dual Contouring - Sharp features are lost?

4 Upvotes

So, I've 'implemented' DC, but it seems that it can precisely reconstruct sharp features only if they are aligned to the grid.

When an implicit cube (SDF) is aligned with coordinate axes or rotated by 45 degrees along one axis, it's contoured perfectly.

But when it's rotated by 45 degrees along one axis, then rotated by 45 degrees along the other, the edges becomes kinda wobbly or jagged. Imgur

If I don't clamp cell vertices to cell bounds, the edges again become perfectly sharp, but the resulting mesh contains overlapping triangles and 'wedges' (not seen on the picture - you have to look from the inside of the mesh). Imgur

Is this problem inherent to DC? How can it be solved? What contouring algorithm should I switch to if precise sharp edges cannot be done with DC?


r/dualcontouring • • May 25 '16

[Question] Any papers on voxel terrain with sharp features?

1 Upvotes

Hi! I need to implement a voxel terrain with sharp features as part of my studies, but I could only find two published papers ("Real-time rendering of stack-based terrains"[2011] and "Generating smooth high-quality isosurfaces for interactive modeling and visualization of complex terrains"[2012]) that deal with isosurface extraction with sharp feature preservation (using Dual Contouring and Dual Marching Cubes[G.Nielson, 2004]).

Could you please refer me to some publications on polygonizing voxel terrains with sharp features (apart from those two)?

Most works are aimed at rendering smooth voxel terrains, e.g.:

Level of Detail for Real-Time Volumetric Terrain Rendering [2013]

Real-Time Isosurface Extraction With View-Dependent Level of Detail and Applications [2015]

Arches: a Framework for Modeling Complex Terrains [2009]

A hybrid representation for modeling, interactive editing, and real-time visualization of terrains with volumetric features [2014].


r/dualcontouring • • Aug 25 '17

Source Code Unity - Multithreaded Dual Contouring C++ Plugin

Thumbnail
youtube.com
7 Upvotes

r/dualcontouring • • Sep 29 '15

Mod Post Updated the flairs. The tags are no longer necessary.

2 Upvotes

Just make sure to add a suitable tag.


r/dualcontouring • • Sep 23 '15

Resource I'm publishing my 2D/3D Dual Contouring and Dual Marching Cubes (DMS) experimental code!

Thumbnail
github.com
6 Upvotes

r/dualcontouring • • Dec 24 '15

Source Code 100% Manifold Dual Contouring Implementation

9 Upvotes

After months of research and working through various algorithms to get to this point, I've finally done it! Fully working Manifold Dual Contouring! It features surface-independent vertex clustering, multi-vertex cells, and the manifold criterion that enforces simplifications produce only manifold surfaces.

Other noteworthy features that the paper originally notates is their "attractive" feature of extremely quick error-threshold switching. Since vertex clustering works without the error threshold (which is used initially to give quicker polygonization), you only have to re-run the polygonization stage. Manifold criterion can be enabled and disabled in a similar fashion.

The code is currently unoptimized and messy, but it's fully functional and, as far as I can tell, bug-free. This is the ONLY public implementation of this algorithm so it feels really good to get this far.

Source Code

Screenshots and Comparisons

With and Without Manifold Criterion

Chinese Dragon Undergoing Simplification

Regular DC vs Manifold DC

Regular DC vs Manifold DC Teapot


r/dualcontouring • • Jun 04 '22

Can the results be improved by knowing the SDF of the isosurface?

Post image
4 Upvotes

r/dualcontouring • • Apr 03 '16

QEF

3 Upvotes

Hello!

I'm working on a project in Unity (C#) that would require a smooth terrain. First thing i tried was the Marching cubes algorithm. The terrain was smooth as i wanted it too be but it had a problem with preserving hard edges. This is why i looked in DC. I have reconfigured my code to calculate the Hermite data( if i understand this correctly this are the Density function intersections with the edges of a voxel and the normals at those intersections ).

The problem I'm facing is solving the so called QEF for the feature point of the voxel. I have read about the problem online and found several solutions ( singular value decomposition was the most prominent ) but i have trouble understanding/implementing the method as i have yet to leave high school and matrix operations are not in our high school curriculum.

My question is if there are any already written examples in C# you know of that could help me implement the QEF in Unity.

Thank you for reading this post!

Dmajster

[edit] DC is now sort of working, having some problems with moving the particle, but even the not so accurate terrain is looking quite nice.

http://prntscr.com/aom6kv

[/edit]


r/dualcontouring • • Dec 28 '14

Blog Post GPU Gems 3 - Generating Complex Procedural Terrains Using the GPU (Nvidia)

Thumbnail
http.developer.nvidia.com
1 Upvotes

r/dualcontouring • • Oct 04 '14

Resource (Creator) Dual Contouring of Hermite Data - Frank Losasso [PDF]

Thumbnail frankpetterson.com
2 Upvotes

r/dualcontouring • • Oct 04 '14

Resource Basic Dual Contouring Theory [Stack Overflow]

Thumbnail
stackoverflow.com
2 Upvotes

r/dualcontouring • • Feb 24 '18

Manifold Dual Contouring

Thumbnail
youtube.com
6 Upvotes

r/dualcontouring • • Nov 09 '15

Source Code Neilson's Dual Marching Cubes Implementation

5 Upvotes

After finding a table on a Stack Overflow post, I whipped up a rather crude (and somewhat messy) implementation of Neilson's Dual Marching Cubes. To my knowledge, this is the only published straight-foward implementation of the raw algorithm. It's pretty much the same as dual contouring but it allows for up to 4 vertices inside a cell. While it doesn't make much of a difference on uniform grids, it's the key to manifold dual contouring, which results in high-quality simplified meshes.

Thanks to /u/ngildea and his open-source Dual Contouring implementation, I was also able to add a QEF solver so the resulting meshes preserve sharp features. The QEM mode was actually my failed attempt at implementing my own QEF solver. The math goes way over my head.

Some other noteworthy things are my implementation specifically disables indexing to allow for flat-shaded faces, although with some tweaks you can use indexed vertices and smooth shading. Culling is also working.

Source on GitHub

Screenshot

Next up is Manifold Dual Contouring, so keep an eye out for that in the near future. :)


r/dualcontouring • • Feb 24 '18

Dual Contouring with OpenCL

Thumbnail ngildea.blogspot.ca
3 Upvotes

r/dualcontouring • • Oct 23 '14

Resource Dual Contouring: "The Secret Sauce" by Scott Schaefer , Joe Warren [PDF]

Thumbnail cs.berkeley.edu
1 Upvotes

r/dualcontouring • • Oct 24 '14

Resource Dual Contouring for Domains with Topology Ambiguity By Jin Qian and Yongjie Zhang [PDF]

Thumbnail imr.sandia.gov
1 Upvotes

r/dualcontouring • • Oct 24 '14

Resource Dual Contour Win32 Source + Explanation | tatwood.net

Thumbnail
tatwood.net
1 Upvotes

r/dualcontouring • • Oct 24 '14

Implementation [Implementation] Ruaumoko: D. C. Edition - Unity3D

Thumbnail
assetstore.unity3d.com
1 Upvotes

r/dualcontouring • • Oct 24 '14

Resource James' Blog: Dual Contouring

Thumbnail
jamesgregson.blogspot.ca
1 Upvotes

r/dualcontouring • • Oct 24 '14

Resource Terrain Engine Part 1 - Dual Contouring

Thumbnail
upvoid.com
2 Upvotes

r/dualcontouring • • Oct 24 '14

PDF Robust Repair of Polygonal Models [PDF]

Thumbnail pdf.aminer.org
1 Upvotes

r/dualcontouring • • Oct 24 '14

PDF Multi-Resolution Dual Contouring from Volumetric Data [PDF]

Thumbnail liris.cnrs.fr
1 Upvotes

r/dualcontouring • • Oct 27 '14

PDF Generating Smooth High-Quality Isosurfaces for Interactive Modeling and Visualization of Complex Terrains [PDF]

Thumbnail informatik.uni-rostock.de
3 Upvotes