A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: installing papervision 3D

  1. #1
    Flash Genie letschillout's Avatar
    Join Date
    Feb 2007
    Location
    31.52949, 74.347272
    Posts
    146

    installing papervision 3D

    Installing papervision3D and test 1st file.

    I am using Flash CS3, and installing papervision3D, but i test my 1st file and gives below problem
    anyone can help to fix it? or check this link to view complete error
    http://multimedia99.googlepages.com/error.JPG



    Papervision3D details can be found here, which i am trying to test!
    http://code.google.com/p/papervision...ng_Started_FAQ

    code which am testing!!!
    /*
    * Copyright 2007 (c) Andre Stubbe, http://www.andrestubbe.com
    *
    * Permission is hereby granted, free of charge, to any person
    * obtaining a copy of this software and associated documentation
    * files (the "Software"), to deal in the Software without
    * restriction, including without limitation the rights to use,
    * copy, modify, merge, publish, distribute, sublicense, and/or sell
    * copies of the Software, and to permit persons to whom the
    * Software is furnished to do so, subject to the following
    * conditions:
    *
    * The above copyright notice and this permission notice shall be
    * included in all copies or substantial portions of the Software.
    *
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    * OTHER DEALINGS IN THE SOFTWARE.
    */

    package
    {
    import flash.display.Sprite;
    import flash.events.Event;

    import org.papervision3d.cameras.Camera3D;
    import org.papervision3d.objects.Plane;
    import org.papervision3d.materials.ColorMaterial;
    import org.papervision3d.scenes.MovieScene3D;

    [SWF(width='400',height='400',backgroundColor='0x00 0000',frameRate='30')]

    public class ExampleTransformationRotate extends Sprite
    {
    private var container: Sprite;
    private var scene: MovieScene3D;
    private var camera: Camera3D;
    private var plane:Plane;

    public function ExampleTransformationRotate()
    {
    container = new Sprite;
    container.x = 200;
    container.y = 200;
    addChild( container );

    scene = new MovieScene3D( container );

    camera = new Camera3D();
    camera.z = -500;
    camera.zoom = 5;

    // create red material
    var material:ColorMaterial = new ColorMaterial();
    material.doubleSided = true;
    material.fillColor = 0xFF0000;
    material.fillAlpha = 1.0;

    // create a plane
    plane = new Plane( material, 128, 128, 1, 1 );

    // register plane
    scene.addChild( plane );

    stage.addEventListener( Event.ENTER_FRAME, onEnterFrame );

    }

    private function onEnterFrame( event: Event ): void
    {

    // rotate the plane
    plane.rotationX += 4.35;
    plane.rotationY += 6.55;
    plane.rotationZ += 0.55;

    // render the scene
    scene.renderCamera( camera );

    }


    }

    }
    Charag - 3D, Flash Games, Animations,
    Website Development & More...


  2. #2
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    I'm going to assume that you have a SVN client and have already downloaded the /org and /nochump folders and place them in a folder, name it "Papervision3D". If not, I'd suggest getting a SVN client, and doing so.

    Then open up Flash, go to Edit > Preferences > ActionScript > ActionScript 3.0 Settings. Then hit the "+" sign, add the classpath to your directory that contains the /org and /nochump folders, the one I just had you place both of them into the recently renamed Papervision3D folder and add that directory to the Classpath.

    And there, you have have. Each time you
    Code:
    import org.papervision3d.cameras.Camera3D;
    It'll be really pointing down to your ~/Papervision3D/org location.

    Hope that helps.

    [ Hello ] | [ gerbick ] | [ Ω ]

  3. #3
    Flash Genie letschillout's Avatar
    Join Date
    Feb 2007
    Location
    31.52949, 74.347272
    Posts
    146
    1) i install SVN client
    2) followed the instruction - http://code.google.com/p/papervision...ng_Started_FAQ

    3)preference screen shot from flash CS3, you check below


    I am not able to understand why its still giving such error
    or what am missing!

    import org.papervision3d.cameras.Camera3D;
    this above code already present in
    ExampleTransformationRotate.as file (read above 1st post)
    Charag - 3D, Flash Games, Animations,
    Website Development & More...


  4. #4
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    Remove your second Papervision entry if it's not a true folder on your hard drive.

    I listed that snippet of code to explain that's a path... when you import org.papervision3d.cameras.Camera3D, it should follow the path of C:\Papervision3D\org\cameras\Camera3D.as - for instance. It's just a folder structure. As are the other imported classes - they're relative to the embedded class paths of the application.

    [ Hello ] | [ gerbick ] | [ Ω ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center