24
2016
Voxel Terrain

Uploaded the old source for the marching cubes voxel terrain package (from https://unitycoder.com/blog/2012/09/30/marching-cubes-voxel-terrain/ )
Replaced the old shader with unity 5 compatible version,
also should convert the .js into c# someday.. *Note: its now converted, thanks to “SimpleRookie” (see comments below)
Instructions:
– R = reset (reload scene)
– A/D = rotate camera
– Left mouse button = draw
– Right mouse button = erase
Source: (whole project)
https://github.com/unitycoder/VoxelTerrain
Related Posts
8 Comments + Add Comment
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












Thank you very much. Early holiday gift for me!
I went through and did a quick and dirty conversion to c#
https://www.dropbox.com/s/w26q2lyb6yiq6rm/MarchingCubesCSharp.cs?dl=0
thanks! ill add to github later
updated c# to github
Okay, I been fiddling with this for a few days now. (Thank you again) And I made a chunk system with some noise randomness using it, to decent success. But there is one thing. Between all my chunks is a single sized gap. I tracked it down to the base voxel code, even using your stock release as a test bed for my confirmation.
size is off by one. size of 1 has no results, size 2 is a single ‘block’
So I’m figuring out, that it takes at least two/four ‘nodes’ to make a ‘block’ So I need to manipulate sizes or I need to force my blocks to jump the gap.
Maybe I’m tired, but the life of me, I can figure out how to fill that gap.
Any advice? Thank you!
i think i got that fixed in one another version, will check later.
newer version is here, http://1darray.com/blog/2016/12/29/advanced-voxel-terrain/
Love the snow! =D
Dude this works amazing with this
http://schemingdeveloper.com/2017/03/26/better-method-recalculate-normals-unity-part-2/