Monday, September 24, 2012

3D in Flash




3D in Flash

Hi Friends I am Raghunath,

Today I want to discuss 3D in Flash. We will learn about how to make 3D environment  how to make primitives and how to load heavy, animated 3D models into Flash.

Following is the output we will get after completion of this project. 



Using Flare3D in FlashDevelop4.0


First we need to have know about flash player capabilities.

before and fp8 doesn't have 3d capabilities. Flash Player9 and above has render 3d capabilities. Flash Player 11 has special GUP acceleration.
Flash use many 3D engines. engines means it can be library file or swc(adobe's own zip format) file. some of these free and other has cost.
Following table has shown name of these and other information.

1) Alternativa3D
2) Away3D
3) Five3D
4) Flare3D
5) Papervision3D
6) Sandy
7) Yogurt3D


We will using Flare3D for import 3d model and to add interactivity to in it.

About Flare3D

Flare3D is very excellent for who want to make 3d flash game. There are lots of 3D flash libraries available for flash (Open Source and pay). E.g. Away3D, Papervision, Sandy3D and 

many more. But, they don’t have capabilities to handle 3D model properly,  means some of them can’t import model’s texture or animation.

Still, no worry. Flare3D is good for us.

But before going forth look through following points.

1) Plugin available for 3dsmax  - Flash doesn't read convesional 3d formats, e.g. 3ds, or collada. some of engines read it but Flare3d need own build format 'f3d'. and so they provide 

us plugin for 3dsmax2010.  It converts 3d max's model or animation into Flare3D format 'f3d'.  it's will readable for Flash with Flare 3D. We cab set animation lable or variable into 3dsmax and preview live.

2) It's require Flash Player11. It's  need to play in browser or FlashPlayer11. if you want to see in browser you have to need install flash-player's plugins and active-x versions.

3) Work need to be done in FlashDevelop or Flash Builder. and you can setup for Flash also.

4) 3D File format supported is obj, dae, and f3d format.


What we need to first.

download flare3d from here. we can get sample projects there. save zip which named 'flared3' extracted it we get 'flare3d_prerelease' project file which will open in 'FlashDevelop'. FD is open-source ActionScript Editor which is available here. after installation we can open this project file.

we 


















2 comments: