Jump to content

Recommended Posts

Good evening all,

i have a question.

 

How is a simple way to use procedural generation to create Voxels that are encompassed by an smooth iso surface.

That i generate those in a kind of "blocky" form and just readjust the shape to be smooth. Maybe with ussage of the marching cubes algorithm. But if the User manipulates it it has to recalculate the shape again to keep the smotthness even with the adding or substraction of some voxels.

 

Maybe the "Terrain" asset may be usefull for this ?

I dont have much experience in Leadwerks and just started using it. Before it i used Unity a lot.

 

Is something like this even possible in Leadwerks ?

Would be great if you could help me out.

 

Best Regards HAL

Share this post


Link to post

I mean Smoothing Voxels like seen here:

 

 

ixFZlVzzPNMU3.jpg

 

 

 

 

Spheres_together.jpg

 

 

 

or 2 Dimensional it would look like this:

 

 

 

IX3SD.png

 

 

 

But i´d like to achieve results like seen in the first picture ...

 

Meaning that the Geometry gets generated smooth around the Voxels ... like here on Molekules:

 

C60_isosurface.png

 

Share this post


Link to post

So do you want to use voxels so that the player can alter the terrain ( think minecraft )?

 

If not then the terrain editor will give you a "smooth" look. Check out Aggrors terrain tutorial.

 

 

 

Hope these help.

Share this post


Link to post

as Leadwerks does use a deffered renderer i could imagine one way:

 

Render the voxel terrain into a texture buffer with multiple channels:

normals, texture coords and position

 

then do postprocessing on it and interpolate or blur each channel to smooth it out. Then apply the the blurred textures on a projected plane and manipulate the fragment values based on the smoothed channels.

Share this post


Link to post

@Panther

Yeah it would be great to give the player the opportunity to manipulate the Terrain.

 

@klepto2:

That way sounds interessting. I´ll try it out soon.

 

Thanks all so far ^^

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...