Small FMOD-Visualizer (little OpenGL + source)
Small FMOD-Visualizer (little OpenGL + source)
Hello all together,
I've coded some time ago a small visualizer for FMOD in C++ and I've thought about converting this little demo to PB, since it uses a little bit OpenGL and it just needs pure CPU-power (which is easily done by PB :-)
Click here for a screenshot ~159kb
Click here for download (with sources) ~176kb
I've also included the sourcecode (hopefully, I've commented it good enough for you :-), so you can have an idea of how I've done it. If some of you like, I could also convert my "dancing fire" from my C++ version. Have fun!
Bye,
Tomek
I've coded some time ago a small visualizer for FMOD in C++ and I've thought about converting this little demo to PB, since it uses a little bit OpenGL and it just needs pure CPU-power (which is easily done by PB :-)
Click here for a screenshot ~159kb
Click here for download (with sources) ~176kb
I've also included the sourcecode (hopefully, I've commented it good enough for you :-), so you can have an idea of how I've done it. If some of you like, I could also convert my "dancing fire" from my C++ version. Have fun!
Bye,
Tomek
Last edited by Tomcat on Fri Feb 03, 2006 9:59 am, edited 1 time in total.
Very good ! About the WindowEvent() handling, you have to process all the events at each frame or some event will lag (try resizing the window):
It can look like this:
Then the resize works as expected
.
It can look like this:
Code: Select all
Repeat
Select WindowEvent()
Case #PB_Event_Menu
[...]
Case 0
Break
EndSelect
ForEver

Hi guys,
thanks again for your positive feedback :-) I've made some small modifications on the source (little speed-ups) and enabled the window to accept files (just drag & drop your file into the window).
@Fred: I've tried like you said, but then it just quits. Well, as long as it lag just a little bit, I can bear it :-)
Bye,
Tomek
thanks again for your positive feedback :-) I've made some small modifications on the source (little speed-ups) and enabled the window to accept files (just drag & drop your file into the window).
@Fred: I've tried like you said, but then it just quits. Well, as long as it lag just a little bit, I can bear it :-)
Bye,
Tomek