Re: [DirectPython] directpython-general Digest, Vol 5, Issue 2
Status: Inactive
Brought to you by:
hsalo
From: <w....@at...> - 2006-12-15 02:18:25
|
I downloaded the new version and increased the hardware acceleration level and the samples will now run. I suspect that the level of acceleration was so low that it wasn't recognized. Thanks for your ideas. Bill > ------------------------------ > > Message: 3 > Date: Wed, 13 Dec 2006 11:04:46 +0200 > From: Heikki Salo <ho...@gm...> > Subject: Re: [DirectPython] Problem Running Direct.Python Samples > To: <dir...@li...> > Message-ID: <457...@mx...> > Content-Type: text/plain; charset="us-ascii" > > > A problem running DirectPython Samples. When I try to run any > > of the samples with DirectPython I have the following result: > > xxxxxxxxxxxxxxx > > Traceback (most recent call last): > > File > > "C:\Python25\Lib\site-packages\directpy\samples\sampleBasic.py > > ", line 147, in <module> > > mainloop() > > File > > "C:\Python25\Lib\site-packages\directpy\samples\sampleBasic.py > > ", line 75, in mainloop > > d3d.createDevice(title, u"textures/x.ico", window[2], > > window[3], False, CREATE.HARDWARE) > > RuntimeError: Failed to create a device > > xxxxxxxxxxxxxxxxxxxxxxx > > > > I take it that the reference is to the following in d3dx: > > xxxxxxxxxxxxxxx > > class Frame(object): > > def __init__(self, title, fullscreen=False, area=(200, > > 100, 800, 600)): > > d3d.createDevice(title, u"textures/x.ico", area[2], area[3], > > fullscreen, CREATE.HARDWARE) > > > > if not fullscreen: > > d3d.setWindow(*area) > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > > > I was unable to find anything like CREATE.HARDWARE in the > > DirectX documentation and help materials. Also, I found the > > following sort of code as implementations of the > > d3d.CreateDevice( ) syntax and it looks entirely different: > > xxxxxxxxxxxxxxxxxxxxxx > > D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, > > D3DCREATE_SOFTWARE_VERTEXPROCESSING,@d3dpp, D3DDevice) > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Would someone advise if the > > problem lies in the CREATE.HARDWARE command, the > > d3d.CreateDevice( ) syntax in d3dx, or possible somewhere else? > > > > Thanks > > > > Bill > > > > It is hard to say what fails from here. Do other Direct3D samples or > applications work properly? What does dxdiag.exe say? What card and > operating system do you have? Have you updated your drivers? > > You can also try out the traditional way and replace the CREATE.HARDWARE > with CREATE.SOFTWARE | CREATE.NOCAPCHECK and see what happends. > > -- > Heikki Salo > > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > directpython-general mailing list > dir...@li... > https://lists.sourceforge.net/lists/listinfo/directpython-general > > > End of directpython-general Digest, Vol 5, Issue 2 > ************************************************** |