It is peculiar that whenever I edit the default config.prc file to put my custom settings there - the
python samples stop running. But the ones coded in C++ still works! I am using PSPAD to edit the prc file.
Does anybody have any idea what is going wrong here ?
D:\Panda3D-1.8.0\samples\Shadows>D:\Panda3D-1.8.0\python\python.exe -E Tut-Shado
w-Mapping-Advanced.py
DirectStart: Starting the game.
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "Tut-Shadow-Mapping-Advanced.py", line 5, in <module>
import direct.directbase.DirectStart
File "D:\Panda3D-1.8.0\direct\directbase\DirectStart.py", line 4, in <module>
base = ShowBase.ShowBase()
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 244, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 884, in openDefaultW
indow
self.openMainWindow(*args, **kw)
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 920, in openMainWind
ow
self.openWindow(*args, **kw)
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 640, in openWindow
win = func()
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 626, in <lambda>
callbackWindowDict = callbackWindowDict)
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 691, in _doOpenWindo
w
self.makeDefaultPipe()
File "D:\Panda3D-1.8.0\direct\showbase\ShowBase.py", line 531, in makeDefaultP
ipe
"No graphics pipe is available!\n"
File "D:\Panda3D-1.8.0\direct\directnotify\Notifier.py", line 132, in error
raise exception(errorString)
StandardError: No graphics pipe is available!
Your Config.prc file must name at least one valid panda display
library via load-display or aux-display.
:TaskManager: TaskManager.destroy()
D:\Panda3D-1.8.0\samples\Shadows>
Though the python examples fail to run the C++ ones are running fine when run from within visual studio ide.
No it is all right … I only uncommented the full screen and frame rate visibility - so that the code executes in full screen mode and show frame rates at the top right corner of the screen.
###########################################################
### ###
### Panda3D Configuration File - User-Editable Portion ###
### ###
###########################################################
# Uncomment one of the following lines to choose whether you should
# run using OpenGL, DirectX or TinyPanda (software) rendering.
# There can only be one load-display line, but you can use
# multiple aux-display lines to specify fallback modules.
# When the module indicated by load-display fails, it will fall
# back to the next display module indicated by aux-display,
# when that fails, the next aux-display line, and so on.
#show-dll-error-dialog #t
load-display pandagl
#load-display pandadx9
#load-display pandadx8
#load-display pandagles
#load-display tinydisplay
# These control the placement and size of the default rendering window.
# A value of -2 for the origin means to center it on the screen,
# while -1 lets the window manager choose the position.
win-origin -2 -2
win-size 1440 900
# Uncomment this line if you want to run Panda fullscreen instead of
# in a window.
fullscreen #t
# The framebuffer-hardware flag forces it to use an accelerated driver.
# The framebuffer-software flag forces it to use a software renderer.
# If you don't set either, it will use whatever's available.
framebuffer-hardware #t
framebuffer-software #f
# These set the minimum requirements for the framebuffer.
# A value of 1 means: get as many bits as possible,
# consistent with the other framebuffer requirements.
depth-bits 1
color-bits 1
alpha-bits 0
stencil-bits 0
multisamples 0
# These control the amount of output Panda gives for some various
# categories. The severity levels, in order, are "spam", "debug",
# "info", "warning", and "error"; the default is "info". Uncomment
# one (or define a new one for the particular category you wish to
# change) to control this output.
notify-level warning
default-directnotify-level warning
# These specify where model files may be loaded from. You probably
# want to set this to a sensible path for yourself. $THIS_PRC_DIR is
# a special variable that indicates the same directory as this
# particular Config.prc file.
model-path $MAIN_DIR
model-path $THIS_PRC_DIR/..
model-path $THIS_PRC_DIR/../models
# This enable the automatic creation of a TK window when running
# Direct.
want-directtools #f
want-tk #f
# Enable/disable performance profiling tool and frame-rate meter
want-pstats #t
show-frame-rate-meter #t
sync-video #f
# Enable audio using the OpenAL audio library by default:
audio-library-name p3openal_audio
# Enable the use of the new movietexture class.
use-movietexture #t
# The new version of panda supports hardware vertex animation, but it's not quite ready
hardware-animated-vertices #f
# Enable the model-cache, but only for models, not textures.
model-cache-dir $USER_APPDATA/Panda3D-1.8/cache
model-cache-textures #f
# This option specifies the default profiles for Cg shaders.
# Setting it to #t makes them arbvp1 and arbfp1, since these
# seem to be most reliable. Setting it to #f makes Panda use
# the latest profile available.
basic-shaders-only #f
@ynjh_jo: Thanks a lot for the information.
Here is the solution -