pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
3D Wave Interaction Simulator

3D Wave Interaction Simulator - 2.0.0

Ian Mallett (geometrian)

Tags:

Description

When waves are overlaid, they add and subtract to each other, a phenomenon called constructive and destructive interference. Except in certain cases, it is very hard to visualize what the resultant wave will look like. This program allows you to generate as many waves as you want, then see how they add to form the resultant. This is the 3D version of Wave Interaction Simulator, but the code is entirely different.

Changes

I've added a lot of new features! There's lighting, texture mapping, b/w and color heightmapping, normal maps, new viewing modes, etc. Look in Readme.txt for instructions and the full list of changes. The "screenshot" is actually a resized composite of four separate screenshots. For those who just want the simple code for whatever, I left version one still available for download.

Links

Home Page: http://geometrian.com/programming/index.php
Source: http://www.geometrian.com/data/programming/projects/3D%20Wave%20Interference/2.0.0/3D%20Wave%202.zip

Screenshot


click to view original size

Releases

3D Wave Interaction Simulator - 2.0.0 - Jan 23, 2008
3D Wave Interaction Simulator - 1.0.0 - Jan 21, 2008

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

July 12, 2008 12:17am - Ian Mallett - nickname: (geometrian)
technomancer, this may be caused by a bug relating to textures. I give the solution on my website: http://geometrian.com/PyOpenGLInfo.php
January 30, 2008 12:45am - Ian Mallett - nickname: (geometrian)
Gamedev.net Image of the Day!:
http://www.gamedev.net/community/forums/topic.asp?topic_id=480401
January 27, 2008 9:41pm - Ian Mallett - nickname: (geometrian)
Thanks for the + comments, guys!

technomancer, I really have no idea what's wrong. Sorry. Your computer is more than adequate (Actually, it's about the same as mine). You could try downloading it again. Also try the OpenGL mailing lists.

Do you think an OpenGL shell program would help people learn OpenGL--like nehe, but with commenting and clean code?
January 27, 2008 5:21am - Paul Davey - nickname: (technomancer)
its an Acer with an Intel Core 2 Duo running windows vista 32 bit
January 25, 2008 7:54pm - pymike - nickname: (pymike) - 5/5
This is really cool! I might use this to learn some PyOpenGL! By the way, how do ya get the textures to show?
January 25, 2008 2:29pm - Ian Mallett - nickname: (geometrian)
What kind of computer?
January 25, 2008 6:09am - Paul Davey - nickname: (technomancer)
i have python 2.5, pygame and AFIK pyopenGL.
notice it had an error inside an opengl function not a cant import opengl error
January 25, 2008 1:05am - Ian Mallett - nickname: (geometrian)
Do you have Python 2.5, Pygame, PyOpenGL?
January 24, 2008 1:16am - Paul Davey - nickname: (technomancer)
gives error:
File "C:\Downloads\3D Wave simulator\3D Wave.py", line 255, in <module>
if __name__ == '__main__': main()
File "C:\Downloads\3D Wave simulator\3D Wave.py", line 250, in main
Textures()
File "C:\Downloads\3D Wave simulator\3D Wave.py", line 199, in Textures
glBindTexture(GL_TEXTURE_2D, Textures[0])
ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type
January 23, 2008 10:56pm - Ian Mallett - nickname: (geometrian)
Thanks!
Version 2.0.0 released!
January 22, 2008 10:46pm - Taiuã Pires - nickname: (tay) - 5/5
great graphic effect
I intent to use it in my project in the future
January 21, 2008 9:42pm - Ian Mallett - nickname: (geometrian)
Version 1.0.0 released!
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 19, 2014

Apr 16, 2014


Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

Mar 11, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)