zillenjack
16-05-2009 02:51:07
HI
I am use the HeightFieldGeometry to create the terrain
But I have a found
in the Version1.5.3
This is the code:
heightfield.rowScale = mScale.x / Real(mHeightField->getHeightField()->getNbRows());
heightfield.columnScale = mScale.z / Real(mHeightField->getHeightField()->getNbColumns());
heightfield.heightScale = mScale.y / 32768.0f;
But in the Version1.5.4
blueprint->mSize.x = size.x / Real(blueprint->mHeightField->getHeightField()->getNbRows());
blueprint->mSize.y = size.y / Real(blueprint->mHeightField->getHeightField()->getNbColumns());
blueprint->mSize.z = size.z / 32768.0f;
Why use the Z for height?
My old procedures is error
I am use the HeightFieldGeometry to create the terrain
But I have a found
in the Version1.5.3
This is the code:
heightfield.rowScale = mScale.x / Real(mHeightField->getHeightField()->getNbRows());
heightfield.columnScale = mScale.z / Real(mHeightField->getHeightField()->getNbColumns());
heightfield.heightScale = mScale.y / 32768.0f;
But in the Version1.5.4
blueprint->mSize.x = size.x / Real(blueprint->mHeightField->getHeightField()->getNbRows());
blueprint->mSize.y = size.y / Real(blueprint->mHeightField->getHeightField()->getNbColumns());
blueprint->mSize.z = size.z / 32768.0f;
Why use the Z for height?
My old procedures is error