Monday, June 21, 2010

The Ryndem Sound Engine




Wow, it's been a while now since I've updated my blog.  With so much going on, who has time to write?

With all the game stuff I've been doing lately in my free time, I've been finding an incredible lack of good Audio tools for Game Devs.  The only one I found that was worth a damn was  Fmod, which is amazingly powerful, but also very expensive to license for the Casual game peeps.

So, I decided to make my own Unity3d/Flash Sound Engine and it's called Ryndem.  I also took a little bit of a different approach.  While it's a sound mixing program like Fmod is, it also is a smart system that you can use to drive the gameplay itself.

It will also have a super simple Hierarchical State Machine incorporated into it, so you can map out the mix/gameplay elements.  This will be useful for Rhythm games, and just keeping everything in a beautiful sync.  I'm still working on the UI, but I have a few in game music mixes here:

www.soundcloud.com/Ryndem

And you can follow the project at:  www.twitter.com/Ryndem

Tuesday, September 29, 2009

Game Developers are Developers too. . .




Being with Influxis for a while now, and speaking at various conferences I've noticed something kinda strange. There's an elephant in the room that the developers are talking about (and I'm not talking about how the hell a bum became a developer).

There's a weird lack of Game Development sessions at Flash/Flex conferences. Unless you are going to a "Gaming" Conference, mum's the word on Flash Game Development (i.e. the awesome Flash Gaming Summit I went to in San Fran). And I don't understand why this is.

Is it because the Flash Rockstars aren't making games? Well, I know Grden and Zupko are basically in the Unity3d camp. But Keith Peters has made some awesome flash and iPhone games.

I think there should be more talks about game development at the major conferences. It's a MAJOR part of the Flash Community. I think it would also help bring the level of development up across the board. Games are hard to make. They usually require lots of Maths, Physics, and Artificial Intelligence implementation. Not to mention a healthy helping of Design Pattern knowledge. I also think that if you put a lot of the harder programming/architecture concepts into game terminology, things become a little less scary, and easier to visualize.

Then maybe, just maybe. . . non-gamers will see the art behind game design. Also, maybe we could figure out a way to make some money off of Flash Game Development. That would be pretty cool I think.

Thursday, September 24, 2009

Part one in my AI for Flash Devs: How to make your own SkyNet in AS3!

I have an unhealthy obsession with Artificial Intelligence. I've always wanted to make a trainable system that learns on it's own. Sounds like fun right?

Don't be scared. It's actually not that difficult to do.

For part one of my intro to Artificial Intelligence for Flash Devs series I could have gone over Finite State Machines, Chasing and Evading, Pattern Movement, or Flocking. Yep, I really could have, but those have been done to death. Let's do something interesting. Let's make a Perceptron.

Think of a Perceptron as a smart Boolean. Due to the various stimulus it receives and it's training it will choose one of 2 choices. This is called a Linear Classifier because the problems it can solve have to be linearly separable (yes or no, red or blue, buy or don't buy).

So, here's an example with everything shown: Seantron's Perceptron.

Let me explain what's going on here.



This is your Network. Blue is input X and Red is input Y and those are connected directly to your output O (the white circle). So each connection has a weight value, and by adjusting the weights we are able to train the Network to do stuff on it's own.



This is the graphical representation of your Training Data. Huh? Well, let's say you have figured out a system for buying stocks. Your blue points could be stocks that meet the criteria that you want to follow to Buy The Crap Out of those Stocks! And guess what the red points would be? You guessed it, Those Stocks Suck Ass, Don't BUY!

So you training data sets the weights (which are those crazy numbers in the Network pic) which allows for the Network to buy or not to buy on it's own. Yes, in this example we are training the system by hand, but I will teach you how to use something called Back Propagation to set up a system to train your Network for you.

*As per makc3d's directions* end edit:

Here are some links to help you with what is going on with the science stuff:

http://en.wikipedia.org/wiki/Perceptron
http://www.youtube.com/watch?v=eDYOH9q2QdA

Gradient Descent is what is used to calibrate the Weights.

http://en.wikipedia.org/wiki/Gradient_descent



