Smooth Voxel Terrain Generation In Godot

  Рет қаралды 23,560

Tokisan Games

Tokisan Games

Күн бұрын

Пікірлер
@TokisanGames
@TokisanGames 5 жыл бұрын
Oops, the keyword is "Isosurface Extraction". Join my discord for updates on my current game, Out of the Ashes: tokisan.com/discord See pics and details here: tokisan.com/out-of-the-ashes/
@Crisisdarkness
@Crisisdarkness 5 жыл бұрын
Wow, this looks so cool, this channel is quite impressive, thank you, I'm glad to be on this channel. Based on this project, the possibilities of creating worlds are endless, and I have been impressed that information can be extracted from real maps, by means of that black and white texture.
@GamedevLlama
@GamedevLlama 5 жыл бұрын
well done! Godot needs more of these videos to let people see what's already possible!
@johnnewton7401
@johnnewton7401 5 жыл бұрын
You're doing some really cool stuff on your channel! Looking forward to more. I would definitely be interested in longer form, more in-depth tutorials or guides from you if you were ever interested in producing content like that! Cheers!
@emi_cpl
@emi_cpl 5 жыл бұрын
Amazing video! keep it up :)
@Toskyval
@Toskyval 5 жыл бұрын
Looks like the only ""limit"" of this tool is that you lose yourself in the 3D editor when you search the single area you wanna retouch with Godot 'brushes' :p Really dope btw, roguelike games in big roaming maps like Daggerfall Unity.
@FrancoisSchnell
@FrancoisSchnell 5 жыл бұрын
Wow, very impressed, keep it up! :)
@ZZKJ396
@ZZKJ396 5 жыл бұрын
Godot really needs this, potentially a much better solution that is shipped with Unity.
@KaletheQuick
@KaletheQuick 5 жыл бұрын
Unity has a built in voxel engine?
@feriante777
@feriante777 5 жыл бұрын
Really cool! Is possible to make an underwater effect with an area and activating fog and/or other post-processing effects. Also the character can enter on a fly mode simulating the swimming..
@TokisanGames
@TokisanGames 5 жыл бұрын
Yes those are possible. I don't think Godot does volumetric fog yet, only distance/height fog so that might be challenging for the moment.
@Toskyval
@Toskyval 5 жыл бұрын
Will be possible to use a mesh as a boolean to sculpt/subtract the voxel terrain? Like you make a tunnel shape in Blender, then use that tunnel mesh in the voxel terrain which will adapt to this mesh.
@TokisanGames
@TokisanGames 5 жыл бұрын
I've not heard anything about constructive geometry like functionality being planned. However, you can currently generate tunnels fairly simply with code using the same add/remove functions I use in these videos. In this issue we show graphics demonstrating this: github.com/Zylann/godot_voxel/issues/72
@GamedevLlama
@GamedevLlama 5 жыл бұрын
Also I'm not sure if auto changing the brightness on the real height map is an option, since the proportions of the gray values already are in a decent space?
@TokisanGames
@TokisanGames 5 жыл бұрын
Yeah, if you want the real Finland I guess you should just leave it. But if you want an interesting terrain with peaks and valleys, you'll want to make use of the full tonal range as I did.
@louiscs5943
@louiscs5943 4 жыл бұрын
can you "dig" squares in your app?
@hekkibork
@hekkibork 5 жыл бұрын
no -mans-Sky beta :D
@KaletheQuick
@KaletheQuick 5 жыл бұрын
I tried to hire the guy who made MapMagic and Voxeland to port them to Godot, but he didn't get back to me. Guess this will do.
@voxelamateur
@voxelamateur 5 жыл бұрын
Great!! btw, are terrain shadows being re-rendered each frame?
@TokisanGames
@TokisanGames 5 жыл бұрын
Yes, there's nothing baked. Just one directional light. On the LOD terrain, my GTX 1060 runs at over 300 fps @ 1080p.
@deusxyz
@deusxyz 5 жыл бұрын
Hey mate, is there a way to get the smoothed terrain but by using the original voxel data? Or did you use storage into 8 points like the original marching cubes algorithm?
@TokisanGames
@TokisanGames 5 жыл бұрын
This module gets voxel data from a heightmap, a 3D noise function, or your can provide your own code like an SDF. This is similar to the original MC implementation which shows a sphere, cylinder, and sine wave SDFs. Data from the SDF is stored in a buffer, which is where modifications are made. The mesh is generated from that buffer.
@deusxyz
@deusxyz 5 жыл бұрын
@@TokisanGames Thank you umm... i tried to interpret this but, well, is it stored as a byte per type like voxels (solid, and air for example), or is it stored in 8 bytes (per corner of the cubes)? Because i looked at the original marching cube over the years and tried implementing but most store the data in the points like this: catlikecoding.com/unity/tutorials/marching-squares/
@deusxyz
@deusxyz 5 жыл бұрын
​@@TokisanGames This demo inspires me a bit to make a game more realistic then simple cubes xD So far i've got basic terrain and i finally got it to work fast enough :D facebook.com/MrPenguinStudios/videos/401991750339119/
@TokisanGames
@TokisanGames 5 жыл бұрын
@@deusxyz ​ If you want more info about the implementation and how the Voxels are stored, look at the source. I linked Zylann's github repository which has all the C++ code. Look at VoxelBuffer and VoxelBlock (a chunk).
@deusxyz
@deusxyz 5 жыл бұрын
@@TokisanGames thank you, you are a legend.
@WittyRpedU
@WittyRpedU 5 жыл бұрын
how would you get a height of a voxel at a set X/Z location?
@TokisanGames
@TokisanGames 5 жыл бұрын
The global height at X, Z is just Y. If you shoot a raycast down, it will return the vector3 position of the terrain, which includes the height as Y.
@metalim
@metalim 5 жыл бұрын
What happened to third video in series? 2 weeks already.
@TokisanGames
@TokisanGames 5 жыл бұрын
It's in process. Rome wasn't built in a day! 😉
@AFXSnares
@AFXSnares 5 жыл бұрын
Torilla tavataan!
@djdols3301
@djdols3301 4 жыл бұрын
does this work with gles 2?
Voxels In Space - Godot Engine Smooth Voxel Terrain Generation
4:04
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Why Godot made me RUN back to Unity
13:28
TJ
Рет қаралды 178 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
What would 10,000 endermans build over time?
12:14
Element X
Рет қаралды 5 МЛН
The Genre Indies Avoid
6:39
mhswoocer
Рет қаралды 394 М.
Every Godot Node Explained ! : 3D Visuals and Physics
9:33
How To Make A 3D Voxel Terrain In Godot Engine 3.1-3.2 Tutorial
19:04