I created this new website in Papervision3D
LDZ Website
New FlashBox3D! - 3D LightBox for Flash AS3
Hi,
I created “FlashBox3D” for viewing image content with 3D keynote like effects. Hope you like it.
Demo:
Enjoy!
*Modify “com/tomatria/flashbox3d/Configuration.as” to handle settings.
Some settings:
FLASHBOX3D_MARGINTOP=5;
FLASHBOX3D_WIDTH=440; //The width of your Viewport (FlashBox3D)
FLASHBOX3D_HEIGHT=340; //The height of your Viewport (FlashBox3D)
FLASHBOX3D_MAXWIDTH = 420; //Slide Horizontal resizing
FLASHBOX3D_MAXHEIGHT = 320; //Slide Vertical resizing
FLASHBOX3D_ALIGNMENT=”top”; //or center
RESIZE=false; //resize to maxWidth or maxHeight(image proportions are preserved)
All sources are included.
Source Code and Demo Files:
FlashBox3D
You will need Papervision3D Great White, BulkLoader and Tweener:
Download Papervision3D GreatWhite >>
Download BulkLoader>>
Download Tweener >>
Lightbox in Flash AS3, ASBOX2(fixed for fullscreen) - PV3D
Hi,
I found a very interesting flash lightbox as3 at:
http://www.marcellosurdi.name/2008/10/22/asbox2-lightbox-flash/
I did some tweaking on the code to work in fullscreen mode and stage resizing.
Here you have the source code of John Dyer’s Papervision3D Coverflow Gallery with ASBOX2:
Source Code:
Coverflow Gallery with ASBOX2 and Papervision3D
You will need Papervision3D Great White and Tweener:
Download Papervision3D GreatWhite >>
P.D: The original code for the Coverflow Gallery without the ASBOX2 is in here:
http://johndyer.name/post/2007/12/12/Papervision-Coverflow-updated-for-PV3D-20-(GreatWhite).aspx
ParticleFlowPv3D - Papervision3D Particle System
ParticleFlowPv3D - Papervision3D Particle System
Features:
-Supports multiple bitmaps for animated sequence or generates them automatically by defined number of steps(generates different alpha versions from 1 to 0, only if alpha tweening is set to true).
-Switch between color tweening effect or BitmapParticleMaterial.
-Add forces.
*I haven’t had time to update the code to emit from object’s faces, but will update it soon, only needs a tweak.
*The code is a little bit messy.
Usage example:
_MaterialsArray = new Array();
_MaterialsArray[0] = particleBitmapData;
var _myID:int = 1;
particleFlow = new ParticleFlow(scene, plane, _MaterialsArray, null, _myID);
particleFlow.sceneCount = 100;
particleFlow.life = 20;
particleFlow.lifeVariant = 0.1;
particleFlow.startColor = 0×000000; //To make this option active _MaterialsArray has to be null or empty
particleFlow.endColor = 0×999999; //To make this option active _MaterialsArray has to be null or empty
particleFlow.endScale = 12;
particleFlow.size = 1;
particleFlow.speed = 70;
//particleFlow.wobble = 0.05;
particleFlow.rotation = 0;
particleFlow.updateTime = 20;
particleFlow.tweenAlpha = true; // This effect is only active if _MaterialsArray length = 1.
particleFlow.alphaLevels = 20; //Number of Bitmaps generated in bitmap array for alpha tweening
//FACE_EMITTER emits from the center of each face of the emiter do3d
//RANDOM_FACE_EMITTER emits from a random position of each face of the emiter do3d
//POSITION_EMITTER emits from the position of the Emitter
particleFlow.emitterType = ParticleFlow.FACE_EMITTER;
}
//Emit Particles Example
private function handleRender(e:Event):void {
particleFlow.addForce(0,0.1,0);
particleFlow.emit();
renderer.renderScene(scene,camera,viewport);
}
SourceCode:
particleFlowPv3D Download
Papervision3D Path Extrude
Papervision3D Path Extrude - Based on Away3D
Usage example:
materialsList = new MaterialsList();
materialsList.addMaterial( topMat,”top” );
materialsList.addMaterial( bottomMat,”bottom” );
materialsList.addMaterial( rightMat,”right” );
materialsList.addMaterial( leftMat,”left” );
materialsList.addMaterial( frontMat,”front” );
materialsList.addMaterial( backMat,”back” );
var segmentPoints:Array = new Array();
//generate points
var aPoints = [];
//here a U form
aPoints.push(new Number3D(-100, 100, 0));
aPoints.push(new Number3D(-100, 0, 0));
aPoints.push(new Number3D(-50, 0, 0));
aPoints.push(new Number3D(-50, -150, 0));
aPoints.push(new Number3D(0, -150, 0));
aPoints.push(new Number3D(50, -150, 0));
aPoints.push(new Number3D(50, 0, 0));
aPoints.push(new Number3D(100, 0, 0));
aPoints.push(new Number3D(100, 100, 0));
//generate path
var aPath:Path =
new Path([
new Number3D(-400, 0, -150),
new Number3D(-200, 300, 0),
new Number3D(0,0,0),
null, new Number3D(200, -300, 0),
new Number3D(400, 0, 0),
null, new Number3D(600, 300, 0),
new Number3D(800, 0, 0),
null, new Number3D(1000, -300, 0),
new Number3D(1200, 0, 150)
]);
//scale variation
var aScale = [];
aScale.push(new Number3D(1, 1, 1));
aScale.push(new Number3D(2, 1, 2));
aScale.push(new Number3D(2, 1, 2));
aScale.push(new Number3D(3, 1, 3));
�
aPath.worldAxis = new Number3D(0,0,1);
pathextrude= new PathExtrude(materialsList, aPath, aPoints, aScale,
{flip:false,
excludeFaces:”",
closepath:false,
reverse:false,
aligntopath:true,
coverall:true,
scaling:1,
hSegments:1,
wSegments:1,
subdivision:6,
closewall:true,
thickness:30
});
scene.addChild(pathextrude);
SourceCode:
Path Extrude Download
Papervision3D Segments Extrude
Papervision3D Segments Extrude - Based on Away3D
Usage example:
materialsList = new MaterialsList();
materialsList.addMaterial(topMaterial,”top”);
materialsList.addMaterial(bottomMaterial,”bottom”);
materialsList.addMaterial(rightMaterial,”right”);
materialsList.addMaterial(leftMaterial,”left”);
materialsList.addMaterial(frontMaterial,”front”);
materialsList.addMaterial(backMaterial,”back”);
segmentsExtrude= new SegmentsExtrude(materialsList, circleArray, {
excludeFaces:”bottom, left”,
axis:”y”,
elevation:350,
hSegments:4,
vSegments:4,
thickness:50,
thickness_segments:1,
closepath:false,
reverse:false,
coverall:true,
flip:false});
SourceCode:
Segments Extrude Download
Enjoy!
Ring/Tire Primitive for PV3D
Ring3D primitive with materialsList for Papervision3D.
Usage example:
materialsList = new MaterialsList();
materialsList.addMaterial(tubeMaterial,”tube”);
materialsList.addMaterial(baseMaterial,”base”);
materialsList.addMaterial(topMaterial,”top”);
materialsList.addMaterial(bottomMaterial,”bottom”);
//MaterialsList, radius, width, tireProfile, circleSegments, widthSegments, faces to hide
carTire = new CarTire(materialsList, 180, 90, 50, 20, 3, true, true, true, true);
Source Code:
Car Tire Source
Blog, just out of the box…
Hi everyone, I’ve been working a lot in Flash and web applications in the last time, so decided to create this blog to share my work, hope you enjoy.

