Configuring Panda3D

In the etc subdirectory, you will find a configuration file Config.prc. This controls several of Panda’s configuration options - does it use OpenGL or DirectX, how much debugging output does it print, and so forth. The following table lists several of the most commonly-used variables.

For a full documentation about Panda3D’s configuration system, click here to view the original documentation file.

To know about accessing config variables from within your code, please see Accessing Config Vars in a Program.

To get a more complete list of variables, see the list of all config variables.

Variable

Values

Default

Details

load-display

pandagl

pandadx9

pandadx8

tinydisplay

pandagl

Specifies which graphics GSG to use for rendering (OpenGL, Direct3D 8/9 or TinyPanda software rendering)

aux-display

pandagl

pandadx9

pandadx8

tinydisplay

pandagl

Specifies which graphics GSG to use if the GSG specified in load-display fails; May be specified multiple times to create multiple fallbacks.

win-size

Number of pixels

640 480

Specifies the size of the Panda3D window

win-origin

Pixel offsets

50 50

Specifies the offset of the Panda3D window

window-title

Window title

Panda

Specifies the title of the Panda3D window

fullscreen

true

false

false

Enables full-screen mode (true or false)

undecorated

true

false

false

Removes border from window (true or false)

cursor-hidden

true

false

false

Hides mouse cursor (true or false)

sync-video

true

false

true

Limits the frame rate to monitor’s capabilities

show-frame-rate-meter

true

false

false

Shows the frame rate (in frames per second) at the upper right corner of the screen (true or false)

notify-level-[package]

fatal

error

warning

info

debug

spam

info

Sets notification levels for various Panda3D packages to control the amount of information printed during execution (fatal being least, spam being most)

model-path

Path string

see config file

Adds specified path to the list of paths searched when loading a model

audio-library-name

p3openal_audio

p3fmod_audio

p3miles_audio

null

p3openal_audio

Loads the appropriate audio library

want-directtools

true

false

true

line commented out

Enables directtools, a suite of interactive object/camera manipulation tools

want-tk

true

false

true

line commented out

Enables support for using Tkinter/PMW (Python’s wrappers around Tk)