Changes to VertexBuffer.readData(...) ?

7 views
Skip to first unread message

Stefan Stammberger

unread,
Sep 19, 2008, 11:21:35 AM9/19/08
to Python Ogre Developers
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

Andy Miller

unread,
Sep 20, 2008, 2:44:04 AM9/20/08
to python-ogre...@googlegroups.com
Tim needs to look at this as I can't reproduce the issue on my Ubuntu system -- ie I'm not testing the prebuilt packages however I'm looking at the generated Python-Ogre source on Linux and it won't cause the issue you are reporting.....

Tim - can you send me a copy of the HardwareVertexBuffer.pypp.cpp that was used to build the latest binary -- the issue sounds like the automated void pointer discovery/wrapping isn't working on your build system..

Regards

Andy

2008/9/19 Stefan Stammberger <some....@gmail.com>

Stefan Stammberger

unread,
Oct 4, 2008, 6:53:43 PM10/4/08
to Python Ogre Developers
Are there any news on this?

Thanks,
Stefan

On 20 Sep., 08:44, "Andy Miller" <nzmill...@gmail.com> wrote:
> Tim needs to look at this as I can't reproduce the issue on my Ubuntu system
> -- ie I'm not testing the prebuilt packages however I'm looking at the
> generated Python-Ogre source on Linux and it won't cause the issue you are
> reporting.....
> Tim - can you send me a copy of the HardwareVertexBuffer.pypp.cpp that was
> used to build the latest binary -- the issue sounds like the automated void
> pointer discovery/wrapping isn't working on your build system..
>
> Regards
>
> Andy
>
> 2008/9/19 Stefan Stammberger <some.fus...@gmail.com>
Reply all
Reply to author
Forward
0 new messages