Here's the AS3 for the Perceptron example:

DOWNLOAD THE .AS HERE



*Updated the Code and posted it at the link above.  It's been awhile and it seems this blog got weird, sorry about that.*

Tuesday, September 22, 2009

Resistance Is Futile *edit*

Guess what? I don't come from a computer science background. Hell, up until 2 years ago, I thought I was going to be a Music/Motion Graphics dude. Yep, I was an artiste (an uber dork, but an artist none the less).

And one would have to be riding the short bus not to notice that most of the Flash Devs come from a similar background (notice I say Flash and not Flex, ahem). This blog post is directed at you guys, my fellow flash devs/UX dorks. You programming autodidacts (look it up mofo!) in the audience. So, if you come from a compSci background, go back to reading your white papers or writing your book on functional programming for AS3. You probably know all of this stuff.

Please understand the intention of this blog post: I'm just sharing things that weren't taught to me right off the bat. I was starting to feel a little behind the curve, and was wondering if I needed to go back to school or something. F that. Who needs school when you have blog posts and wiki/tutorials to read?

Check it yo. This is my list of things to learn by the end of the year, wanna follow me on the journey? It might be fun, nah, it'll probably suck, but you might be able to make some more money. Got your attention? Coolio. Let's get smert!

Intermediate level:

1. ANT. Learn it, love it, build it. (thanks FlashBum)
install ANT Flex Builder 3
do something with ANT

2. Command line blues. Afraid of the command line? Don't be! It's a powerful tool in the jedi's arsenal.

3. SVN, GitHub whatevs. Use one. Organizational skills are needed. If you are like me with everything on your desktop, learn organization. A clean mind is a razorsharp mind with teeth that can destroy major problems.

*3.14159 Learn Design Patterns. Here's a book to get you started: AS3. Like really really learn what MVC is. Because there is a difference between knowing MVC and KNOWING MVC. You'll know when you know it, because then a bright light from the heavens shines down upon you, and your eyes start to glow green. Seriously, look at my Twitter avatar.

4. Learn a real language. AS3 is rad, and it's my first language so I'll always have a special place for it in my cold dark heart, but it's very limited. If byteArrays throw you for a loop (ha, programmer joke! sigh, I know) learning C++ might help you with that. I don't know if I can recommend C++ to everyone, but try it, you might like it. There is a lot of power behind that language. Especially in this bad economy, multilingual == security.

*4.5 Learn Data Structures mofo! And algorithms if you dare.

Advanced level:

5. Study what's been open sourced by Adobe, like the Flex Compiler (java) and Tamarin (c++) the Actionscript Virtual Machine 2, or aka what makes AS3 run. By knowing what actually is going on under the hood will ultimately make you a much better programmer and/or bitter/insane. Then you'll start to understand what Joa Ebert has been talking about for the last year or so.

6. Embrace change, don't resist everything. I'm saying this as much for myself as for everyone else. Also try to think optimistically. Ha!

Jedi/Sith level:

7. Learn a Functional Programming language. I've been studying Erlang and F# a bit, which has allowed me to figure out the idea behind the XMPP protocol. I've also been told that Clojure is pretty awesometastic. This is the added bonus level though. Functional Programming is not easy at all, it's based on Lambda Calculus and it looks like it too. I've also heard that once you successfully complete a project in Erlang that not only do you get a free membership into Mensa, but you also learn the secret to space time and who shot JFK.

it's time to start the journey in 3, 2, 1. . .

Tuesday, August 11, 2009

Twitter and somehow I'm cool.

Ding dang! I am very honored to have made Sean Moore's (not me, I swear) list of 50+ Important Flash Platform Developers! It's amazing to be included with some amazingly talented people on there (except Jesse Freeman, that guy is a bum!).

Link to awesome list of flash peeps.

And, if you want to follow my nonsense on twitter, please do!

Link to my Twitter page.

I'd like to thank the academy, my baby mama, and SeanTheFlexGuy.

Tuesday, August 04, 2009

Experiments in Microsites

Ok, let's get one thing clear: there is no way to "create a viral experience". BUT, I'm going to try to anyway.

