Re: [SPAM: 3.000] Re: [pygame] get_wm_info on linux

2008-03-06 Thread Greg Ewing
Patrick Mullen wrote: Well, I managed to get it to work by hacking pygame src/display.c :) It is actually a string it is looking for, and I'm not totally sure how the conversion works Looks like it's treating the memory address as an integer and turning it into a decimal string. It seems like

Re: [pygame] CD Burning Of Games?

2008-03-06 Thread Ian Mallett
Well, that wouldn't have to be done by PyGame or Python. It sounded like that's what you wanted... OK, to back up files to a cd, you must first make sure that your cd drive*can *burn cds--some can only read. If you can write, you can just open the window: My Computer -> Removeable Drive D (or wh

Re: [pygame] get_wm_info on linux

2008-03-06 Thread Patrick Mullen
Well, I managed to get it to work by hacking pygame src/display.c :) It is actually a string it is looking for, and I'm not totally sure how the conversion works (not totally clear on what a void * really is etc), but here is my addition to display.c that made the value usable: get_wm_info (PyObje

Re: [pygame] CD Burning Of Games?

2008-03-06 Thread FT
Thanks, I want to make copies that are not on a hard drive to have a backup storage. Give it to some friends getting into programming, and family... Bruce This does audio in pygame programs: http://www.pygame.org/docs/ref/cdrom.html If you just want to distribute, can just burn prog

[pygame] Pixel Ships: Rotation

2008-03-06 Thread Kris Schnee
Here's a bit of code that turns one animation frame into a strip containing rotated versions of that frame. It uses the "pixel ships" code I posted recently and demonstrates a ship rotating. (Hit Escape to quit.) Rotations of 10 or 22.5 degrees seem to give smooth-looking rotation. A friend is

Re: [pygame] get_wm_info on linux

2008-03-06 Thread Greg Ewing
Patrick Mullen wrote: Values: positive integer for W32 (HWND handle) poslong:posint:poslong (display*:screen:windowHandle) or poslong:posint:poslong:poslong (display*:screen:windowHandle:XVisualInfo*) for GLX Default: 0 (None) I don't think these are strings, I think they're meant to be some ki

Re: [pygame] get_wm_info on linux

2008-03-06 Thread Patrick Mullen
Well here's the documentation for ogre: "RenderWindow * createRenderWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) ... miscParams A NameValuePairList describing the other parameters for the new rendering wi

Re: [pygame] CD Burning Of Games?

2008-03-06 Thread Ian Mallett
This does audio in pygame programs:http://www.pygame.org/docs/ref/cdrom.html If you just want to distribute, can just burn programs onto a cd. I assume you mean having your program make cds, though?

[pygame] CD Burning Of Games?

2008-03-06 Thread FT
Was there ever a project to write CD/DVD Burning programs to save games? Bruce

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Greg Ewing
Julia wrote: Hi everyone! I am currently working on a raycasting engine using pygame for graphics. I need to be able to load textures, scale then to fit and then draw the scaled image. It sounds like you really ought to be using OpenGL for this. There are no functions built into PyGame that

Re: [pygame] Google summer of code, and pygame. Where Google pays students to work on pygame.

2008-03-06 Thread Luke Paireepinart
René Dudfield wrote: Hello, We've almost got pygame 1.8 released! ya! Once that's done, we'll have to figure out what we want to do for the next release... but on another note, there's this google summer of code thing coming up GSoC( http://code.google.com/soc/2008/ ). It's where google pays

Re: [pygame] Creating unique userevent ids?

2008-03-06 Thread Gary Bishop
Hi Rene, You can find the rapidly changing current version of the code in CVS at http://uncpythontools.cvs.sourceforge.net/uncpythontools/CV/ under pygame_cam.py. You'll need CVtypes of course. It appears to work for me on Ubuntu, Windows, and Mac OS X. I've just hacked together an object fo

Re: [pygame] your game in the messenger

2008-03-06 Thread Luke Paireepinart
Michael Schmidt wrote: We'd love to include some games as a networked game in http://retroshare.sf.net Instant Messenger V.04 Actually some python games are one of my favourite games.. so I adress to our list. [snip] So the proposal for integrating is: (1) Retroshare provides all the networkin

Re: [pygame] get_wm_info on linux

2008-03-06 Thread Greg Ewing
Patrick Mullen wrote: ogre is expecting a string like this: "display *:screenid,windowid", and I'm not sure how you would put a display * as a string. What *exactly* does the piece of documentation you're looking at say? That doesn't seem to make any sense. -- Greg

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread kschnee
On Thu, 6 Mar 2008 18:42:25 +0100, Julia <[EMAIL PROTECTED]> wrote: > My problem is I'm not really sure where to start if I'm going to do this > with images in pygame. So far I've only needed to used pygame.draw.line() > so > right now I'm rather lost. This probably isn't the fastest way, but you

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread kschnee
On Thu, 6 Mar 2008 09:59:10 -0800, "Ian Mallett" <[EMAIL PROTECTED]> wrote: > If you're just looking for something 3D, use OpenGL. OpenGL is > faster, and has easy support for textures. It is also pretty simple > to use. And if you're trying to fly into space, use a space shuttle -- it's pretty

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Dave LeCompte (really)
"Ian Mallett" <[EMAIL PROTECTED]> wrote: > Ray-tracing or ray-casting is really only useful if you want to make > complex effect like shadows and multiple reflections Don't confuse ray tracing with ray casting. Doom and Wolfenstein 3d made good use of ray casting without any reflections. I certai

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Julia
Kschnee: I've also been using Lode and I also had a fisheye problem. But I solved it with an extra pair of (). Try it out. If I can solve it – so can you. Trust me about that one ;) On Thu, Mar 6, 2008 at 6:26 PM, kschnee <[EMAIL PROTECTED]> wrote: > http://www.permadi.com/tutorial/raycast/ > htt

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Ian Mallett
Ray-tracing or ray-casting is really only useful if you want to make complex effect like shadows and multiple reflections, like http://www.openrt.de/Gallery/2002_DynamicRayTracing/Images/teas_kitchen1.jpg. If you're just looking for something 3D, use OpenGL. OpenGL is faster, and has easy support

[pygame] pystreamer in pygame? NEW USER

2008-03-06 Thread Darren Enns
Hello folks -- newbie here. Just joined the list. :) I wrote my first 'PyGame' application and released it a few days ago (mostly of interest just to the Nokia internet tablet community, due to the 'side-ways' orientation of the display): http://www.internettablettalk.com/forums/showthread.p

