Esempio: Importare i modelli Collada

import flash.display.Sprite;
import flash.events.Event;
	
import org.papervision3d.view.*;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.materials.*;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.*;
import org.papervision3d.objects.parsers.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.render.BasicRenderEngine;

import org.papervision3d.materials.shadematerials.*;
import org.papervision3d.lights.*;


var viewport:  Viewport3D;
var scena:     Scene3D;
var camera:    Camera3D;
var materiale: FlatShadeMaterial;
var renderer:  BasicRenderEngine;
	
viewport = new Viewport3D(400, 200, true, true);
addChild(viewport);

scena = new Scene3D();
camera = new Camera3D();
renderer = new BasicRenderEngine();

var thelight:PointLight3D = new PointLight3D(false);
thelight.z = -300;
thelight.x = -300;	

materiale = new FlatShadeMaterial(thelight, 0xff0000, 0x000000);	

var solido:DisplayObject3D = new Collada("htmlit.dae",new MaterialsList({all:materiale}));

solido.rotationX = -90;
scena.addChild(solido);

camera.target = solido;
camera.zoom = 15;

addEventListener(Event.ENTER_FRAME, onEnterFrame);

function onEnterFrame(e:Event):void
{
  solido.rotationY -= 1;
  renderer.renderScene(scena, camera, viewport);
}