Pages

Thursday 30 July 2009

3D Physics Engine

Maybe not quite a competitor for Sandy and Away 3D, but here is an engine I wrote about a year ago.
It handles shadows, skyboxes, fog, .obj import and a lot more as well.
The physics engine is verlet integration based.
More to come soon!

Monday 6 July 2009

Nice jQuery Lightbox

I found a nice lightbox clone on the No-Margin-For-Errors website. The nice thing is it can handle flash which a lot of similar plugins can't! Another advantage is that it works with blogspot blogs! You can download the source here, and you'll also need jQuery, downloadable here. Here is an example of an image loading: Example Image And here is a flash example:

Save functionality on CS4!

Finally what we've all been waiting for and it's really simple to implement.

I recently had to write some software for Braindash, a company I've been working for on and off for the last few years, who deal in puzzle games. The software was a brain training IQ puzzle generator thing, which had to take a puzzle and batch export several images for each question (a question and 4 answers) as well as a csv data file with information about the questions.

I actually didn't have a clue that writing data with flash without any serverside scripting was possible, so I'd given up on the idea after doing some reasearch into it a year or so ago. But now thats all changed which is absolutely fantastic.

File saving is done using the FileReference class, and the save method.

Implementation is as easy as:

var fileToSave:FileReference = new FileReference();
fileToSave.save(data,"name"+".extension");

where data can be:

- A String
- XML
- ByteArray data

If data is none of these, toString(); is called on whatever variables are in the data.

In the case of my work I used the AS3corelib PNGencoder to handle creating the byteArray from bitmapData in flash.

Enjoy this class, try making software which creates random art every time you open it and saves it to your desktop, pretty cool methinks!

Cheers

Sam