Hi,
this is the code I'm using for retrieving vertex data from a mesh. I
think I got it from the OgreOde test an changed it a
little.
vbuf =
pSubMesh.vertexData.vertexBufferBinding.getBuffer(elem.getSource())
## need space for the verticies
storageclass = ctypes.c_float * (pSubMesh.vertexData.vertexCount * 6)
test=storageclass(0.0)
vbuf.readData(0, pSubMesh.vertexData.vertexCount * 6 *
ctypes.sizeof(ctypes.c_float), ctypes.addressof(test))
and this is the error I get:
http://www.malwasandres.de/bilderr/vbuffer_error.png
it worked before my to the latest precompiled ubuntu packages. I got
them today.
Thanks