Author Topic: New fields and methods  (Read 30605 times)

0 Members and 1 Guest are viewing this topic.

Agent C

  • Guest
New fields and methods
« on: April 17, 2009, 03:09:20 pm »
So I finally got around to adding some much needed methods to my segment and frame class

Segments and frames now have some new methods: rotate, translate, and scale, and a new anchor point vector field to denote the center of scale and rotation.  The anchor point defaults to the first point in the frame, and may be moved with the methods setAnchor and centerAnchor which moves it to the center of the segment or frame based on a simple bounding box.

These methods do affect the actual data points in the frame.

My simple test animation is a hexagon composed of 6 seperate segments.  Each segment its own centerpoint.  Even this simple animation produced a very cool beam effect.

I'm toying with the idea of creating a transformation queue field for frames and segments and non side-effecting transform methods so that the original points can be left as is and before rendering to screen and dac engine all transforms from the stack are played back in the appropriate order... still thinking about that one...

Anyway, boids will soon move on from simple dots to some sort of bird representation that orients itself correctly to the heading - can't have boids flying backwards.

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: New fields and methods
« Reply #1 on: April 17, 2009, 03:30:51 pm »
Q: is this open source?

Agent C

  • Guest
Re: New fields and methods
« Reply #2 on: April 18, 2009, 01:00:07 pm »
I haven't shared the source with anybody yet so I guess it's not open source.  I plan on sharing the source for the engine when it's cleaned up to the point that it's embarrassing.  If anybody wants to look at the source I'd be happy to send them the code.

The closed source part will be/can be the generative artwork classes that I and other people may write for fun and for profit.  I haven't tried it yet, but I think I should be able to compile the patterns into jar files, then load those at run time or while the program is running.

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: New fields and methods
« Reply #3 on: April 18, 2009, 06:00:58 pm »
good answer :)

Agent C

  • Guest
Re: New fields and methods
« Reply #4 on: April 26, 2009, 12:23:44 am »
I've got a cool little wav I want to turn into ild with laserboy like we did with the boids.  It's 6 segments, 2 points each, arranged in a hexagon with segments rotating about their center.  I'm guessing the following for laserboy settings

30 frames per second
output wave sample rate 30000
unframed wave samples per frame - I have no idea on this.  Is it 12, 6, 48?  what does this value really mean?

f wave signal if not z - uh....

Thanks!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New fields and methods
« Reply #5 on: April 26, 2009, 12:29:22 am »
If you can make a wave that creates a nice picture on your scope, LaserBoy can make an ilda frame set out of it!

Check this out!

I just did this in about 10 seconds in LaserBoy.

James.  :)
« Last Edit: April 26, 2009, 12:54:05 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Agent C

  • Guest
Re: New fields and methods
« Reply #6 on: April 26, 2009, 12:57:01 am »
Let me rephrase this as a problem I'm having.  When I import my file, I get a horizontal line.  When I play it back to my scope, it looks fine.  I think I'm missing something in the settings.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New fields and methods
« Reply #7 on: April 26, 2009, 01:37:41 am »
We still have some sort of difference between our wave headers.

If you open the wave in something else... like Audacity, you can split it apart into a stereo XY wave and a set of mono waves for r, g, & b. Then you can put these waves back together in LaserBoy as an ADAT import. For some reason, this seems to work.

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

Agent C

  • Guest
Re: New fields and methods
« Reply #8 on: April 26, 2009, 01:49:58 am »
Ah missed that part in the boids thread.  I'm about to call it an evening but maybe tomorrow we can cover some ground on proper headers and the extended laserboy headers.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New fields and methods
« Reply #9 on: April 26, 2009, 12:45:49 pm »
Let's have another phone call.

You know, I always get a brain full of things to think about after a conversation with you!

I'd like to do a complete write-up on the LaserBoy wave header extensions, but I keep thinking I'm going to add more stuff....

The code is still not done from the major rewrite.

Today is the one year anniversary of the release of LaserBoy Multiplatform (Linux, Windows, Mac via SDL).

Lincoln is the capital of Nebraska.

James.  :)
« Last Edit: April 26, 2009, 11:37:35 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

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