I had quite a nice thought experiment and thought I'd document it for you guys to have a look at. I wanted to come up with a quick way to (semi) realistically simulate lift and drag on any shape. Such an engine could be used for flash games for example a hang glider game. Realism like this (if carefully implemented) can add a lot to a game.
I plan on implementing this in flash sometime after my exams are over, but some of you might be interested in my approach, so feel free to beat me to coding it!
Here is what I've got so far, you can click on a page to expand it in a lightbox (or click here to download the pdf):
Monday, 25 April 2011
Fun with Inverse Kinematics
In part to try out AXDT, a flash plugin for Eclipse (which you can find here), I decided to create a simple experiment involving Inverse Kinematics. This is not a very useful implementation but the results are quite fun. Essentially, the angles of subsections of each kinematic chain are altered until they face the mouse. I quickly discovered this is not the best solution for IK, but just for fun I made a kind of windswept, fur or grass effect using about 200 IK chains.
As usual click the top screenshot to launch the experiment and click here for source:
Labels:
AS3,
Source Code
Wednesday, 20 April 2011
New Source Code Page
Hey guys,
Due to many requests being for source code I have added a source section to the blog. When my exams are over I'll work through adding source code to older projects but for now I've included a few from some new stuff I've been working on. Just click the tab at the top from anywhere to access it.
Happy flashing!
Sam
Due to many requests being for source code I have added a source section to the blog. When my exams are over I'll work through adding source code to older projects but for now I've included a few from some new stuff I've been working on. Just click the tab at the top from anywhere to access it.
Happy flashing!
Sam
Tuesday, 19 April 2011
Update: Colourful Turtle
In my last experiment I recreated a turtle vector drawing program, with a simple interface. I'll post a small update to that which adds some color to the output. Here are some screenshots, as usual click the first one to launch the image, and source code can be found at the bottom, enjoy and let me know if you make anything pretty!
Source:
Source:
Labels:
AS3,
Emergence,
procedural generation,
Source Code
Monday, 18 April 2011
Turtle: 30 minute experiment
I had recently been reminiscing about IT lessons in year 3 where we were allowed to play around with those Turtle vector drawing programs. I thought I'd write one and share the results as a quick break from revision. Although it can't do much at the moment (the only commands are forward, left and right) with a bit more work I'm sure it could be made into quite an exciting program. You'll find the source code below and as usual just click the top image to launch the experiment.
Source code:
To make the output lines automatically fit the stage use the following instead:
Source code:
To make the output lines automatically fit the stage use the following instead:
Labels:
AS3,
Emergence,
procedural generation,
Source Code
Sunday, 17 April 2011
Large Scale Stop Frame
In my spare time I study physics at the University of Birmingham. We're currently having some building work done on our main courtyard, so with access to one of the security cameras from our main clock tower (provided by an unnamed physicist) I decided to document the events. I wrote a program which is currently running on the physics mainframe, which essentially grabs an image from the security camera every 2 minutes during the day. I compiled these images into a video (with about 6000 frames so far) and you'll find the initial results in the vid below:
I plan on taking a few more weeks of images, the above is about 6 weeks. Enjoy.
For those of you who are interested here is the bash source code:
I plan on taking a few more weeks of images, the above is about 6 weeks. Enjoy.
For those of you who are interested here is the bash source code:
Labels:
youtube
Subscribe to:
Posts (Atom)