directpython-general Mailing List for DirectPython (Page 2)
Status: Inactive
Brought to you by:
hsalo
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(3) |
Jun
(2) |
Jul
(5) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
(7) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(5) |
Aug
(11) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(5) |
2008 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
(3) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(4) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Heikki S. <ho...@gm...> - 2007-11-30 14:25:43
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Skepsis > Sent: 29. marraskuuta 2007 21:30 > To: dir...@li... > Subject: [DirectPython] Sending keys > > Hello, I just need a quick answer before proceeding further... > > Is it possible to send virtual key strokes with directpython > to a window so I can finish a voice control program i'm > writing in Pyhton? > > Cheers! > Adrian Smith > Hi, It is not supported by DirectPython, but you can do it if you have ctypes installed (Python 2.5 has it by default). See http://msdn2.microsoft.com/en-us/library/ms646310.aspx for MSDN documentation about SendInput(). It looks more complicated than it really is, but some basic ctypes tutorials should be enough to understand it if you are not familiar with C or C++. You need to declare some structures and understand what they represent. You probably only care about the INPUT and KEYBDINPUT structures, but you have to declare MOUSEINPUT and HARDWAREINPUT (because of the union in INPUT) altough you don't need to know much about those two. Alternatively you can use PostMessage() (with ctypes), but that is not reliable. But if you just hacking something together, it might be enough. Just don't use it in real production code. However, before you can use that you must figure out what your target window is. Get the handle by using FindWindow() (ctypes again) or something similar. You can also use Win32 Extensions for Python (win32all) to access these functions. It is easier, but you need to download additional packages. As you can see, there are many ways to archieve what you ask. Check them out before you decide. -- Heikki Salo |
From: Skepsis <sk...@bl...> - 2007-11-29 19:30:48
|
Hello, I just need a quick answer before proceeding further... Is it possible to send virtual key strokes with directpython to a window so I can finish a voice control program i'm writing in Pyhton? Cheers! Adrian Smith -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
From: Heikki S. <ho...@gm...> - 2007-11-28 22:22:20
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Alain Pointdexter > Sent: 28. marraskuuta 2007 13:29 > To: dir...@li... > Subject: [DirectPython] A huge problem with DirectPython (continued) > > The suggestions about copying DLL's are good but it does not > solve my problem: where can i get hold of those files. There > are only 2 installers: a .exe and a source distribution with > cpp files. In no way am i able to grab the necessary files. > Another remark: my system32 directory contains the following > files already: > d3d9.dll > d3d8.dll > d3dim.dll > d3dxof.dll > d3dramp.dll > d3drm.dll > d3d8thk.dll > d3dim700.dll > d3dpmesh.dll > but no d3dx9_30.dll > > Anyway, i believe you got my message. Further adoption > necessitates an easy way for casual users to experiment. > > Best regards > > Alain > Well, the simplest way I can think of is to install DirectPython into a computer where you have admin access (home, friend, co-worker etc.). Then copy the files from there and create your .zip "installer" using those files or move them around using some other way. Not very elegant, but you only have to do it once. All those .dll's you listed except "d3dx9_30.dll" are core Direct3D 9 files which are present in all system which have DirectX 9.0c installed. Remember, you only need the "d3d.pyd" and "d3dx9_30.dll". The latter is not often present on many systems, it is put there by the installer. You can also find "d3dx9_30.dll" from the net (www.dll-files.com for example), but make sure that the .dll really is what it says it is. Trojans can be nasty things. I have also modified the installer to allow non-admin install, but that only applies to future releases. -- Heikki Salo |
From: Alain P. <ala...@ya...> - 2007-11-28 11:28:46
|
The suggestions about copying DLL's are good but it does not solve my problem: where can i get hold of those files. There are only 2 installers: a .exe and a source distribution with cpp files. In no way am i able to grab the necessary files. Another remark: my system32 directory contains the following files already: d3d9.dll d3d8.dll d3dim.dll d3dxof.dll d3dramp.dll d3drm.dll d3d8thk.dll d3dim700.dll d3dpmesh.dll but no d3dx9_30.dll Anyway, i believe you got my message. Further adoption necessitates an easy way for casual users to experiment. Best regards Alain _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |
From: Heikki S. <ho...@gm...> - 2007-11-26 19:20:41
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Alain Pointdexter > Sent: 26. marraskuuta 2007 16:46 > To: dir...@li... > Subject: [DirectPython] A huge problem with DirectPython > > Hello, > > I am new to DirectPython but i have a huge problem that > actually prevents me from using it at all. > The problem is: installing DirectPython requires > administrator rights on my machine, which i don't have (this > is a machine at work). > I believe this is a showstopper for most people who would > like to use DirectPython professionally. > Is there any change to see a DirectPython installer that > would install for the current user as a fallback. > > Best regards > > Alain > Hi, As David noted, it is possible to just copy certain files to a place where they are found by Python and Windows DLL loader. Administrative privileges are needed because certain D3DX dll's are installed into the system32 folder. However, this step can be ignored if the dll's are already installed (by another application or from an installer provided by Microsoft). I will list here what it needed. Absolute minimum requirements (for DirectPython 0.9): -Direct3D 9.0c installed. No way to ignore this. -D3DX dll (see d3dc._d3dx9dll, currently "d3dx9_30.dll"). This is in system32, but you can also put it in the same directory with d3d.pyd -d3d.pyd (the main DirectPython runtime .dll) So, you actually only need to distribute two files. However, the D3DX .dll should not usually be distributed like that (use the installer in directpy\redist - all those files in there really install only one .dll), but you can if you have no choice. You can also try to get your system administrator to run the setup, as it is signed and approved by Microsoft. The easiest way to make a custom "installer" is probably just to create a .zip file which contains the tree structure and required files (you can drop samples or anything else you don't need). Then unzip it into the PythonXX/Lib/site-packages/directpy-folder (or any other folder, just make sure that is it in sys.path). The real .exe installer does nothing very important, so you can safely ignore it. In short, put "d3dx9_30.dll" and "d3d.pyd" into a directory which is in sys.path. Then try to run a Python script: "import d3d" It should work. Then just add what you need (like d3dc.py, d3dx.py etc.). I can (and probably will) change the installer to work with normal users, but the D3DX issue will still remain. But at least it allows people to solve it in a way which suits them best. -- Heikki Salo |
From: David <dp...@sh...> - 2007-11-26 15:36:30
|
Hi, I had that problem also, so I went to a computer with Direct Python installed and copied all the dll files it needs and all the modules (and the directpy.pth file) for directpython in the site-packages folder (inside the Lib Folder of python's install dir), then put the dlls into the dlls folder in python's dir on the target computer, and the other modules (and the directpy.pth file) into the site-packages dir on the target computer. I probably took more dlls than were needed but when I did it I was in a rush. Im sure someone can make an install, but this a quick solution. Some of the dlls you need are in the system folder, and since python loads dlls from its dlls folder as well the system folders you it works to copy them to python rather than the system folder (which you might not be able to do anyways). Good Luck David >Hello, > >I am new to DirectPython but i have a huge problem >that actually prevents me from using it at all. >The problem is: installing DirectPython requires >administrator rights on my machine, which i don't have >(this is a machine at work). >I believe this is a showstopper for most people who >would like to use DirectPython professionally. >Is there any change to see a DirectPython installer >that would install for the current user as a fallback. > >Best regards > >Alain > > > _____________________________________________________________________________ >Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >directpython-general mailing list >dir...@li... >https://lists.sourceforge.net/lists/listinfo/directpython-general > > > > |
From: Alain P. <ala...@ya...> - 2007-11-26 14:46:19
|
Hello, I am new to DirectPython but i have a huge problem that actually prevents me from using it at all. The problem is: installing DirectPython requires administrator rights on my machine, which i don't have (this is a machine at work). I believe this is a showstopper for most people who would like to use DirectPython professionally. Is there any change to see a DirectPython installer that would install for the current user as a fallback. Best regards Alain _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |
From: Sebastian L. <del...@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HR0cDovL2dldC5zcGx1bmsuY29tLwo+IF9fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gZGlyZWN0cHl0aG9uLWdl bmVyYWwgbWFpbGluZyBsaXN0Cj4gZGlyZWN0cHl0aG9uLWdlbmVyYWxAbGlzdHMuc291cmNlZm9y Z2UubmV0Cj4gaHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vZGly ZWN0cHl0aG9uLWdlbmVyYWwKPgoKCgotLSAKjaGOgY2BoY6hgYGNoY6BoQpTZWJhc3RpYW4gSmF2 aWVyIEx1Y2FzClByb2dyYW1tZXIgJiBHdWl0YXIgSGVybwo= |
From: Heikki S. <ho...@gm...> - 2007-10-18 18:21:19
|
It is done: http://sourceforge.net/project/showfiles.php?group_id=158815 Check the release notes or the readme.txt for (much) more information. Version 1.0 (the first stable one) will fix certain behaviours, but it should not break anything. I will probably update the web site when I have the time and move documentation (or at least some tutorials) in there. -- Heikki Salo |
From: Heikki S. <ho...@gm...> - 2007-10-12 11:51:18
|
Hello all, The next release is almost ready, but because I am not available during this weekend I will have to delay it for a few days. It should be available before next Wednesday if everything goes well. -- Heikki Salo |
From: Sebastian L. <del...@gm...> - 2007-08-29 19:34:00
|
SGksCgpUaGFua3MsCkFuZCBzb3JyeSBmb3IgdGhlIHRyb3VibGVzLiA9KQoKT24gOC8yOS8wNywg SGVpa2tpIFNhbG8gPGhvc2Fsb0BnbWFpbC5jb20+IHdyb3RlOgo+Cj4KPgo+ICAtLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0KPiAqRnJvbToqIFNlYmFzdGlhbiBMdWNhcyBbbWFpbHRvOmRl bHNpbHVjYXNAZ21haWwuY29tXQo+ICpTZW50OiogMjkuIGVsb2t1dXRhIDIwMDcgNDoyNQo+ICpU bzoqIGhvc2Fsb0BnbWFpbC5jb20KPiAqQ2M6KiBkaXJlY3Rwe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F0LiBJdCBkb2VzIG5vdCB0YWtlIG11Y2ggdGltZSB0byBpbXBsZW1lbnQgc2ltcGxlIGxv YWRmaWxlKCkgYW5kCj4gc2F2ZWZpbGUoKSBjYWxscyB3aGljaCBtYXBzIHRoZSBmaWxlIHBhdGgg dG8gdGhlIGFjdHVhbCBmaWxlIHN0b3JlZCBpbnNpZGUKPiB0aGUgLnppcCBmaWxlLgo+Cj4gLS0K PiBIZWlra2kgU2Fsbwo+CgoKCi0tIAqNoY6BjYGhjqGBgY2hjoGhClNlYmFzdGlhbiBKYXZpZXIg THVjYXMKUHJvZ3JhbW1lciAmIEd1aXRhciBIZXJvCg== |
From: Heikki S. <ho...@gm...> - 2007-08-29 17:11:08
|
> -----Original Message----- > From: David [mailto:dp...@sh...] > Sent: 29. elokuuta 2007 18:36 > To: ho...@gm... > Subject: Re: [DirectPython] Calculating Text Sizes > > Thanks for the reply, > > I actually already figured out about the height being the same. > And I have make a function to guess the number of lines by > adding a word at a time until it is too big, at that point it > assumes that the DrawTexts function would have wrapped it. > My problem is that the width of the text that it is returning > is larger then it really is, one of the lines says it is 1050 > px, and DrawTexts fits it into one line, and my resolution is > 1024 x 768 so the text width must be <= 1024. > > I've also check that I am using the same font, and I am. > > Any thing about why it is doing this would be great. > > Thanks, > > David Mack > After some investigation I noticed that the COM-object responsible for the rendering ignores spaces (and probably some other whitespace too) when it renders the text. They are rendered, but they don't increase the width of the string. The getTextSize() uses normal Windows API and it does count whitespace, so there is some difference between the results. So the more you have whitespace in the string, the more the results will differ. There really is no fix for this because I can't modify the underlying COM-object. Fortunately the "do it yourself" method (EditBox etc.) is not affected by this, so if you implement a similar solution it should work OK. You can also count the whitespace in the string and make an educated guess about how much you should tweak the resulting width in order to get better results. -- Heikki Salo |
From: Heikki S. <ho...@gm...> - 2007-08-29 17:11:06
|
=20 _____ =20 From: Sebastian Lucas [mailto:del...@gm...]=20 Sent: 29. elokuuta 2007 4:25 To: ho...@gm... Cc: dir...@li... Subject: Re: [DirectPython] I am back Hi Heikki! Great! We're almost crying... (not seriously =3DP). But like other users, I found that directpython is one of the best = modules for python that I've never seen before. =3D) Thanks for this module. =3D)=20 I've just one suggestion, and that is: Can you can include some kind of "virtual filesystem" to DP? I mean a virtual filesystem based on zlib or something like that. I know it's not up to DirectX but resourcepackager is a messy way to = package our resources (I don't like to write the files down to read them).=20 Thanks, And sorry for the troubles. Regards, --=20 -=81=81=81-=81=81=81=81=81=81-=81=81=81=81=20 Sebastian Javier Lucas Programmer & Guitar Hero =20 =20 Hi, =20 I don't think that creating a virtual file system is very high on my = list of current tasks. Sure, it could be useful but I don't think that most = people really need it. Simple system is relatively easy to implement with the zipfile-module, but the advantages are not that great. It is harder to = use during the development and slower than the native filesystem. C++ side support for this filesystem would be hard to implement because many COM-objects use the normal filesystem no matter what. You would have to unpack the wanted file to a temporary directory when you want to create = d3d objects from the resources. With large amounts of data (meshes, = textures) it would be quite wastful. =20 If you really want to do it, zipfile has pretty good support for things = like that. It does not take much time to implement simple loadfile() and savefile() calls which maps the file path to the actual file stored = inside the .zip file. =20 -- Heikki Salo |
From: Sebastian L. <del...@gm...> - 2007-08-29 01:25:26
|
SGkgSGVpa2tpIQoKR3JlYXQhCldlJ3JlIGFsbW9zdCBjcnlpbmcuLi4gKG5vdCBzZXJpb3VzbHkg ID1QKS4KCkJ1dCBsaWtlIG90aGVyIHVzZXJzLCBJIGZvdW5kIHRoYXQgZGlyZWN0cHl0aG9uIGlz IG9uZSBvZiB0aGUgYmVzdCBtb2R1bGVzCmZvciBweXRob24gdGhhdCBJJ3ZlIG5ldmVyIHNlZW4g YmVmb3JlLiA9KQpUaGFua3MgZm9yIHRoaXMgbW9kdWxlLiA9KQoKSSd2ZSBqdXN0IG9uZSBzdWdn ZXN0aW9uLCBhbmQgdGhhdCBpczoKQ2FuIHlvdSBjYW4gaW5jbHVkZSBzb21lIGtpbmQgb2YgInZp cnR1YWwgZmlsZXN5c3RlbSIgdG8gRFA/CkkgbWVhbiBhIHZpcnR1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h c3RpYW4gSmF2aWVyIEx1Y2FzClByb2dyYW1tZXIgJiBHdWl0YXIgSGVybwo= |
From: Heikki S. <ho...@gm...> - 2007-08-28 16:25:31
|
Hello all, It has been a long time since I have had much time for DirectPython, but now most of the time consuming work is over and I can start to properly maintain this project again. The next version will be 0.9 and it will be the last beta version. Certain things have been fixed or changed during this long break, but most of them should not affect existing code. However, there are some things that will. Here is a current list: -d3dgui received a major update. Expect to change some of your code. There will be a backwards compatible version available too, but who wants to use that when there are new fancy things available? :) -d3d.Effect.update() was changed as previusly mentioned, it will only accept one dictionary argument. -Certain fixes might theoretically affect old code, but testing has not noticed anything major yet. There are also some new things: -Matrix class added (uses D3DXMATRIXA16 for those who are interested) -Basic support for render targets added. -Samples added: -rag dolls with PyODE -post processing -Biovision motion (.bvh) file viewer -Many samples were updated -Some tutorials. You can still say if you need any specific functionality, if it is generally useful it can be added. The next version will be release when it is ready, altough I have no idea when that is. A month (give or take a few days) from this day might be a good guess. -- Heikki Salo |
From: Heikki S. <ho...@gm...> - 2007-08-28 16:02:31
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of David > Sent: 27. elokuuta 2007 1:03 > To: Direct Python > Subject: [DirectPython] Calculating Text Sizes > > Hello, > > I am making a program which uses direct python to scroll > messages across the screen. > > I need to calculate how many pixels the message is in height. > I have tried many ways, but it seems that the > font.getTextSize function does not return the actual size. > > I am using "font.getTextSize" to get the size, and > "d3d.DrawTexts" to display the text. > > Any help on this would be much great, thanks. > > David Mack > Hi, The height which font.getTextSize() returns is always the same and line breaks don't actually increase that value. The common thing to do is to split the message into words and then calculate line- and wordsizes so that it fits into the wanted area. In short, draw many rows instead of big text blocks. This also makes sure that the message is always properly formatted and fits into the screen. For example d3dgui.EditBox and tooltip creation use this method. For trivial uses it only takes few lines of code to do this. -- Heikki Salo |
From: Sebastian L. <del...@gm...> - 2007-08-27 14:41:57
|
SGksCgpEaWQgeW91IHRyeSB3aXRoIGEgZml4ZWQgbnVtY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HVuayBub3cgPj4gIGh0dHA6Ly9nZXQuc3BsdW5rLmNvbS8K PiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGRpcmVj dHB5dGhvbi1nZW5lcmFsIG1haWxpbmcgbGlzdAo+IGRpcmVjdHB5dGhvbi1nZW5lcmFsQGxpc3Rz LnNvdXJjZWZvcmdlLm5ldAo+IGh0dHBzOi8vbGlzdHMuc291cmNlZm9yZ2UubmV0L2xpc3RzL2xp c3RpbmZvL2RpcmVjdHB5dGhvbi1nZW5lcmFsCj4KCgoKLS0gCo2hjoGNgaGOoYGBjaGOgaEKU2Vi YXN0aWFuIEphdmllciBMdWNhcwpQcm9ncmFtbWVyICYgR3VpdGFyIEhlcm8K |
From: David <dp...@sh...> - 2007-08-26 22:02:57
|
Hello, I am making a program which uses direct python to scroll messages across the screen. I need to calculate how many pixels the message is in height. I have tried many ways, but it seems that the font.getTextSize function does not return the actual size. I am using "font.getTextSize" to get the size, and "d3d.DrawTexts" to display the text. Any help on this would be much great, thanks. David Mack |
From: UnspecifiedId <uns...@ma...> - 2007-08-21 00:05:08
|
Hi Sebastian, =20 Thanks for the information. I've added them to my list.=20 =20 I haven't actually distributed the package yet, so I haven't looked into = the problem about the .NET package. I'll get back to you as to what happens. =20 Regards =20 Gavin =20 From: dir...@li... [mailto:dir...@li...] On Behalf Of Sebastian Lucas Sent: Tuesday, August 21, 2007 6:56 AM To: Gavin Tomlins Cc: dir...@li... Subject: Re: [DirectPython] More DirectPython Examples =20 Hi Gavin, These are just tools that I've used for a game: -To make your resources unavailable to any user use "resourcepackage" (I don't remember what was the site of this package). -And to speed up your programs you can use "psyco" ( http://psyco.sourceforge.net/). -py2exe I didn't remember any other tool. BTW, I didn't use DP with IronPython but when you make the Installer for your game...=20 Did you have to include the .NET Framework? I'm asking that because if your game it's just about 5 Mb and the .NET Framework it's about 30 Mb then the user must download 35 Mb and that = makes nonsense.=20 Regards, On 8/20/07, Gavin Tomlins <ga...@ma...> wrote: Greetings all, =20 Currently I'm in the process of doing due diligence on DirectPython. I = found the examples that came with DirectPython to be excellent. However, I'm looking to see if anyone else has a few more examples that they wish to share.=20 I wouldn't mind hearing of other people's experiences in projects with DirectPython, the positive's, the negatives etc.. =20 The games we are looking at are quite simplistic and for use in Neurofeedback but are wishing to see the suitability for DirectPython to = the task. Ie. We don't wish to spend copious amounts of times developing = games, they are simplistic in nature and just require giving a simple feedback = to a patient. =20 We are doing a quick ramp up on what we need to develop some simple = games so if people could list anything from toolsets, environments, tutorials = would be great. =20 Eg. =20 DirectPython VMWare Blender Etc. Komodo =20 Anyone used DirectPython with IronPython for instance? =20 I know this email is vague but I am currently googling and following = threads collating information. =20 Regards =20 Gavin -------------------------------------------------------------------------= This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser.=20 Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________=20 directpython-general mailing list dir...@li... https://lists.sourceforge.net/lists/listinfo/directpython-general --=20 -=81=81=81-=81=81=81=81=81=81-=81=81=81=81 Sebastian Javier Lucas Programmer & Guitar Hero=20 |
From: Sebastian L. <del...@gm...> - 2007-08-20 20:55:51
|
SGkgR2F2aW4sCgpUaGVzZSBhcmUganVzdCB0b29scyB0aGF0IEkndmUgdXNlZCBmb3IgYSBnYW1l OgotVG8gbWFrZSB5b3VyIHJlc291cmNlcyB1bmF2YWlsYWJsZSB0byBhbnkgdXNlciB1c2UgInJl c291cmNlcGFja2FnZSIgKEkKZG9uJ3QgcmVtZW1iZXIgd2hhdCB3YXMgdGhlIHNpdGUgb2YgdGhp cyBwYWNrYWdlKS4KLUFuZCB0byBzcGVlZCB1cCB5b3VyIHByb2dyYW1zIHlvdSBjYW4gdXNlICJw c3ljbyIgKApodHRwOi8vcHN5Y28uc291cmNlZm9yZ2UubmV0LykuCi1weTJleGUKCkkgZGlkbid0 IHJl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S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tCj4gVGhpcyBTRi5uZXQgZW1haWwgaXMgc3BvbnNvcmVkIGJ5OiBTcGx1 bmsgSW5jLgo+IFN0aWxsIGdyZXBwaW5nIHRocm91Z2ggbG9nIGZpbGVzIHRvIGZpbmQgcHJvYmxl bXM/ICBTdG9wLgo+IE5vdyBTZWFyY2ggbG9nIGV2ZW50cyBhbmQgY29uZmlndXJhdGlvbiBmaWxl cyB1c2luZyBBSkFYIGFuZCBhIGJyb3dzZXIuCj4gRG93bmxvYWQgeW91ciBGUkVFIGNvcHkgb2Yg U3BsdW5rIG5vdyA+PiAgaHR0cDovL2dldC5zcGx1bmsuY29tLwo+IF9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gZGlyZWN0cHl0aG9uLWdlbmVyYWwgbWFp bGluZyBsaXN0Cj4gZGlyZWN0cHl0aG9uLWdlbmVyYWxAbGlzdHMuc291cmNlZm9yZ2UubmV0Cj4g aHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vZGlyZWN0cHl0aG9u LWdlbmVyYWwKPgo+CgoKLS0gCo2hjoGNgaGOoYGBjaGOgaEKU2ViYXN0aWFuIEphdmllciBMdWNh cwpQcm9ncmFtbWVyICYgR3VpdGFyIEhlcm8K |
From: Gavin T. <ga...@ma...> - 2007-08-20 06:48:38
|
Greetings all, Currently I'm in the process of doing due diligence on DirectPython. I found the examples that came with DirectPython to be excellent. However, I'm looking to see if anyone else has a few more examples that they wish to share. I wouldn't mind hearing of other people's experiences in projects with DirectPython, the positive's, the negatives etc.. The games we are looking at are quite simplistic and for use in Neurofeedback but are wishing to see the suitability for DirectPython to the task. Ie. We don't wish to spend copious amounts of times developing games, they are simplistic in nature and just require giving a simple feedback to a patient. We are doing a quick ramp up on what we need to develop some simple games so if people could list anything from toolsets, environments, tutorials would be great. Eg. DirectPython VMWare Blender Etc. Komodo Anyone used DirectPython with IronPython for instance? I know this email is vague but I am currently googling and following threads collating information. Regards Gavin |
From: Keith A <sha...@ho...> - 2007-07-25 20:52:27
|
sha...@ho... _________________________________________________________________ PC Magazine=92s 2007 editors=92 choice for best web mail=97award-winning Wi= ndows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=3Den-us&ocid=3DTXT_TAGHM_mig= ration_HMWL_mini_pcmag_0707= |
From: Sebastian L. <del...@gm...> - 2007-07-09 21:25:54
|
V293IQoKR3JlYXQhID0pCgpDaGVlcnMsCgpPbiA3LzkvMDcsIOWRqOaXiyA8ZWx2aXM4MjdAZ21h aWwuY29tPiB3cm90ZToKPgo+IGkndmUgZG9uZSB0aGlzLGkganVzdCBrZXB0IHRoZSBvbGQgaW50 ZXJmYWNlcyB1bm1vZGlmaWVkIGFuZCBhZGQgc2V2ZXJhbAo+IG5ldyBvbmVzLgo+Cj4gdGhlcmUg aXMgYSBzYW1wbGUgc2NyaXB0IHdpdGggY29tcGlsZWQgZDNkLnB5ZCBpbiBhdHRhY2htZW50LiBJ ZiBpdCBkb2VzCj4gbWFrZSBhbnkgc2Vuc2UsaSdsbCBnbyBvbiB3b3JraW5nIG9uIGl0IGFuZCBz aGFyZSB0aGUgc291cmNlIHdpdGggYWxsIG9mIHUKPgo+ICAgIHJlZ2FyZHMKPgo+ICAgICBFbHZp cwo+Cj4gMjAwNy83LzksIFNlYmFzdGlhbiBMdWNhcyA8ZGVsc2lsdWNhc0BnbWFpbC5jb20+Ogo+ ID4KPiA+Cj4gPiBIaSwKPiA+Cj4gPiBJZiB5b3UgbWFrZSB0aGlzIGlzc3VlLCBwbGVhc2UsIGxl dCBtZSBrbm93IHdoZXJlIEkgY2FuIGRvd25sb2FkIGl0LiA9KQo+ID4KPiA+IENoZWVycywKPiA+ Cj4gPiBPbiA3LzgvMDcsIEhlaWtraSBTYWxvIDwgaG9zYWxvQGdtYWlsLmNvbT4gd3JvdG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IERCMiBleHBy ZXNzIGFuZCB0YWtlCj4gY29udHJvbCBvZiB5b3VyIFhNTC4gTm8gbGltaXRzLiBKdXN0IGRhdGEu IENsaWNrIHRvIGdldCBpdCBub3cuCj4gaHR0cDovL3NvdXJjZWZvcmdlLm5ldC9wb3dlcmJhci9k YjIvCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBk aXJlY3RweXRob24tZ2VuZXJhbCBtYWlsaW5nIGxpc3QKPiBkaXJlY3RweXRob24tZ2VuZXJhbEBs aXN0cy5zb3VyY2Vmb3JnZS5uZXQKPiBodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0 cy9saXN0aW5mby9kaXJlY3RweXRob24tZ2VuZXJhbAo+Cj4KCgotLSAK4paI4pWR4paM4pSC4paI 4pSC4pWR4paM4pWR4pSC4pSC4paI4pWR4paM4pSC4pWRClNlYmFzdGlhbiBKYXZpZXIgTHVjYXMK UHJvZ3JhbW1lciAmIEd1aXRhciBIZXJvCg== |
From: Heikki S. <ho...@gm...> - 2007-07-08 18:10:27
|
=20 _____ =20 From: dir...@li... [mailto:dir...@li...] On Behalf Of = ?? Sent: 5. hein=E4kuuta 2007 6:06 To: dir...@li... Subject: [DirectPython] How to render to texture Is there any binging in DirectPython for this? if not,how to do? = thanks~~~ =20 Elvis=20 There is no direct way to do this in DirectPython. You can render the = scene and then use d3d.getScreenshot() to get the results, but this is pretty slow. It is possible to use DirectX for comtypes for this, but you need = some Direct3D COM-programming experience. =20 -- Heikki Salo |