I'm an idea guy, I can't help it. So, I've set out to complete at least 2 sites a week! Well, microsites.

And here's my first one:

http://www.theloudsigh.com

More to come. . .

Friday, May 15, 2009

Massiva3d is released!

After a long 6 months of coding, researching, learning 3d, optimizing, modeling, and bashing my head against the wall Massiva3d is finally out. Well, it's in Beta at least. I hopefully will be able to share some of the things I've learned from this project with you guys.

But for now, I'm taking a vacay.

http://influxis.com/applications/massiva/

http://labs.influxis.com/?p=123
http://labs.influxis.com/?p=130

By the way, I'm rewriting my FMS Presentation from FITC Amsterdam, and my new version of Rethinking FMS will be covering a lot of what went into Massiva3d. So, I hope to see you guys at Flash On Tap.

And I'm still trying to figure out if I'm going to be able to speak at Flashcamp in Sophia, Bulgaria (how rad is that? What an honor).

Tuesday, March 31, 2009

April Fools Is Gay

My Twitter Rules for April Fools:

1. If you tweet something that is in the "spirit" of April Fools, you will immediately be removed from my twitter timeline.

2. If you RT something that is in the "spirit" of April Fools, you will immediately be removed from my twitter timeline.

3. If you try to deceive me with a tinyurl in the "spirit" of April Fools, you will immediately be removed from my twitter timeline.

4. If you post anything about Flash finally coming to the iPhone, you will immediately be removed from my twitter timeline.

5. ONLY if you post something that actually makes me laugh, and/or looks like it took time/effort/large sums of cash/celebrity intervention/acts of god to complete will you make it to a deliberation stage. At that point I will review your tweet for the above mentioned criteria, and you will be graded on a 10 point scale. If you receive a grade of less then 6 you will immediately be removed from my twitter timeline.

You've been warned. Thanks.

Monday, March 02, 2009

FITC Amsterdam

