basicaly i would like to be able to use all points of something i render in irrlicht.
from my terrain, i think i have to get all triangles first from a triangle selector and from those, deduce all points or something right ?
i try to use the third fonction getTriangle of the API but it dont seem to work + i dont think i use it well either.
i use irrlicht 1.7.3
http://irrlicht.sourceforge.net/docu/cl ... ector.html
i tryed that :
Code: Select all
std::vector<core::triangle3df> terrainTriangles(115200, 0); // allocate memory at runtime
//my terrain got 115200 from getTriangleCount()
scene::ITriangleSelector*terrainSelector
=smgr->createTerrainTriangleSelector(terrain,0);
terrain->setTriangleSelector(terrainSelector);
terrainSelector->getTriangles(terrainTriangles,115200,115200,NULL); //trying to get all the triangle in the vector
terrainSelector->drop();
do you know a good method to get all point from a terrain or whaveter stuff i render in irrlicht ?No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called