Posts Tagged ‘PV3D’

UPDATE: A better a more complete tutorial can now be found here:

To Load .DAE files – simply use this code in Flash AS3:

import org.papervision3d.objects.parsers.*;
import org.papervision3d.objects.DisplayObject3D;
private var modelDAE:DAE;
private function load(){modelDAE = new DAE( );modelDAE.texturePath = “”; // assume that textures are in main DAE’s foldermodelDAE.load( “path/to/file.dae” );
modelDAE.addEventListener( FileLoadEvent.LOAD_COMPLETE , ldrComplete );}
private function ldrComplete( e:Event ):void{try{model = DisplayObject3D( modelDAE );
catch( e:TypeError ){loading = ERROR;return;}//And then you simply call the load

There are no error handlers in this code, only the basics of importing a model and loading it in flash. – more detailed tutorials will come soon with user interaction!

sign up to the RSS feed to find out when i have released it!
I Scoured High and Low to find out how to use Papervision and Collada with Flash CS3, so I thought i would share with everyone how i managed to do it.
Firstly this Tutorial is designed for use with 3Ds Max 9. With Adobe Flash CS3.
Once you have established that you have the above two programes, you can now proceed to the tutorial.
To get everything up and running is easily followed by 4 easy (when i say easy, i mean it took me 2 days to get it right) steps:
  1. Use an SVN client to download Papervision deposetries
  2. Install ColladaMax extension on 3Ds Max
  3. Convert models into .DAE files
  4. add PV3d (Papervision3D) component to Flash via the Extension Manager
1 – Using SVN
firstly – to get hold of the latest papervision files, you need to use an SVN (subversion) client, the recomended one to use is Tortoise SVN.

  • download and “install” it (once installed it will appear in the right click menu in windows  – it does not technicaly appear in Programe folders)
i.e it is a windows extension files and the menus appear in windows eplorer.

  • Create  a new folder, and call it Papervision3d “or whatever you want to call it.
  • right click the folder and chose SVN Checkout
  • direct the folder to
  • Choose which directory you would like to install it in, and click ok – now the SVN should be doing all the work downloading the PV3D files into your specified directory.
2 – Downloading and Installing ColladaMax extension
  • but for a direct download of the ColladaMax extension click here
  • once this is downloaded and installed in 3ds Max, you can now start exporting models

3 – Exporting .DAE files

  • As Papervision only reads .DAE files you need to export your models as .DAE this can be done by:
  • Click File > Export , then select COLLADA (*.DAE)
  • Make sure that, if you have more that one object in the scene that it is all connected as 1 object. and for Textures, use UVW mapping  and apply it to the DIFFUSE channel in the material editor – otherwise texturing wont work.
4 – Adding PV3D component to Flash CS3
  • download the component here
  • Open up Adobe Extension Manager, If you dont have it, you can get it from the Adobe site download it here
  • once installed hold down Ctrl + O to add a new extension, browse to the component .MXP file that you just downloaded and click ok
  • Open up Flash CS3, and now you should have PV3D in the Components window
  • To gain access to the PV3D panel  – in the toolbar click
Window > Other panels > PV3D Panel
for more information on this you can visit this blog
more information can also be found here
And thats it!
Now you can start with Actionscript 3.0 and get it on with PV3D!
Follow me on Twitter
free counters
PayPal Donation
If you like this blog and the help it has given you, why not donate for this good cause? Click on the button below to pay Safely and Securely through PayPal.