This little class is sort of an offshoot of something I did for a professional project I'm working on.
Since it's completely bare-bones and targets the essentials (it's only 2 triangles and a texture) I think it's very useful for understanding the basics, that's why I decided to make it available.
I'm well aware that there are pretty robust and comprehensive solutions out there dealing with bitmap distortion - not to mention that with Flash 10 this issue is going to be completely trivialized - but the point here is simplicity.
Continue reading ...
Entries Tagged [Flash Fun]
Basic bitmap distortion using triangles and UVs (source)
August 28th, 2008 — Flash Fun
APE physics based tilttable (source)
July 7th, 2008 — Flash Fun
I have been working on a small pinball-game recently, and this demo is sort of a byproduct of that.
It's using the excellent APE (Actionscript Physics Engine) and it's interactive: the magnitude of the force as well as the shadows both are linked to the distance between the pointer and the largest ball-object. Go on, play around with it for a while.
Continue reading ...
Warped 3D cube
May 16th, 2008 — Flash Fun
Today I had a sudden idea which I wanted to quickly try out, so I dusted off my previous little Papervision tutorial to use it as the basis for this effect.
Check out the end results, the Awesome Warped Cube:
Continue reading ...
Shaded Papervision cube with Tweener (source)
April 28th, 2008 — Flash Fun
If you have been visiting this current incarnation of this site since opening day, you may remember that this little Flash-thing used to be part of the original version of the header.
It gave me numerous headaches primarily due to this problem, so I decided to remove it and publish the source instead.
It's really pretty basic - a cube primitive, a FlatShadeMaterial, a GradientGlowFilter, with some random elastic rotation done with Tweener - but I suspect that it could come very handy especially for those who are just starting with Papervision3D. Have fun with it.
Continue reading ...
Simple interpolation
March 26th, 2008 — Flash Fun
Ok, here's a miniature function which could be very useful in many different situations, yet often people seem to struggle with it: interpolation of a number within a numeric range into another corresponding number within another arbitrary numeric range.
This sounds rather obscure, so let's see a simple example.
Continue reading ...