[pygame] Google summer of code, and pygame. Where Google pays students to work on pygame.

2008-03-06 Thread René Dudfield
Hello, We've almost got pygame 1.8 released! ya! Once that's done, we'll have to figure out what we want to do for the next release... but on another note, there's this google summer of code thing coming up GSoC( http://code.google.com/soc/2008/ ). It's where google pays students $4500 to work

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Julia
Thank you for your answers and I'm sorry for the lack of clarity. I've been working on the project so long I didn't think about the fact that the whole thing wasn't as clear to you as it was to me. What I am working on is basically a Wolfenstein 3d type of game. So my raycasting engine is more of

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Christian Reichlin
hi, if you are working on a classic raycasting engine like wolfenstein3d or similar games used where you only have vertical walls there is a short tutorial on http://www.permadi.com/tutorial/raycast/ or one at http://student.kuleuven.be/~m0216922/CG/raycasting.html they are both not in python

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread kschnee
http://www.permadi.com/tutorial/raycast/ http://student.kuleuven.be/~m0216922/CG/raycasting.html Here are two tutorials on the subject. I tried making one of these (no textures), but never did fix the fisheye distortion problem. My version was also impractically slow. It looks like it's helpful to

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Jason Ward
Hi You weren't being too specific. so basically it sounds like you are writing a software renderer. If it's a 3D one which I assum it is, then I have heard of a good tutorial. this site has great help for those who are doing software renderers, just ask at the forums http://www.devmaster.net also t

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread kschnee
On Thu, 6 Mar 2008 16:51:22 +0100, Julia <[EMAIL PROTECTED]> wrote: > Hi everyone! > > I am currently working on a raycasting engine using pygame for graphics. > The > engine works great and now I'm thinking about adding support for textures. > The problem is that I'm not really sure to with modu

[pygame] your game in the messenger

2008-03-06 Thread Michael Schmidt
Hello We'd love to include some games as a networked game in http://retroshare.sf.net Instant Messenger V.04 Actually some python games are one of my favourite games.. so I adress to our list. some games will be the first games we actually integrate, so the interface is still a little bit up in t

Re: [pygame] Texture for raycasting engine

2008-03-06 Thread Ian Mallett
Cool! I've been trying to do something like that...You can make each pixel in an image a rectangle in 3D space, but this is, I imagine, slow. Pygame really should have a function which scales an image to a four-sided polygon. Sorry I can't help more. Ian

[pygame] Texture for raycasting engine

2008-03-06 Thread Julia
Hi everyone! I am currently working on a raycasting engine using pygame for graphics. The engine works great and now I'm thinking about adding support for textures. The problem is that I'm not really sure to with modules and methods to use. I need to be able to load textures, scale then to fit an

[pygame] PyDay Starts Tomorrow Night!

2008-03-06 Thread PyMike
The PyDay competition will start tomorrow (Friday) at 7:30 PM GMT-6:00. If you haven't joined up or voted for the theme go to http://googlegroups.com/group/pyday Good luck everyone! -- - PyMike

Re: [pygame] Pixel Spaceships

2008-03-06 Thread Nick Moffitt
Kris Schnee: > Fun little exercise. Here's my version of the ship generator, > attached. Screenshot: > I didn't > get the cockpit designs "right" in the way Bollinger did, but tried > superimposing a smaller ship design atop a larger one

Re: [pygame] get_wm_info on linux

2008-03-06 Thread Patrick Mullen
On Wed, Mar 5, 2008 at 9:47 PM, René Dudfield <[EMAIL PROTECTED]> wrote: > Is window as an int in there? > > Have a look at src/display.c There you'll see the X11 properties put in > there. > > Is this what you're after? >info = pygame.display.get_wm_info() >windowid = info.get("window"

Re: [pygame] Pixel Spaceships

2008-03-06 Thread Greg Ewing
Kris Schnee wrote: I tried rotating a ship to build a list of rotated images, but the rotated versions are often larger than the original, making it hard to figure out where to place them. How can that problem be addressed? Use the centre of the image as the point of reference for positioning