Author Topic: Coolest LaserBoy EVER! (almost)  (Read 87315 times)

0 Members and 1 Guest are viewing this topic.

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #15 on: October 29, 2009, 06:58:20 am »
It would be cooler if instead of a progress meter you simply played the Jeopardy song.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #16 on: October 29, 2009, 11:50:12 am »
But then I would feel compelled to wager money before I applied any effects.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #17 on: October 29, 2009, 12:32:39 pm »
  Better yet, try the yodeling theme from the Mountain Climber game on The Price is Right.
If the program crashes and the climber falls off the edge, you get the buzzer complete with
Bob Barker saying 'Oh, I'm sorry!'
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #18 on: October 29, 2009, 07:01:29 pm »
OK..... Now THIS is the coolest LaserBoy ever!  %) ;D

http://akrobiz.com/laserboy/code/LaserBoy_2009_10_29.zip

Check it out!

The progress meter is written to the top of the bitmap so only the first 8 * font_size_factor lines need to be memcpy-ed and updated on the screen by SDL.

It seems like it's pretty fast.

I'm sure it costs quite a few CPU cycles, but an indication that the program is actually doing something is probably worth a tiny bit more calculation time.

Unfortunately, I have not yet come up with a progress meter for the functions in menu 'b' that effect wave files on the hard drive. These are done one sample at a time!

I'll think of something that will be reasonably fast.

I got rid of the "please wait........................................."

James.  :)
« Last Edit: October 29, 2009, 07:10:41 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #19 on: October 29, 2009, 09:23:26 pm »
  The real goal is to write code that's fast enough on a decent machine so that no progress
indication is needed.
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #20 on: October 29, 2009, 11:59:18 pm »
Who's "real goal" are you talking about? ???

James.  :)

LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #21 on: October 30, 2009, 12:22:22 pm »
  The real goal is to write code that's fast enough on a decent machine so that no progress
indication is needed.

Have you EVER tried to calculate that much data in a split second. sometimes im throwing effects over a few thousand frames.

thats alot of data..

no current system can do that in a under a minute.


The real goal is to write code thats STABLE and will continue to do its work no mater how much work you give it.. the progress meter just lets you know that its hasn't crashed yet

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #22 on: October 30, 2009, 02:24:07 pm »
There is something else I should probably add. If a single frame is calculated and grows to more than the number of vertices that can be counted with an unsigned 16-bit integer, (65,536) you lose data. Not that it really matters, because that's a freaking ridiculous amount of points in one frame, but the program should tell you when it happens anyway.

Actually, it's a bit worse than that.... You don't really lose the data. It's still taking up space in the memory. You just can see it on the screen or write it to the hard drive!

Oh well.

James.  :)
« Last Edit: October 30, 2009, 02:28:43 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #23 on: October 30, 2009, 06:44:49 pm »
Maybe if the size is exceeded create multiple files.  I moved away from the ILDA file for storing shows in Spaghetti.  That is one of the reasons.  I pretty much only include the size of the frame and the XYRGB data.  No header info, no intensity, no Z coordinate.  It just takes up space.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #24 on: October 30, 2009, 08:30:01 pm »
It's not a limitation of the total number of frames. It's a limitation of the total number of points in a single frame. I realize that the ILDA format (sort-of) implies that a file should not contain more than 65,536 frames, but that is not a hard limit like points-per-frame is. LaserBoy just kinda' plays along with the frame ID and total frames numbers in each ILDA section header. It does not rely on them in any way.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #25 on: October 30, 2009, 09:43:48 pm »
Ah, I see.  I didn't pay close enough attention to what you wrote.  Sorry.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #26 on: October 30, 2009, 10:49:47 pm »
i just created a frameset that contains 116115 frames.. no problem..

its a pretty crazy beamshow...

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #27 on: October 30, 2009, 11:28:27 pm »
Quote
I moved away from the ILDA file for storing shows in Spaghetti.  That is one of the reasons.  I pretty much only include the size of the frame and the XYRGB data.  No header info, no intensity, no Z coordinate.  It just takes up space.
  That's good, but Spg format is proprietary...
Quote
Have you EVER tried to calculate that much data in a split second. sometimes im throwing effects over a few thousand frames.


  OK, maybe not in a split second, but I have written audio DSP apps that can perform tens of billions of calculations in under a minute on a six year old PC using dreadfully obsolete VB6. I guess I expect a high end C++ app to kick some more butt...

  If you want to learn how to write fast code, try being stuck on a long road trip with only a 98 vintage laptop in your hotel room...


"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Coolest LaserBoy EVER! (almost)
« Reply #28 on: October 31, 2009, 12:55:53 am »
Why is it good that he moved away from the only known generic standard that bridges the gap between (supposedly) all laser apps?

James.  :)
« Last Edit: October 31, 2009, 01:37:42 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Coolest LaserBoy EVER! (almost)
« Reply #29 on: October 31, 2009, 08:17:41 am »
Why is it good that he moved away from the only known generic standard that bridges the gap between (supposedly) all laser apps?

James.  :)

There is no reason LaserBoy couldn't have it's own file format as well.  The important thing is that there is the ability to export to common formats.  The Spaghetti show format contains TTL and DMX cue information, multiple frame streams, offsets so that you can jump around in the show during playback with no delays, and is stripped down so you can share it with your friends and not waste 10MB on Z coordinates.  But, you can still export your project to ILDA files if you want.  If I was tied to using only ILDA files for shows there would be no good way to do the above.  I could create my own Format codes but there would be no point to it.

So, why is it good?  Because it lets you do a lot of cool things that you would not being able to do with the ILDA format alone. 

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal