|
I'm trying to get Java3D and compiz working together so that java3d can be rendered without any window. To do this I'm rendering java3d to a (png) image buffer, then transferring the image bytes to GTK+ (in C) via JNI calls and rendering the image with the appropriate transparency support.
I've had some success (you can see a quick video on my blog - blog dot gameldar dot fdns dot net), but have two issues to solve:
1. Its not very smooth in the rendering
2. I have a memory leak somewhere (most likely the PixBuf) that renders my system unusable after about 20 minutes of running the application.
So the question is - what is the best way to perform continuous renders from a series of images (e.g. animation from a series of pngs)? Can I use the GdkPixbufAnimation or reuse my GdkPixbufLoader (the current version creating a new loader with each update)?
Thanks,
Kirk
|