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


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Detect voxel is synced with mesh
PostPosted: Sun Nov 17, 2013 8:06 am 
User avatar

Joined: Sun Aug 25, 2013 4:13 am
Posts: 10
I would love a feature to detect if the mesh is in sync with the written voxels.

I am developing a feature to allow the users to alter the noise of the terrain and this fires of a system that will calculate the new terrain heights and will raise or lower a voxel column till it reaches the new level to allow for smooth real time viewing of the new map.

I would like to wait after each columns step to the new height for the mesh to catch up. Maybe a yield for .VolumeMeshIsSynced or something like that?

Or is there a way to do this now?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Detect voxel is synced with mesh
PostPosted: Sun Nov 17, 2013 1:35 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Interesting idea... there is currently no way to do this but it's interesting enough to warrant further thought. I've logged an issue here: https://bitbucket.org/volumesoffun/cubi ... h-is-up-to

However, you can probably force the mesh to be up do date (alomst) straightaway. If you search for 'maxNodeSyncsPerFrame' in the ColoredCubesVolume class then you should be able to increase the value here. If you set it to a big value then the whole mesh should be synchronized within one frame. This is fine for local changes but if you raise/lower the whole map then it will be too slow.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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