First off, I've played some with PolyVox first but moved on to Cubiquity as it seems to have what i'm looking for in it and I think I can expand the needed editing functionality myself.
I took the OpenGL example and have integrated it with my simple OpenGL engine.
Below is a just a test rendering.

So, this is made by doing:
Code:
uint32_t Application::createTest()
{
uint32_t handle;
cuNewEmptyColoredCubesVolume(0, 0, 0, 64, 64, 64, "blah.vdb", 64, &handle);
for(int x=0; x<64; x++)
{
for(int y=0; y<64; y++)
{
for(int z=0; z<64; z++)
{
float n = glm::simplex(glm::vec3(x,y,z));
if (n > 0.7)
{
Cubiquity::Color c;
c.setBlue(255);
c.setAlpha(255);
cuSetVoxel(handle, x, y, z, &c);
}
}
}
}
return handle;
}
Works fine (as you see above). So, when I run it again it errors as "blah.vdb" is already there.
So, I run this instead:
Code:
validate(cuNewColoredCubesVolumeFromVDB("blah.vdb", CU_READONLY, 32, &volumeHandle));
I do see the messages print out for resyncing mesh and it does seem to adjust as I move the camera around, but nothing renders...
I noticed in the render routine that an if check fails that there isn't any indices
Code:
if (openGLOctreeNode->noOfIndices > 0 && openGLOctreeNode->renderThisNode)
Does cubiquity automatically sync out to the file? Do I need to "add" something? I can use the example VDB that came with the OpenGL example and it loads ok. The problem seems to be with loading one that I created in the last run. Any thoughts? Thanks!