It is currently Sat Aug 22, 2020 4:26 am


All times are UTC




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Surface Extractor Mesh Simplification
PostPosted: Tue Aug 19, 2014 8:00 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
petersvp wrote:
Downsampling the volume data itself is vvery heavy operation. In Crafterria, I generate LODs based on the mesh decimator. Downsampling may require TransVoxel for seamliss meshes, while the decimator approach does not introduce any seams if I modify the function to never merge vertices of region boundaries.


I do agree downsampling can have some problems. And I'm not against decimation, but until we do more LOD work in Cubiquity it is hard to say what is best. And perhaps we can still do a hybrid, decimating the downsampled meshes. I don't know yet but I do hope to play with OpenMesh one day.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Surface Extractor Mesh Simplification
PostPosted: Thu Sep 04, 2014 8:22 pm 
User avatar

Joined: Thu Sep 05, 2013 3:38 am
Posts: 51
Location: USA - Arizona
Another great use for this feature would be in scenarios that use the MarchingCubesExtractor and have very small voxels in a very large volume.

For example, the user could generate a random terrain, then do a second pass over the volume adding in buildings that were actual models converted to voxel data. The advantage of having the small voxels means the building models, once converted to voxel data and placed into the volume, could retain most, if not all, of their original quality.

Such a scenario, even though it is using the smooth extractor, would have many vertices that could be simplified away drastically decreasing the vertex count.

_________________
Dream Big Or Go Home.
ENet - http://enet.bespin.org
Recast - https://github.com/memononen/recastnavigation
Irrlicht - http://irrlicht.sourceforge.net/forum
PolyVox - http://www.volumesoffun.com/phpBB3/
Help Me Help You.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Surface Extractor Mesh Simplification
PostPosted: Fri Sep 05, 2014 8:37 am 

Joined: Tue Apr 08, 2014 5:10 pm
Posts: 124
To make region boundaries seamless, you muast patch MeshDecimator the following way:

In include\PolyVoxCore\MeshDecimator.inl
make following function immediately return false:

Code:
bool MeshDecimator<VertexType>::canCollapseRegionEdge(uint32_t uSrc, uint32_t uDst)


this way you get seamless regions


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net