Posts Tagged ‘Flash’

Real-time 3D in Flash

Monday, May 10th, 2010

Courtesy of the David Laser Scanner project there’s a way to do real-time 3d in Flash.  It’s called Mesh2Flash.  This tool was originally designed to showcase polygon meshes generated using the David Laser Scanner software, but I think this is great way to show off models made in any software.  All you need is the .obj or .dae format, and the Mesh2Flash.swf takes care of the rest.  You can find more information about Mesh2Flash here.

My biggest problem with this is that the .obj file must sit on the server with the Mesh2Flash.swf.  I’ve very little means to protect these objects from being stolen.  I tried password protecting the directory, but this only protected the directory.  With a direct link to the .obj file a person could read the file with a simple text editor, and take the object.  I think this is a dead end until I can find a means to secure my objects.  My objects are far too valuable to have hanging out on the server for someone to take and use or sell.  My understanding of the web is, “If you don’t want it stolen, then don’t put it on the web.”

Regardless of my fears, just imagine the possibilities of being able to pre-vis the 3d models a vendor might sell online.  What a fantastic way to “see” the mesh before purchasing it.   The Unity game engine would also be a viable way of showcasing real-time work in the browser, perhaps even more secure.

This model is not a scan, but is a primitive from XSI.  It’s was then triangulated, and exported as an “.obj” format for use with Mesh2Flash.

Click the image to launch the Mesh2Flash.

Example of Real-time 3d in Flash

Click and drag in the view to rotate it.
Arrow keys: Rotate view
+/-: Zoom in/out
Z/z: Zoom in/out
f/F: Decrease/increase camera focal length
s: Start/stop continuous rotation
a,r: Reset camera
q,e: Roll camera

Fountains, Fireflies, and Bucket of Balls

Tuesday, May 4th, 2010

More AS3 fun.

Fireflies.  Ok.  Not fireflies, but it reminds me of them.

Fountain.

Notice the scale change from birth to death.  It adds a nice dimension.

Dump Bucket.  I imagined a bucket of bouncing balls dumped onto the floor.  Classic bouncing ball from traditional animation ramped up.

Asteroids Ship

Monday, May 3rd, 2010

Lately, I’ve been doing A LOT of administrative work, and I’m tired of it.  Even though I have a shit ton of work to do for ARC, I decided to have some fun and chill out this Sunday.  I loaded up some old flash files of mine.  After having a conversation with an artist in town, it looks like I’ll be doing more AS3 work this summer, so I thought I’d warm up.  This one uses OOP!  The ship drawing, the ship animation, and the ships bullets are all independent.  This work is a rebuild of the great work taught by Keith Peters in the book, Actionscript 3.0 Animation – Making Things Move.  Mr. Peters didn’t teach how to combine the independent files, but I figured it out after a while.  Have fun spraying bullets!  Not that spraying bullets is much fun, but this is just the beginning.

Use the spacebar to shoot bullets, the up arrow to move forward, left and right arrow to rotate.  Be sure to click in the flash block to activate it.

Website Interfacing Prototype

Sunday, March 7th, 2010

I think this is pretty cool stuff, and I’m proud of my work on this project.  In October of 2008, I was invited to collaborate with Steve Mehallo, Jim Cassio, and Michael Scott to animate a prototype of a new website standard.  I was responsible for creating and programming the animation.  I was also responsible for following Steve Mehallo’s design of the interface to the pixel.

I hadn’t used Flash since AS 1.0 days, so I had to learn Action Script 3.0 programming very fast.  I used research material published by Keith Peters to achieve my goal in one month (all while teaching full-time). Big thanks to Keith for being a great author and teacher!  I used to dread programming in Flash, but now it’s one of my favorite things in Flash and is thoroughly satisfying.  Animating with code is very cool. I retired from this project in December of 2008 to take on a part-time position teaching at the Art Institute of Sacramento from January 2009 – June 2009.

You can shift + click the circles to have them drag about.  Also, alt + click to enable gravity, then you can shift + click to throw them around.  See a larger version for the website prototype.