
Ok so I have some questions, starting small..
It looks like the terrain has one DataGrid component, and doesn't need any more, right?
This class stores a list of "Data grid values" as well as "Vertex positions of the grid points". How are these two related?
What are grid values?
Would "Vertex positions of the grid values" be correct, or are they different?
What does the grid represent?
A MetaHeightmap is a MetaObject. How does this map work into terrain generation? What happens when the MetaHeightmap updates the data grid?
My first goal is to display terrain and initialize the Library without any overhangs. Would the following code be sufficient?
Code: Select all
static isot::IsoSurfaceTerrainBuilder isC(xDim, yDim, zDim, QUAD_SIZE, mTerrainPosition,isot::IsoSurfaceTerrainBuilder::GEN_NORMALS);
isC.clearMetaObjects();
if(blobCounter < 1)
isC.setHeightfieldCallback(&myClass::myGetHeightFunction);
isC.setPosition(mTerrainPosition);
Also, where does this number come from?
Code: Select all
#define QUAD_SIZE 2.9296875f
