Panda3d 无法打开 directx window
Panda3d unable to open directx window
我最近安装了 panda3d 版本 1.8.1,当我输入以下代码时,它被称为最新稳定 release.But
从 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.
知道为什么会发生这种情况吗?我该如何解决?
我自己解决了这个问题。
我编辑了 panda3d1.8.1/etc/config.txt
我改了:load-display pandadx9
至:加载显示 p3tinydisplay
我最近安装了 panda3d 版本 1.8.1,当我输入以下代码时,它被称为最新稳定 release.But 从 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.
知道为什么会发生这种情况吗?我该如何解决?
我自己解决了这个问题。 我编辑了 panda3d1.8.1/etc/config.txt
我改了:load-display pandadx9 至:加载显示 p3tinydisplay