Volumes Of Fun

Detect voxel is synced with mesh
Page 1 of 1

Author:  ianjosephfischer [ Sun Nov 17, 2013 8:06 am ]
Post subject:  Detect voxel is synced with mesh

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?

Author:  David Williams [ Sun Nov 17, 2013 1:35 pm ]
Post subject:  Re: Detect voxel is synced with mesh

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group