You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
I cannot get terrain vertices with 1.5. I updated the routine to follow new 1.5 way to retrieve terrain vertex and index buffer, but it simply does not work. here are it:
/* If you need access to the terrain data you can also do this directly via the following code fragment.
*/
scene::CDynamicMeshBuffer* buffer = new scene::CDynamicMeshBuffer(video::EVT_2TCOORDS, video::EIT_16BIT);
terrain->getMeshBufferForLOD(*buffer, 0);
video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getVertexBuffer().getData();
// Work on data or get the IndexBuffer with a similar call.
buffer->drop(); // When done drop the buffer again.
That's what the example says, and that was tested with the usual Irrlicht render methods (i.e. I rendered the data and it looked almost like the original terrain).
Did you try to render the data you got? How does it look like - i.e. what are the problems you encounter?
Also note that the default Irrlicht 1.5 SDK uses 32bit indices even for the heightmap in the SDK (although not necessary). So make sure you got the proper index type.
i rendered it and it give me only a part of the terrain. I got only the vertices on the yellow part, and i know for sure there is no error in the rendering since the parts wich are not colored do not collide with the camera, and that means there are no vertices for them
i don't think this depends by 32 bits indices, since i use directly the [] operator of the indexbuffer class, do not cast to an array