This has been a problem for ages:
http://pixelfumes.blogspot.com/2006/01/flash-why-do-you-mock-me-bitmap.html
As a solution to this, some smart developer came up with a quick fix, and people seem to stick to it.
http://pixelfumes.blogspot.com/2006/01/perspective-distort-example.html
This solution maps a lot of triangles to a quad and uses bitmapFill to project the image onto the surface. As you can see it has some limitations, the borders become teared and the final results look so so.
I'm currently working on a wallpaper application for a company that sells.. well guess.
Since there's always version-limitations as to what you can expect from the visitors, we decided that flashplayer 9 was the target version for this application, but this version suffers from the aforementioned problems so we had to fix it somehow.
After looking at the results of the 'perspective distort script' I concluded that there was something awkwardly wrong with this way of drawing images. The code places the triangles in a linearly interpolated fashion which screws up any chance of actually drawing something close to a correct perspective.
(If you're into this kind of stuff, You've probably seen this bit of code before)
After some thinking I came up with a somewhat simple quick-fix to a wall specific problem. With a bit of tinkering you'll easily be able to add vertical correction too, if that floats your boat. Anyway... enjoy.
During this project I also came across some creative ways to apply subtle sharpening to images in flash. Post a comment or something if you're interested.
Jun 8, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment