Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Continuitybetween volumes
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=397
Page 1 of 1

Author:  QuantumFlux [ Thu May 31, 2012 11:46 am ]
Post subject:  Continuitybetween volumes

Hey there, I am currently testing around with PolyVox and I have a problem regarding the edges of volumes. Basically I am trying to create a procedural voxel terrain in Ogre3D using the SurfaceExtractor class. However, I am getting problems with the extracted volumes:
Image

As you can see, SurfaceExtractor is creating edges between the meshes. However, I would like the terrain to be editable later on, so I guess the only option is to make the volume one voxel larger on each edge, extract only the edge of one of the volumes and update the edge voxels of both volumes if a change is made.
My question would be whether this is the only option I have or if there's another solution?

Author:  David Williams [ Thu May 31, 2012 12:55 pm ]
Post subject:  Re: Continuitybetween volumes

Hi, this is actually quite a common problem, and the solution is simply that you should only work with a single volume. PolyVox contains classes such as LargeVolume which can support very large dimensions (subject to memory) so you should only need one of them.

You should still extract your mesh as a number of seperate parts though, so that when the terrain is modified you only need to update the parts which are affected.

Author:  QuantumFlux [ Thu May 31, 2012 6:49 pm ]
Post subject:  Re: Continuitybetween volumes

Hmm... So as far as I understand that class it basically has a fixed origin and lets me shift the loaded region around? That's pretty neat. :) Thanks

Author:  David Williams [ Thu May 31, 2012 7:27 pm ]
Post subject:  Re: Continuitybetween volumes

The volume bounds are fixed, yes, and it uses a Least Recently Used scheme to flush out data that hasn't been touched for a while. But you should really start small until you get everything working properly.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/