I think my talk was a success. I had a couple of dudes that said that they really enjoyed the talk, and they actually learned something (that's a completely unexpected outcome)!

Thanks to Shawn Pucknell and the FITC crew.

Now on to Flash On Tap. . .

Tuesday, February 03, 2009

MegaMarioLandBrothersAS3

Ok, ok, that last post was pretty bitter. Well you work on an impossible project for 5 months and tell me how you do. Regain composure, breathe in, and repeat the following: and so it goes, amen.

I've decided to dive into a couple of side projects to get my Flash groove back, and guess what? It worked.

Flash is good for a lot of things, 3d is just not one of them. Unless, you are cool with a pathetic 4000 polys for your ENTIRE scene! I mean come on!

And so it goes, amen.

Let's focus on the positives. I'm going back to 2d, and I'm developing a Flash Framework called MegaMarioLandBrothersAS3. If you have any brain at all you can figure out that it is a framework for old skool platformer games.

What will it include? Funny you should ask, because I've got some bullets for ya.

  • 2d physics built in (gravity, colliders/collision detection, springing)
  • Finite State Machines for A.I. (working on A* Pathfinding as well)
  • Easy Art Implementation
  • Super fast level creation
It's just a little pet project that I've been playing with. Should be releasing code within a couple of weeks.

Ding.

Thursday, January 15, 2009

Flashhhhhhhhhhhhhhh

I've been noticing that a lot of the main flash dudes are talking about things that are very un-flash lately. Such as: Unity3d (which I'm a super fanboy of already), Cocoa/ObjC/iPhone Development (I'm wondering if that market isn't already oversaturated), Facebook Development (really now?), Silverlight (it's actually really powerful, and once they unleash it's 3d power. . . flash had best watch it's back), and just generally telling all the Flash/Flex Developers to learn some new languages.

Was there a memo I missed? If you were to follow all of the flasherati's blogs and forecast where all of this is leading, you would start to wonder about Flash's future. Pixel Bender was touted as the Flash savior, but it's still too young yet (and not to mention how Flash seems to break Pixel Bender's knees somehow only allowing it to gimp along). Flash's 3d support is sad. Although the amazing teams working on Away and Papervision have pushed Flash into new territory, it's still kinda sad the poly count that flash can deal with (especially comparing to Unity3d's output).

Long story short. . . Flash is going to remain king of RIA for a while, but I think the lack of Flash support on the iPhone has really hurt it. The flash bubble has been popped. Now what?

Wednesday, December 31, 2008

My 2009 Resolutions

1. Be a good dad.

2. Be a good husband.

3. Learn Unity3d and Complete a game within 4 months.

4. Be a good pack leader.

5. Add some positive energy to the universe at least once a day.

6. Learn Chinese.

7. Create www.webiquette.org and www.thishurtsme.com

Friday, December 19, 2008

My week with Adobe Stratus

So, last week, Adobe Labs released Stratus, and ever since then it has been a mission/obsession of mine.

Here's my findings.

Tuesday, October 21, 2008

New blog post about Flash Lite 3 and FMS

I had fun doing research for this one.

My blog post for Influxis Labs.

"Things just need to work these days, why can't they make things just work?"

- Britt Mileshosky

Wednesday, October 15, 2008

Papervision Optimization Techniques (aka taming the Beast)

I've been working with Papervision very intensively for the last 5 months or so, and I've learned quite a bit about what is under the hood.

Also, I've been using it mainly in Flash (due to me designing everything in Flash as well, as developing). So, that being said, I primarily use MovieMaterials for all of my Primitives. With using MovieMaterials that opens up a whole other can of worms. CPU issues

Here's some ideas to get you going:

  1. Set animated to false as much as possible. If you need it to animate occasionally, use some checks to turn the value on and off. Because when the material is set to animated = true, that material is being redrawn every frame.
  2. Toggle the smooth and precise values on only when needed as well. This is especially true with smooth, because that is a major CPU killer.
  3. When using objects that extend off of the screen make sure that you divide the segments appropriately. If you just instantiate something like: var ground:Plane = new Plane(groundMaterial) it's using it's default values (segmentsW:1, and segmentsH:1). That will cause the ground to be clipped by the Frustrum (basically it will disappear out of view when it should still be in view), because there aren't enough segments to subdivide. Usually (I say that loosely), a setting of segmentsW:5 and segmentsH:5 will do (unless you are dealing with something huge. . . then you would have to go higher).
  4. Use flash 10, and turn on the Hardware Acceleration (direct not GPU, because GPU has toasted some of my test computers video drivers), which will not help with the rendering of the triangles, but it'll at least help with redrawing the screen. I've seen it decrease CPU load by over 30% in some cases, with smoother performance.
Oh, and lastly, do a reality check. Not everything has to be in 3d, try mixing 2d and 3d elements wherever you can.

Saturday, October 11, 2008

Generative Musings

I've finally jumped into this realm, and have already been having a lot of fun with it. I was really impressed with Bit-101's Art From Code site, so I've finally started playing with some Math.randomness.

Even though I'm late to the tea party, I might as well take a sip.

Here's my first piece I'm working on:

Missile Command Cityscape

Basically what I am doing is generating random circles, with random colors, and scaling them with a you guessed it. . . a Math.random(). But then I also graph the scaling and the circle's x and y values and that gives me the cool line work on the left. What gave me the idea to do that is I've been really into visual complexity lately. And I've been trying to figure out how to create more visuals by graphing out data that my code is already creating. It kind of goes along with the ideas I used to have to make music that sounded like Autechre. Take a sample of your own song, and then play it at various octave intervals all at the same time.

Yeah, it's no Eric Natzke, Jared Tarbell, or even Keith Peters, but it's fun none the less.

I'm also thinking of working on generative site layouts, and generative art using Papervision or Away3d. Is there room for another Sound Visualizer?

Friday, October 10, 2008

Old blog, new nonsense

So, here's the new format, and I'll be talking about the following on my blog:

Flash/Flex
Actionscript
Flash 3d
general awesomeness
my experiments
neat-o stuff

First, I'm going to show the last thing I've completed for the awesome company I work for:

Paradigm Player

Oh, and I write for this blog too:

Make Me Pulse