New Papervision3D Components released

By neoriley

I finally released the components late last night over on www.RockOnFlash.com/blog

Papervision3D component

Some of the features:

  • Design-time render and editing in Flash IDE
  • 3 Material types supported – BitmapFileMaterial, BitmaAssetMaterial and MovieAssetMaterial
  • Creates MovieScene3D and Free or Target camera
  • Manages resizing / centering of Papervision3D scene [optional]
  • Dynamic masking to constrain the viewable render area to the bounds of the component [optional]
  • Full API and access to Scene, Camera, Collada objects to code around
  • Automatically loads materials via Collada file [when materials list is not given]
  • New Custom Panel for modifying rotation, camera zoom, camera focus, camera Z at design-time

Check em’ out!

The components were first introduced to the class of June 23/24 at RMI (they ROCKED) and include the Collada Scene component as well as the Simple Scene3D component.

-John

2 Responses to “New Papervision3D Components released”

  1. Pedro Sacramento Says:

    OMG! Awesome work!
    I’ll test it this weekend

  2. Gianni Says:

    DOES ANYBODY KNOW WHAT IS WITH THAT COMPONENT? PLS HELP.

    I installed New Papervision3D Components from http://rockonflash.wordpress.com/2007/06/28/new-papervision3d-components/ and I ve got these ERRORS:

    1172: Definition org.papervision3d.objects:Cube could not be found.
    1172: Definition org.papervision3d.objects:Cube could not be found.
    1180: Call to a possibly undefined method Cube.

    My code on Frame 1 is:

    import flash.display.Bitmap;
    import flash.display.Sprite;
    import flash.events.Event;
    import org.papervision3d.cameras.FreeCamera3D;
    import org.papervision3d.materials.BitmapMaterial;
    import org.papervision3d.materials.MaterialsList;
    import org.papervision3d.objects.DisplayObject3D;
    import org.papervision3d.scenes.Scene3D;
    import org.papervision3d.objects.Collada;
    import org.papervision3d.core.proto.DisplayObjectContainer3D;
    import org.papervision3d.objects.Cube;
    import org.papervision3d.materials.ColorMaterial;

    [Embed(source="cmmlogo.png")] var CubeTexture:Class;
    [Embed(source="cmmorange.png")] var crazyTexture:Class;

    var myMaterials:Object;
    var container:Sprite;
    var scene:Scene3D;
    var camera:FreeCamera3D;
    var rootNode:DisplayObject3D;

    function P3DTutorial()
    {
    init3D();
    addEventListener(Event.ENTER_FRAME, loop3D);
    }

    function init3D():void {
    container = new Sprite();
    addChild( container );
    container.x = 200;
    container.y = 200;
    scene = new Scene3D(container);
    camera = new FreeCamera3D();
    camera.z = -600;

    rootNode = scene.addChild(new DisplayObject3D(“rootNode”));
    var cubeTexture:Bitmap = new CubeTexture() as Bitmap;
    rootNode.addChild(new Cube(new BitmapMaterial(cubeTexture.bitmapData),200,200,200,1,1,1),”myCube01″”);
    }

    function loop3D( event:Event ):void {
    var screen: DisplayObject3D = this.scene.getChildByName(“rootNode”);
    var rotationY: Number = -(this.mouseX / this.stage.stageWidth * 275);
    var rotationX: Number = -(this.mouseY / this.stage.stageHeight * 275);
    screen.rotationY += (rotationY – screen.rotationY) / 12;
    screen.rotationX += (rotationX – screen.rotationX) / 12;
    this.scene.renderCamera(this.camera);
    }

    I really don’t know what is wrong with my code or with installed component. Once more thanks for help. I m really stuck and don’t know what to do with it.

Leave a Reply