Paket
{
Import flash.display.*;
Import flash.events.*;
Import flash.geom.*;
Import flash.text.*;
Import flash.filters.*;
Import flash.utils.getTimer;
Import org.papervision3d.core.clipping.FrustumClipping;
Import org.papervision3d.core.proto.MaterialObject3D;
Import org.papervision3d.lights.PointLight3D;
Import org.papervision3d.materials.ColorMaterial;
Import org.papervision3d.materials.MovieMaterial;
Import org.papervision3d.materials.sh adematerials.FlatShadeMaterial;
Import org.papervision3d.materials.special.CompositeMaterial;
Import org.papervision3d.materials.utils.MaterialsList;
Import org.papervision3d.materials.WireframeMaterial;
Import org.papervision3d.objects.*;
Import org.papervision3d.objects.primitives.*;
Import org.papervision3d.view.BasicView;
Import org.papervision3d.cameras.*;
Import org.papervision3d.materials.special. Letter3DMaterial;
Import org.papervision3d.typography.fonts.HelveticaBold;
Import org.papervision3d.typography. Text3D;
Import org.papervision3d.core.effects.view.ReflectionView;
Import caurina.transitions.properties.CurveModifiers;
Import caurina.transitions. Tweener;
[SWF (Breite = „720“, Höhe = „480“, frameRate = „60“, backgroundColor = „0“)]
allgemeine Kategorie Hauptleitung verlängert ReflectionView
{
statisches privates const RUND : uint = 2000;
statisches privates const OBJ_AMOUNT : uint = 30;
statisches privates const CAMERA_POSITION: uint = 2000;
statisches privates const PLANE_SIZE : uint = 5000;
statisches privates const COLOR_LIST : Reihe = [0x003399, 0x0066CC, 0x0099FF, 0x33CCFF];
private var-Verpackungen: Reihe = [];
private var-Wörter: Reihe = [];
privates var wrapRoot: DisplayObject3D;
allgemeine Funktion Hauptleitung (): Lücke
{
Super (0, 0, zutreffendes, falsches, CameraType.TARGET);
camera.zoom = 1.5;
camera.focus = 200;
// refrection
surfaceHeight = 0;
//viewportReflection.filters = [neues BlurFilter (2, 2, 3)];
viewportReflection.alpha = .25;
//-Safepolygon
renderer.clipping = neues FrustumClipping (FrustumClipping.NEAR)
// addieren Material
var compMat: CompositeMaterial = neues CompositeMaterial ();
compMat.addMaterial (neues WireframeMaterial (0xEEEEEE));
compMat.addMaterial (neues ColorMaterial (0xEEEEEE, 0.1));
var planeB: Fläche = neue Fläche (compMat, PLANE_SIZE, PLANE_SIZE, 6, 6);
planeB.pitch (90)
scene.addChild (planeB);
wrapRoot = scene.addChild (neues DisplayObject3D ());
//-Partikelbewegung
var cnt: int = 0;
für (var I: int = 0; I < OBJ="">
|