It is currently Mon Dec 16, 2019 11:39 am


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: paging smooth blocks
PostPosted: Mon Aug 13, 2012 6:27 pm 

Joined: Tue Jul 24, 2012 1:02 pm
Posts: 11
Location: France
Hello,

To improve performance when editing a volume, i have created many volumes instead of one.
I want my final object to be smooth so i use the SurfaceExtractor + MeshDecimator.

The problem : SurfaceExtractor rounds the borders of each volume :(

screeshoot :
Image

I use SimpleVolume, and when i was searching for my problem, i saw the mention of pagination with LargeVolume. Using it instead of tridimentional array of SimpleVolume will resolve the problem ?
(by the way, is there some example of LargeVolume pagination ?).

Or maybe the SurfaceExtractor must be change to something I don't know yet ?

Thanks for helping me :)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: paging smooth blocks
PostPosted: Tue Aug 14, 2012 3:25 am 

Joined: Sat Dec 18, 2010 2:58 am
Posts: 41
Your best option is to use largevolume, but the problem you're experiencing is unrelated.

As the extractor is iterating over all the voxels to extract it is looking at the neighbouring voxels to calculate where it should place vertices etc. Now what happens at the border of the volume the extractor will try to look to its neighbours, but in this case its neighbours are outside of the volume you specified so the extractor assumes it be empty.

This means that you have to extract a region smaller than the size of the region you created so that the extractor knows what density values the neighbours for the voxels on the edge of your extracted region is. With simpleVolume this means that each volumes size will have to be bigger and overlap with over volumes' regions in your array. That method will cause there to be some duplicated data, however with LargeVolume the same data will be accessible to the extractor.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: paging smooth blocks
PostPosted: Tue Aug 14, 2012 8:28 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I just updated our only FAQ entry regarding this: http://www.gitorious.org/polyvox/polyvo ... on/faq.txt

Note that I didn't expect you to find that link as it's not published yet... it's just something I'm working on for the next release.

Freakazo is correct about the cause, although I wouldn't recommend overlapping volumes as a solution. Check out LargeVolume if you want to go big, though even SimpleVolume should go up to 512^3 for testing purposes and you may find it's faster.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: paging smooth blocks
PostPosted: Wed Aug 15, 2012 8:15 pm 

Joined: Tue Jul 24, 2012 1:02 pm
Posts: 11
Location: France
I just changed my code to use only one volume.
The result is clearly better !

Thanks !


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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