dimatd
03-02-2006 00:29:59
Novodex not work
+ mMeshVertices {x=-498.05447 y=98.823532 z=-498.05447 } NxVec3
+ mMeshVertices {x=-498.05447 y=100.39216 z=-490.27237 } NxVec3
+ mMeshVertices {x=-498.05447 y=101.96078 z=-474.70816 } NxVec3
go on "Z"..... Whi?
Novodex work
go on X
void PagingLandScapeRenderable::getRawVertexData(Vector3* pVerts)
{
// pVerts should be pre-allocated to tilesize*tilesize
// using getVertexCount()
const uint tilesize = mOpt->TileSize -1 ;
Vector3 *vert = pVerts;
for (uint i=0; i<=tilesize; ++i)
{
for (uint j=0; j<=tilesize; ++j)
{
*vert++= _getvertex(i, j); // why ?????
}
}
}
+ mMeshVertices {x=-498.05447 y=98.823532 z=-498.05447 } NxVec3
+ mMeshVertices {x=-498.05447 y=100.39216 z=-490.27237 } NxVec3
+ mMeshVertices {x=-498.05447 y=101.96078 z=-474.70816 } NxVec3
go on "Z"..... Whi?
Novodex work
void PagingLandScapeRenderable::getRawVertexData(Vector3* pVerts)
{
// pVerts should be pre-allocated to tilesize*tilesize
// using getVertexCount()
const uint tilesize = mOpt->TileSize -1 ;
Vector3 *vert = pVerts;
for (uint i=0; i<=tilesize; ++i)
{
for (uint j=0; j<=tilesize; ++j)
{
*vert++= _getvertex(j, i);
}
}
}
go on X