[SOLVED] Render only one frame and other questions

Thank’s Nemesis. Indeed I also tried to it that way and it doesn’t work for the same reasons as you, the only way to do it is to define window-type offscreen instead of window-type none.

In fact when window-type is none, it seems that the engine doesn’t even bother to load a Pipe, thus base.makeDefaultPipe() just returns None, hence why the rest of the code can’t work.

So we would also need to manually create a Pipe, but I don’t know at all how to do that…

Anyway for now, it seems that the window-type offscreen trick works, so I’ll continue with that. We’ll see if it produces errors later on.


To answer my own question about CPU only rendering, it seems that tinydisplay does just that. It was renamed p3tinydisplay in Panda3D v1.8.0, see:
[tinydisplay missing in 1.8.0)

So I just added at the top of my script:

loadPrcFileData("", "load-display p3tinydisplay"); # to force CPU only (or at least make it available)

Now I guess the script should work even on servers where there’s no GPU.

Now let’s get to work! Thank’s Nemesis and to the Panda3D developpers, this is a really great open source engine!