Panda3d server without gui

Hi all,

I know this is kind of a stupid question :slight_smile: but is there any way of using Panda without the gui?

I’ve tried searching for it (Panda3d without gui and likewise queries) but haven’t been able to find anything related.

The reason I ask is that I’m currently writing a dedicated server-side process, but would like to use the event-driven style of panda (and it also helps I’ll have some other classes easily available aswell).

I hope you guys can help. Thanks.

what do you mean by gui?
im currently programming panda in notepad…

I think what you want is no window, try this:

from panda3d.core import loadPrcFileData 
loadPrcFileData("", "window-type none"

That is indeed what I meant and exactly what I needed.

Should someone else ever need it:

from panda3d.core import loadPrcFileData
loadPrcFileData("", "window-type none" ) # Make sure we don't need a graphics engine (Will also prevent X errors / Display errors when starting on linux without X server)
loadPrcFileData("", "audio-library-name null" ) # Prevent ALSA errors

This works perfectly when you want to run a server process. Thanks again!

1 Like