Trouble with render-to-texture while using pandadx8?

Greetings all!

I ran the render-to-texture tutorial today, and was quite surprised to discover that the tutorial seems to be dead when running under DirectX8.

What’s ultra-bizarre is that it seems to be dead under Panda3D 1.2.2 and DirectX 8 as well; I’m almost 100% certain that it was alright the last time I checked! :open_mouth:

What I’m seeing is that the teapot images come up scrambled, and the following error strobes through my command console (maybe once per frame?)

:display:gsg:dxgsg8(error): CopyRects failed in copy_texture at (panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx:1427), hr=D3DERR_INVALIDCALL: Invalid call

Does anyone have any ideas? We’d like to stay with DX8 (OpenGL is too slow, DX9 is too “Why doesn’t this run on my development machine?” :wink:)

Thanks,
Mark

I’m not 100% sure, but this might be fixed on the trunk. Are you able to download and build a version of Panda for yourself?

David

I’m afraid we haven’t yet gotten to a state where Panda3D will build for us here at SOS (that upper bound on the memory footprint during compile-time is a real killer :wink:).

Is anyone else able to verify the problem with panda3d 1.2.3? If they are, I’ll go ahead and run a diff between the head of the CVS tree and the source for 1.2.3. Perhaps I can rebuild only the afflicted DLLs without building all of Panda…

Take care,
Mark

Looks like paratiste buffers are not working at the moment. Try the following config setting so Panda will use render-to-texture:

prefer-parasite-buffer 0