我最近安装了panda3d版本1.8.1,这被称为最新的稳定版本。但是当我输入以下代码时 来自direct.showbase.ShowBase导入ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
app = MyApp()
app.run()
上面的代码生成了以下错误消息:
:ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
File "D:\delme.py", line 8, in <module>
app = MyApp()
File "D:\delme.py", line 6, in __init__
ShowBase.__init__(self)
File "C:\Panda3D-1.8.1\direct\showbase\ShowBase.py", line 244, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "C:\Panda3D-1.8.1\direct\showbase\ShowBase.py", line 880, in openDefaultWindow
self.openMainWindow(*args, **kw)
File "C:\Panda3D-1.8.1\direct\showbase\ShowBase.py", line 916, in openMainWindow
self.openWindow(*args, **kw)
File "C:\Panda3D-1.8.1\direct\showbase\ShowBase.py", line 671, in openWindow
raise StandardError, 'Could not open window.'
StandardError: Could not open window.
任何想法为什么会发生这种情况,我该如何解决?
答案 0 :(得分:0)
我改变了:加载显示pandadx9 to:load-display p3tinydisplay