[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] 3-D stuff



I'm really rusty in my 3d algorithms (it's taken me a while just to figure 
out how to determine normals :)

I've been playing with pygame/pyopengl (well, mostly pyopengl so far) and I'm 
running into problems remembering fairly basic formulas :(

I have a point which has a movement vector. I need to know if the point will 
be "behind" a plane (defined by three points) given a displacement by that 
vector. If it does cross the plane, I need to know what the reflection vector 
will be. Does anyone have any algorithms / python code / URL references that 
they could please throw my way?


   Richard

ps. I have a few things I could contribute to the pygame code repository. I 
don't use pygame _yet_, just pyopengl. Eventually I'll want to do more that 
just make pretty pictures though. The code I have does stuff like render a 
3-d repeating map, generate a spark trail type thing, ... Is that useful 
stuff for the repository?

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org