Simple wave effect.

Sage
Posts: 1,482
Joined: 2002.09
Post: #1
I was tinkering around with creating a diffusing function earlier today. It occurred to me that if I added a velocity state that it could make a wave effect. Lo and behold, it worked!

waves.c

Execute the following command to run it.
Code:
gcc waves.c -o waves -std=gnu99 -framework OpenGL -framework GLUT && ./waves

I simply run vertlet integration after the diffusing function. This can be easily extended to animate a 2D array.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Member
Posts: 715
Joined: 2003.04
Post: #2
I just spent a half hour hacking with it, its still working but now I get this error

Code:
waves[1096] *** -[NSBundle load]: Error loading code /Users/theuser/Library/InputManagers/
Smart Crash Reports/Smart Crash Reports.bundle/Contents/MacOS/Smart Crash Reports
for bundle /Users/theuser/Library/InputManagers/Smart Crash Reports/Smart Crash Reports.bundle,
error code 2 (link edit error code 0, error number 0 ())


If there were tutorials based on fun looking stuff like that, I might get past "hello world", I just might break out those C/C++ books buried around here somewhere.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
That looks like you've installed the nasty "Smart Crash Reports" input manager, nothing to do with Skorche's code...
Quote this message in a reply
Member
Posts: 715
Joined: 2003.04
Post: #4
Ah, wonder when that got thrown into the mix. Xcode install?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
No, Apple doesn't do or endorse such hackery. Some devious piece of third-party software, mostly likely.
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #6
I get this error when running it:
Quote:2007-04-17 15:03:59.989 waves[300] *** -[NSBundle load]: Error loading code /Users/jeddhaberstro/Library/InputManagers/Menu Extra Enabler/Menu Extra Enabler.bundle/Contents/MacOS/Menu Extra Enabler for bundle /Users/jeddhaberstro/Library/InputManagers/Menu Extra Enabler/Menu Extra Enabler.bundle, error code 2 (link edit error code 0, error number 0 ())
But I get that everytime I run and compile something, and it doesn't seem to affect anything (Skorche's demo seems to run fine Smile)
Quote this message in a reply
Moderator
Posts: 770
Joined: 2003.04
Post: #7
Hey guys, stop bashing my beloved InputMangers! Wink

There are already rumors that Apple won't allow them in Leopard because of "issues" like those mentioned in these posts.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Temple Run Magnet Effect anmetv 2 891 Dec 1, 2013 05:24 PM
Last Post: JustinFic
  Using blending for a text fading effect. cjcaufield 2 4,111 Jun 30, 2010 08:21 PM
Last Post: cjcaufield
  Halo-Effect in 3D OpenGL ES Bersaelor 4 5,456 Dec 17, 2009 11:54 AM
Last Post: Mark Levin
  How to do a Quick, Dirty bloom effect FAST! Oddity007 12 7,527 May 9, 2009 09:42 AM
Last Post: aardvarc
  malloc particle effect (glDrawArray) Graphic Ace 1 2,979 Mar 15, 2009 03:13 PM
Last Post: maximile