unsubscribe
The way I speed up my python code is Ctypes.
I just make a dll file in C or asm and then call it with Ctypes and presto.
I have tons of speed at my fingertips.
Just my 2 cents :)
I like this project idea.Easy simple software 3d. Possibly tinyGL, and a few
extra parts, or just something like a textured polygon drawer. Basically...
model = load_model();model.render(screen, (0,0))
so are you asking us to integrate a 3D software renderer into pygame with an
easy to use API?
On Tue, Mar 11, 2008 at 4:01 PM, Ian Mallett [EMAIL PROTECTED] wrote:
I'm posting this here, in another thread because someone said it might
come up in searches better. Enjoy!
Ian
Why aren't you using matrices? they make the 3D pipeline much simpler.
Are you interested in making a 3D
The assembler code is in SVN. The code is in routines:
filter_shrink_X_MMX, filter_expand_X_MMX, filter_shrink_Y_MMX and
filter_expand_Y_MMX.
--
Lenard Lindstrom
[EMAIL PROTECTED]
I looked through it but I don't think I'm gonna be able to be much help.
what is this MMX discussion about and the transform function?
If this is to do with pygame source I may be interested. but not to solely
do it, just to give a rather small helping hand.
I know intel asm but I haven't really gotten into MMX so this would be a
great opportunity for me to get into
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
so how do you stop someone from drawing in an editor, converting it to a
string and then copy pasting the string pixel values into the code?
Why not just allow all that but it is eventually gonna cut into our precious
32000 byte limit, so it makes it fair to use editors?
coz currently I don't see
Sorry PyMike that was me. I was just trying to clear everything up just in
case I enter something and am disqualified. A whole month for the next
competition is a long wait when it's such an awesum idea for a comp.
lol, if it was 64KB we could imagine we were olden day real mode programmers
I just downloaded the latest version of pyopengl for windows and it won't
import.
I type
import OpenGL.GL #just like I used to
but it says that pkg_resources was not found.
I have no clue how to fix this
I tried that, this is only a problem on windows, my linux one does it fine.
I have the latest python 2.52 and the latest PyOpenGL.
I was just gonna use it to do a test between any two arbitrary quads to see
if they intersect. But the thing won't load :(
It will import OpenGL works, but if I try any other things such as GL or GLU
then it says that there is no module called pkg_resources.
It is searching for the file in the OpenGL directory. So it's not a problem
with python, its PyOpenGL.
I am using a proxy so I ez_setup.py can't connect.
Is there a way to make everything on windows connect through a proxy or is
that application specific?
YAY!
Thanks that worked :)
There is something called Mirra. it uses opengl for hardware rendering etc.
You can find it here http://www.pygame.org/project/117/
I tried it out a long time ago. it was pretty good IMHO. And not very hard
to use.
But pygame already handles 2D graphics and it is relatively fast. Depending
on
btw Mirra is a 2D library, forgot to mention that.
yes I see what you mean. I just tested it on my machine and I had the same
problem.
It should be invisible with an alpha of 0.
Try it with python 2.4 and the pygame version for that.
Mine worked with that setup.
I am now on 2.5 and it's not blending.
Maybe a bug?
you weren't changing the alpha value btw. the sequence for set_at is
R,G,B,A you had 255,0,0,0try 255,0,0,128
http://www.pygame.org/docs/ref/surface.html#Surface.set_at
This link is right on the pygame site. This reference list is brilliant and
explains how to use pygame very well.
ya I think blending is broken in pygame for python 2.5. Maybe just the
windows version. I'm not sure
a while ago someone said that the ball speeding up and slowing down
randomly was because it was based on the time elapsed every frame and that
time varies because if other tasks are being run then the cpu is executing
both threads so it doesn't spend all of its time in your game.
But then what
py2exe
can be found at pygame.org under downloads
Thanks for the options guys. I'll look into them when I find the time. But I
don't mind low-level stuff if that's what sockets library requires, just as
long as it can work. Surely there must be some good C/C++ library that I can
call with ctypes?
What about just calling the win32 api straight
I want to make my game playable over the network and if possible the
internet.
For the network it must support more than 2 computers and be realtime
Would the sockets library in python solve all my needs?
your break is outside of the loop.
if you run this:
break
you will get the same error because that's exactly what your doing,
there is no loop to break out of.
thanks. But I think you are misunderstanding. I'm talking about
palletised surfaces in pygame.
I have a small pyOpenGL problem. On my python pc I don't have
internet. I downloaded the pyopengl package on sourceforge but when I
try and install with the setup.py script is wants to connect to get
well that was just an extra. But the main question is on palleted
surfaces with pygame
well the idea is I will be updating this surface every frame so it won't be
drawn just once.
I'm just wondering if there is anything slow about it, like in opengl if
your drawing to the frontbuffer it's slower than drawing to the backbuffer.
Hi.
I want to render an array or a list.
Should I use surfarray or numeric.
Also should I draw to a surface and blit that or should I draw
straight to the display surface(screen)?
This stuff isn't related to pygame but it would be helpfull:
Will psyco speed up numarrays like it does with
Hi
Could someone please give me a small code sample of how to use
glDrawPixels in python.
I have so far:
import numarray
from OpenGL.GL import *
from OpenGL.GLU import *
arr = arange(1024*768)
glDrawPixels( 1024 , 768, GL_RGB, GL_FLOAT, arr )
setup code and stuff is irrelevant.
I just wanna
What is the best array module to use?
Numpy or Numeric?
For PyOpenGL I want to call
glDrawPixels, but what do I do for the pointer to the pixels? How do I do a
pointer in python?
Which is better to use.
glDrawPixels or Pixel buffers?
Hi it's Jason again.
What was that part about makin python scrips executable on linux again?
and that link with all the suse rpms?
Hi
I downloaded pygame source and I've been trying to install it on my suse
10.2 linux.
It says I need sdl-dev when I run setup.py from the console with the
command, python setup.py install
So I downloaded, the source of sdl and the src.rpm and the dev rpm and the
runtime.
But with any or all of
It says sdl-config not found.
But I installed sdl.src.rpm
and I have the source
Thanks guys.
The main question is still getting pygame installed.
If I go to the console and type sdl
it says unkown command.
But I have every single package available from the sdl site installed. EVERY
ONE OF THEM
but when I run setup.py it tells me I don't have sdl-dev installed, I made
sure
No. I couldn't find an rpm for suse on pygame.org
I just want pygame.
hahahaa
I can't believe it.
I didn't know. I thought I had to install from source if there was no rpm or
run file.
Thanks so much.
I've been installing almost everything from source!
But opensuse.org only has suse. No other packages?
Or is there another suse site for packages?
Oh wait, I found it
ok the command worked.
It installed sdl.src.rpm
But sdl-config still doesn't work.
On windows it's a good idea to restart once you've installed something, is
linux the same?
My suse computer doesn't have internet access, I am still trying to get it
to use this pc's , windows, internet through my
The massive repository is perfect. It has everything I need!
All problems solved.
wxPython too! although some of the files there are old. Like PyOpenGL.
That's another problem too.
But thanks so much guys for the time spent helping me.
Thanks a lot.
Hi.
I want to write program in assembler and put them into dlls.
Then I want to make python call those dlls for me. How does
python call up dlls?
Also, if I make a function return a value in the dll and then python
calls it up. Can I do it like this.
num=dll_function()
THe first question is
Hey, I have a problem.
I have been asked to write a game for some company.
I can write the game but the problem is that
I must make the game playable on the web page, Ie the user must
click on the game and run it while they are on the site. How do I
do this. Is there any HTML command that I must
Pygame is ideal for a scrolling game. Go with the other guys idea to start
simple.
But I am telling you that it is possible to do it.
for example
x=-100
y=-100
for j in range(20):
x=x+1
y=y+1
screen.blit(picture,(x,y))
This will move the image from outside of the screen to inside
Try making it fullscreen. If it still gives a distorted look then set the
screen size
to the desktop screen size, I find 1024*768 works best. Set the windows
resolution and
pygame resolution to that.
Have you noticed that if you take the pyopengl examples that use glut and
convert
them to
From: federico ramirez [EMAIL PROTECTED]
Reply-To: pygame-users@seul.org
To: pygame-users@seul.org
Subject: Re: [pygame] Rpg Game ?
Date: Fri, 10 Nov 2006 19:43:56 -0300
Well yes, i know i will have to make other games before, i will make it
when
i am very confortable with pygame. I have
44 matches
Mail list logo