Simple wave effect.
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.
I simply run vertlet integration after the diffusing function. This can be easily extended to animate a 2D array.
waves.c
Execute the following command to run it.
Code:
gcc waves.c -o waves -std=gnu99 -framework OpenGL -framework GLUT && ./wavesI 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.
I just spent a half hour hacking with it, its still working but now I get this error
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.
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.
That looks like you've installed the nasty "Smart Crash Reports" input manager, nothing to do with Skorche's code...
No, Apple doesn't do or endorse such hackery. Some devious piece of third-party software, mostly likely.
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
)
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Using blending for a text fading effect. | cjcaufield | 2 | 3,482 |
Jun 30, 2010 08:21 PM Last Post: cjcaufield |
|
| Halo-Effect in 3D OpenGL ES | Bersaelor | 4 | 4,713 |
Dec 17, 2009 11:54 AM Last Post: Mark Levin |
|
| How to do a Quick, Dirty bloom effect FAST! | Oddity007 | 12 | 6,923 |
May 9, 2009 09:42 AM Last Post: aardvarc |
|
| malloc particle effect (glDrawArray) | Graphic Ace | 1 | 2,680 |
Mar 15, 2009 03:13 PM Last Post: maximile |
|
| Turning Page Effect with OpenGl | ReSuMa | 3 | 4,663 |
May 12, 2007 05:57 AM Last Post: ReSuMa |
|


