*HAL 9000* Posted April 8, 2015 Share Posted April 8, 2015 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 Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted April 8, 2015 Share Posted April 8, 2015 Not sure what you mean by smoothing but there has been several threads on voxel generation. http://www.leadwerks.com/werkspace/topic/11113-can-leadwerks-do-what-i-need-it-to-do-procedural-meshes-and-collisions-multithreading/page__hl__voxel http://www.leadwerks.com/werkspace/topic/9670-create-geometry-at-runtime-in-lua/page__hl__voxel http://www.leadwerks.com/werkspace/topic/6158-what-are-you-working-on/page__st__200__hl__voxel#entry73134 Hope these help. Quote Link to comment Share on other sites More sharing options...
*HAL 9000* Posted April 10, 2015 Author Share Posted April 10, 2015 I mean Smoothing Voxels like seen here: or 2 Dimensional it would look like this: 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: Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted April 10, 2015 Share Posted April 10, 2015 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. Quote Link to comment Share on other sites More sharing options...
klepto2 Posted April 10, 2015 Share Posted April 10, 2015 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. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
*HAL 9000* Posted April 10, 2015 Author Share Posted April 10, 2015 @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 ^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.