I'm trying to figure out which tool is best to 3d rotate an image on a
plane.
Something like this:
http://karmapop.com/content/cardFlip.swf

but with a dynamically loaded image on the "front" and another image
on the "back" with a font superimposed on it.  this is going to be a
postcard.
this is basically a shape tween, but where an image is being distorted.
I want the animation to be as smooth as possible, the file size to be
as small as possible, and keeping it to Flash 7 to allow the most
people to use it.


Sandy
http://www.mosessupposes.com/Fuse/
http://hosted.zeh.com.br/mctween/

Fuse, MC Tween, Laco's Tween or any other tween won't "do" the job. They're just tweening engines, so they'd only be used when setting the angle of the thing. Say, from 0 to 360 using different equations. Useful, but to properly *project* the object, to draw the thing, you'd need something else. It's not their job.


Papervision3d

Papervision3d and Sandy will do the job *fine*, but from what I've seen they're meant for Flash 8+ because they use BitmapData to do it.


Something else?

Well, how dependent you are of Flash 7?

To do this on Flash8+, you'd use Papervision3d or Sandy. It's probably not very painful.

On Flash7, you would need to do the proper 3d transformation *and* all projection. I don't think there's any 'ready-made' engine for that, so basically, you'll need to map and rotate all vectors, then project all triangles using skewing and masks. This is possible, but it's pretty ugly compared to the easier/faster BitmapData fill.

A similar technique has been used here:

http://www.nkag.co.jp/

You can't see, but each face is made of a bunch of triangles. However, due to the complexity of the masks, you'll see artifacts once in a while, and speed won't be exactly the best. The technique used by most 3d engines today is similar, but they simply fill the data instead of creating movieclips with masks and skewing/scaling them.

So all in all, I'd recommend you using Sandy/Papervision3d instead, under Flash 8. 90% of the user penetration seems good enough (specially considering 7 is just a bit more, 95%).

Of course, you just scale your object vertically/horizontally... there would be no perspective, but sometimes the simplest/easiest way is enough.

And finally, people, please keep this in mind when doing your 3d rotations and face projections and whatnot:

http://hosted.zeh.com.br/misc/perspective.png



Zeh
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to