Hello,
I have DirectPython 0.5 ( http://directpython.sourceforge.net/) and python2.4
(directx9.0C installed).
Samples do not work, I have this error : "RuntimeErr or: Failed to create a
device"
For example with sampleBasic.py :
Traceback (most recent call last):
File "sampleBasic.py ", line 147, in ?
mainloop()
File "sampleBasic.py ", line 75, in mainloop
d3d.createDevic e(title, u"textures/x.ico", window[2], window[3], False,
CREATE.HARDWARE )
RuntimeError: Failed to create a device
Why ?
please help me... any help would be appreciated.
Thanks 1 2000
Jérôme Le Bougeant wrote:
Hello,
I have DirectPython 0.5 (http://directpython.sourceforge.net/) and python2.4
(directx9.0C installed).
Samples do not work, I have this error : "RuntimeErr or: Failed to create a
device"
For example with sampleBasic.py :
Traceback (most recent call last):
File "sampleBasic.py ", line 147, in ?
mainloop()
File "sampleBasic.py ", line 75, in mainloop
d3d.createDevic e(title, u"textures/x.ico", window[2], window[3], False,
CREATE.HARDWARE )
RuntimeError: Failed to create a device
Why ?
please help me... any help would be appreciated.
Thanks
I guess that you have pretty old or some cheap integrated
graphics card. Either that or you should upgrade your drivers.
createDevice() tests if some basic requirements are met and
fails if they are not.
You can try to use CREATE.SOFTWARE | CREATE.NOCAPCHE CK
combination to pass these checks, but most of the advanced
samples probably don't work.
--
Heikki Salo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Méta-MCI |
last post by:
Hi, all!
Any news, on release Python-2.5 for many modules/lib?
Some exemples:
Console (Effbot)
SciPy
Iconvcodec
DirectPython
|
by: vedran |
last post by:
Hello,
I using directpython for making 3d miniature applications,but I have
one problem about directpython.
This is my code for example:
import d3d
import d3dc
import d3dx
|
by: vedran |
last post by:
Hello,
How can I move objects in directpython???
|
by: Gigs_ |
last post by:
can someone tell me which is better for making 3d game in python.
something like tennis simulation
thx
|
by: ...:::JA:::... |
last post by:
Hello,
I have problem with building directpython ( .exe ) application , actually
when
I finish building application and when I run it, in log file I get an error:
Traceback (most recent call last):
File "sampleMeshAnim.py", line 16, in ?
| |
by: ...:::JA:::... |
last post by:
Hello,
Is there any real easy example for loading an texture in your directpython
window???
For example this is my code:
# loading directpython modules
import d3dx
import d3d
from d3dc import *
|
by: vedrandekovic |
last post by:
Hello,
I'am using DirectPython 0.8, wxPython 2.8.4.2 (ansi) for Python 2.5
and I'm running it on windows XP SP2.
When I run my wx program, and this program run directpython code:
(I run it under wx frame)
example code:
|
by: veki |
last post by:
Hello,
I've got IBM Thinkpad 30 laptop with configuration:
IBM Thinkpad R30
P3 Mobile Celeron 900mhz
128mb sdram pc133
15gb hdd
cd-rom Teac cd-224e
56K V.90/92
10/100 Ethernet
|
by: vedrandekovic |
last post by:
Hello again,
I'am working a simple application with wxpython, py2exe and
directpython.After I write python code in my wxpython textctrl, then
my application must save that code and create ( pgssetup2.py script ),
and then with py2exe create (.exe) of the code. ( my application is
builded with py2exe too ). Here is example of code the converts
from .py to .exe:
try:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |