New and improved 3D Product Box of the future!
Flash Dev
For my first post in the 3D section of the Work Shop, I thought I would start off simply. I will be using away3D (see intro to away3D) to create a product box in flash for use on the web. Now I am sure you have all seen these "product boxes" being used on websites all over the net. Software companies and Internet providers love them. They help lend a tangible feel to a purely digital product. Here is an example of what I am talking about

box-example

For instance, say you need to purchase antivirus software for your grandmother's new laptop, what you will do is load up your browser and perform a search for your preferred antivirus. Said antivirus company's website will load up and their latest offering will be detailed alongside a nice picture of the programs packaging. You will then enter you credit card details and download the software. There is no actual packaging as their is no physical product. But these "virtual" product boxes are the most natural way to present something that doesn't exist to any of our 5 senses. As you can see by the example, although the boxes look acceptable as a product's face, they are now so widely used that they have little or no benefit in separating one company's offering from the next. So how do we take an old idea inject some new life into it? No, not Botox... realtime 3D!

To acheive the results I am looking for, I will be using a few different software packages. 3D Studio Max for the modelling and/or animation, Adobe Photoshop for the texturing and of course, Flash for the rendering and output (trial versions of all of these packages can be downloaded from their respective websites for free). Before I start I just need to highlight that this is not a tutorial, but rather a process of steps taken to acheive a certain result. These are experiments so I only really know what the end result will look like once I am done. The final Flash files, textures and models will all be included at the end of the article. For the sake of continuity, all models should be copied into the primitives folder of your away3d directory.

Step 1 : Making the box


If you read the Introduction to Away3D article, then you will know that away3D has it's own classes for basic 3D primitives (spheres, cubes, cylinders etc). I will however be creating my own box model in 3D Studio Max and exporting it as an actionscript 3 class for use in Flash. This is just a simple box primitive as seen below.

productbox-3d

Step 2 : Making the skin


Before exporting the model of the box using the AS3 geometry exporter script for 3Dsmax, I ran an UnwrapUVW on the box which allows me to create a "skin" for my box using a single image. I took the resulting UVW template into Photoshop where I created the artwork for all 6 sides of the box.

boxmap

Step 3 : Bringing it all together in Flash


I wont get too much into the coding side of things, but if you are interested you can check out my final FLA file (which is included in the zip file) for all of the code used. Also note that for the files to run on your local machine, you will need to download the latest version of away3D. Everything you see in the SWF below was done using Actionscript and the timeline was not used at all. The model was loaded from an external file and the texture was applied from the library. After that a dynamic light was added to the scene and the model rotated a small amount on the Y-axis on every EnterFrame event. The Result is as follows, an animated real time rendered 3D product box with dynamic lighting in your browser. Which do you prefer? I know which one I think looks better :)



So that is it for this one. you can download the files for this experiment here. In the next article in this section I will be looking at creating a bit more of a complex model while also playing around with some of the standard Flash filters.
 

Comments 

 
#6 2011-03-17 10:44
I've been searching in google for some new ideas and accidentally found this www.innomation.co.za site.
Aw, this is a really qualitative post. In theory I'd like to write like this too - taking time and real effort to make a good article... but what can I say... I loiter alot and never seem to get something done.
Quote
 
 
#5 2010-01-20 16:11
thanks a lot for this, I believe this will help me finish my project in time, so then I can spend more time learning more about this.

Thanks for all your help.

PD: This time I did click on the "notify me of follow-up comments" checkbox, and it didnt notify me
Quote
 
 
#4 2010-01-20 09:37
Hey Christian. Yip, it appears that the link is dead... There is another solution for you though, it is a freeware 3D editing package made exclusively for away3D called Prefab. You can download it at : www.closier.nl/prefab/

It allows you to drag and drop your models into the program and edit and export directly to flash, no programming knowledge needed. It can handle your lighting texturing and modeling which it sounds like will be exactly what you need.
Quote
 
 
#3 2010-01-18 21:08
Thanks a lot Kevin, I just now noticed you had written back, (i guess I didn't use the notify checkbox). The link for the code is broken, looks like seraf let his page die, I have been looking for his code for a couple of days now, the closest one I found is a modification someone made for papervision3d, I'm now doing a couple of tutorials on 3dStudio Max to get acquainted with the program, and later try out the exporting.

BTW. Where are you linking your files? if it's not too much trouble I'd like to have a look at them so I can learn about the code to import the exported files to 3dSMax.

Thank you for all your help.
Quote
 
 
#2 2010-01-13 18:32
Hi Christian

If you have a copy of 3dsmax installed, have a look at this plugin which you can install and use from within Max to export directly to an AS3 class without having to code anything up : seraf.mediabox.fr/.../...

If you do not have 3DSMax installed but only have the 3DS files, Away3D can load import these natively. go to the away3D website (www.away3d.com) and have a look at the away3d.loaders.Max3DS class in their reference documentation for a better idea of how to use it.

If you still have trouble getting your models loaded into your movie, head over to groups.google.com/.../... where a very experienced and friendly community will help you out with anything you need.

Kevin
Quote
 
 
#1 2010-01-12 16:28
Hello, I like all your experiments, I'm trying to make a 3d model viewer for some products that I have been given the .3ds files for. You mention that you export from 3dsMax to as3 classes, could you please tell me how you do it? or if there is a tutorial on this, could you link to it? cause I read the flashmagazine tutorials, and they have a good start to all, but I'm in need of objective information on how to import .3ds files to away3d. Thanks in advance.
Quote
 

Add comment