Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Easing The Camera In Papervision?



How do you guys ease the camera in paper-vision?

I have being trying to use tweenlite / max

TweenMax.to(camera, 3, {z:-1000, ease:Bounce.easeOut});

but to no avail.


Any idea guys?



FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-18-2008, 11:36 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Using Papervision's Camera Zoom, Easing?
i'm using lee brimlow's example of the air logo setup as a spiral using papervision and wanted to do a MOUSE_OVER effect on the sprite to zoom in. the camera zoom code is setup like this:

cameraZoom = 5;

how can i set it up so that instead of doing cameraZoom = 9 when the MOUSE_OVER is activated, but instead it will ease into cameraZoom 9 instead of instantly becoming cameraZoom 9?

Papervision Camera.lookAt();
I'm trying to use the BasicView class to create a scene.

Basically I just have a sphere that circles around the 0,0,0 world point.

i'm trying to get the camera to look at the sphere and not the world center. Its not working for me.

here's the code

Code:

package {

  import flash.display.StageAlign;
  import flash.display.StageScaleMode;
  import flash.events.Event;
  import org.papervision3d.core.math.Number3D;

  import org.papervision3d.core.geom.Lines3D;
  import org.papervision3d.core.geom.renderables.Line3D;
  import org.papervision3d.core.geom.renderables.Vertex3D;
  import org.papervision3d.core.proto.MaterialObject3D;
  import org.papervision3d.materials.WireframeMaterial;
  import org.papervision3d.materials.special.LineMaterial;
  import org.papervision3d.objects.primitives.Sphere;
  import org.papervision3d.view.BasicView;

  public class BasicExample extends BasicView {
   private static const ORBITAL_RADIUS:Number = 200;
   
    private var sphere:Sphere;
   private var theta:Number = 0;
   
    public function BasicExample()
   {
      super(640, 320, true, true, "Camera3D");
      // set up the stage
      stage.align = StageAlign.TOP_LEFT;
      stage.scaleMode = StageScaleMode.NO_SCALE;

      // Initialise Papervision3D
      init3D();
     
      // Create the 3D objects
      createScene();
     
      // Start rendering the scene
      startRendering();
    }
   
    private function init3D():void {

      // position the camera
      camera.x = -120;
      camera.y = 250;
      camera.z = -1000;
    }

    private function createScene():void {

      // First object : a sphere
     
      // Create a new material for the sphere : simple white wireframe
      var sphereMaterial:MaterialObject3D = new WireframeMaterial(0xFFFFFF);

      // Create a new sphere object using wireframe material, radius 50 with
      //   10 horizontal and vertical segments
      sphere = new Sphere(sphereMaterial, 50, 10, 10);

      // Position the sphere (default = [0, 0, 0])
      sphere.x = -100;
    

      // Second object : x-, y- and z-axis
     
      // Create a default line material and a Lines3D object (container for Line3D objects)
      var defaultMaterial:LineMaterial = new LineMaterial(0xFFFFFF);
      var axes:Lines3D = new Lines3D(defaultMaterial);

      // Create a different colour line material for each axis
      var xAxisMaterial:LineMaterial = new LineMaterial(0xFF0000);
      var yAxisMaterial:LineMaterial = new LineMaterial(0x00FF00);
      var zAxisMaterial:LineMaterial = new LineMaterial(0x0000FF);

      // Create a origin vertex
      var origin:Vertex3D = new Vertex3D(0, 0, 0);

      // Create a new line (length 100) for each axis using the different materials and a width of 2.
      var xAxis:Line3D = new Line3D(axes, xAxisMaterial, 2, origin, new Vertex3D(100, 0, 0));
      var yAxis:Line3D = new Line3D(axes, yAxisMaterial, 2, origin, new Vertex3D(0, 100, 0));
      var zAxis:Line3D = new Line3D(axes, zAxisMaterial, 2, origin, new Vertex3D(0, 0, 100));
     
      // Add lines to the Lines3D container
      axes.addLine(xAxis);
      axes.addLine(yAxis);
      axes.addLine(zAxis);

      // Add the sphere and the lines to the scene
      scene.addChild(sphere);
      scene.addChild(axes);
    }
   
   override protected function onRenderTick(event:Event=null):void {

       //rotate the sphere
      sphere.yaw(-4);
     
       //change the position of the sphere
     theta += 3;
      var x:Number = - Math.cos(theta * Math.PI / 180) * ORBITAL_RADIUS;
      var z:Number =   Math.sin(theta * Math.PI / 180) * ORBITAL_RADIUS;
      sphere.x = x;
      sphere.z = z;
     camera.lookAt(sphere);
     
       //call the renderer
      super.onRenderTick(event);
    }   

  }
}

Papervision, Restrict Camera Movment And Zoom
Hello,

I've started my first AS3 project today and erm.........woah! It's giving me a complete nervous breakdown.

I've got to do a project with with 3d so have turned to papervision. Basically, I have 5 planes that I want the camera to rotate around but only to a point. When the camera reaches an x value of either -1000 of 1000 the camera movement should stop and not go past that value (but obviously the other way).
Also, I need to add a function to click one of the planes and it comes to the front and fills the stage (it's aspect ratio will be the same as the stage). The code I'm using the standard Lee Brimlow tutorial code:


PHP Code:



import org.papervision3d.scenes.*;
import org.papervision3d.objects.*;
import org.papervision3d.cameras.*;
import org.papervision3d.materials.*;

// Create the container Sprite
var container:Sprite = new Sprite();
container.x = stage.stageWidth * 0.5;
container.y = stage.stageHeight * 0.5;
addChild(container);

// Setup the 3D scene
var scene:Scene3D = new Scene3D(container);
var camera:Camera3D = new Camera3D();
camera.zoom = 10;

// Create the material
var bam:BitmapAssetMaterial = new BitmapAssetMaterial("cover");
bam.oneSide = false;
bam.smooth = true;

var bam2:BitmapAssetMaterial = new BitmapAssetMaterial("orange");
bam2.oneSide = false;
bam2.smooth = true;

var bam3:BitmapAssetMaterial = new BitmapAssetMaterial("blue");
bam3.oneSide = false;
bam3.smooth = true;

var bam4:BitmapAssetMaterial = new BitmapAssetMaterial("green");
bam4.oneSide = false;
bam4.smooth = true;

var bam5:BitmapAssetMaterial = new BitmapAssetMaterial("pink");
bam5.oneSide = false;
bam5.smooth = true;

var p1:Plane = new Plane(bam, 234, 300, 2, 2);
scene.addChild(p1);
p1.x = 200;

var p2:Plane = new Plane(bam2, 234, 236, 2, 2);
scene.addChild(p2);
p2.x = -100;
p2.z = 500;

var p3:Plane = new Plane(bam3, 234, 236, 2, 2);
scene.addChild(p3);
p3.x = -500;
p3.z = 1000;

var p4:Plane = new Plane(bam4, 234, 236, 2, 2);
scene.addChild(p4);
p4.x = -500;
p4.z = 100;

var p5:Plane = new Plane(bam5, 234, 236, 2, 2);
scene.addChild(p5);
p5.x = 500;
p5.z = -100;

this.addEventListener(Event.ENTER_FRAME, render);

function render(e:Event):void
{
//psuedocode...
//if camera.x>-1000 && camera.x <1000
    camera.x += (stage.mouseX - (stage.stageWidth*0.5))/50;
    scene.renderCamera(camera);
}




So basically, the cameras movement is restricted to between -1000 and 1000 and you can click on the planes and zoom into them so they fill the screen.
Can anyone help me here because I am going into meltdown trying to do this.

Cheers
Matt

Flex Camera Pivot In Papervision, And Overiding
Hi.

I'm trying to set a DisplayObject3D as a parent to a Camera3D.
the addChild(Camera) won't work...

So I tried to make a new class: cCameraPivot that is inherited from DisplayObject3D, but there seems to be a problem with the overriding of the properties (x, y, z, rotationX, etc. etc...)

In the overiding setter I have no access to the defined camera of the pivot.

Here is the code:


Code:

package
{
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.core.proto.GeometryObject3D;


public class cCameraPivot extends DisplayObject3D
{
public var Cam :Camera3D;
private var camPos :DisplayObject3D;

public function cCameraPivot(camera:Camera3D, name:String = "pivot", geometry: GeometryObject3D = null)
{
super(name, geometry);
Cam = camera;
camPos = new DisplayObject3D();
camPos.copyTransform(Cam);
this.addChild(camPos);

}

public override function set x(value:Number):void {
camPos.copyTransform(Camera);
super.x = value;
Camera.copyTransform(camPos);
}

}

}
I get this message on running:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at cCameraPivot/set x()[C:DataProjectsTreepodiaPV Test 3srccCameraPivot.as:27]

whice is the first line in the setter of X.

What can be done???

TNX

Papervision, Cube Rotation And Easing
Hi there.

I'm at the moment trying to recreate a menu system that I found on http://www.fendi.com/, as you can see, the menu you get after you've choosen a language is a 3d menu rotating so its always looking at the cursor, but as you will notice, the motion has a little bit of easing to it, which I'm currently trying to recreate using the cube you make with the "Papervision3D 2.0 Interactive Cube" from GotoAndLearn();

Here is what I got so far:
http://www.3d-artist.dk/cube.swf

and here is the code behind that drives the rotation:
Code:

var xDist:Number = mouseX - stage.stageWidth * 0.5;
var yDist:Number = mouseY - stage.stageHeight * 0.5;
var LeftDistance:Number = stage.stageWidth * 0.5;
var TopDistance:Number = stage.stageHeight * 0.5;

var MaxAngle:Number = 25 * (Math.PI / 180);
   
var AngleCalculationX:Number = -Math.asin((xDist * Math.sin(MaxAngle)) / LeftDistance);
var AngleToDegrees:Number = AngleCalculationX * (180 / Math.PI);
   
cube.rotationY = AngleToDegrees;

Now, my problem is that I'm having a hard time figuring out how to create a tween effect on his, resulting in a bit out of sync rotation that slowly stops instead of just following my pointer in an instant.

Any kind of help or hints would be greatly appreciated.

Thanks in advance

Change Camera On A Mac From Isight To A Mini Dv Camera
I don't have the mini dv camera listed as one of the options on the video settings of the flash player however I am able to access the Mini dv camera using quicktime (in other words the computer can see the camera but flash can't)
My Mini dv camera is connected through a usb cable so I tried to disable the isight camera since it might be causing conflict with the Mini dv camera (the isight is built in but connected via USB, weird but true).

Anyway, does anybody has any ideas?
I appreciate the effort.

Camera.get For An Outdoor Camera ( Not A Webcam )
hello;

I would like to install an outdoor camera which has its own built-in server;

I want the video capture to be delivered to a client-side .swf which in turn connects to FMS;

any thoughts?

thanks
dsdsdsdsd

Camera.get For An Outdoor Camera ( Not A Webcam )
hello;

I would like to install an outdoor camera which has its own built-in server;

I want the video capture to be delivered to a client-side .swf which in turn connects to FMS;

any thoughts?

thanks
dsdsdsdsd

Frame Based Easing, Into Time Based Easing (in Actionscript)
i have code to move something from placeA-placeB based on time...then i also have a code to move something from placeA-placeB with easing, but its based on frames...can someone supply me with an easing formula based on time?

Easing Out AND Easing In Using Math?
Hello,
I'm familiar with how to ease something in using motion math. Easing out would not be that bad either. But how would I script something easing in half way, then easing out the second half? It would start slow, gradually move faster, then slow to a stop at the end. - almost like a sine wave I guess?

Any thoughts? I appreciate any feedback.

Papervision 2.0
Any ideas how how this was created?

http://www.fat-man-collective.com/

I learned the basics so far, yet i'm still new to actionscripting. The main thing i'm trying to understand is the placing of the movieclips, and letting the viewer drag with a mouse to change the camera position.

Papervision Help
I been toying with papervision on and off for the past month and i've made some progress. The last thing i'm trying to figure out is panning the camera per viewers mouse movement. Something like this, but instead of shifting the plane in this example, I want the camera to hover around. I'm not sure if this requires the hover method.

http://www.dehash.com/?page_id=151

Below is a basic setup with a single plane. In the loop function, what do I formula do I add to make the camera hover? After I figure this out, i'll be set for a while.





import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
import org.papervision3d.materials.special.*;
import org.papervision3d.materials.shaders.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.lights.*;
import org.papervision3d.render.*;
import org.papervision3d.view.*;
import org.papervision3d.events.*;
import org.papervision3d.core.utils.*;
import org.papervision3d.core.utils.virtualmouse.VirtualM ouse;
import caurina.transitions.Tweener;

var viewport:Viewport3D = new Viewport3D(0, 0, true, true);
addChild(viewport);

var renderer:BasicRenderEngine = new BasicRenderEngine();

var scene:Scene3D = new Scene3D();

var camera:Camera3D = new Camera3D();
camera.zoom = 11;
camera.focus = 100;

var mam:MovieMaterial = new MovieMaterial(face);
mam.interactive = true;
mam.smooth = true;
mam.animated = true;
mam.doubleSided = true;

var plane:Plane = new Plane(mam, 337, 501, 6, 6); //texture, width, height, num of poly's...
scene.addChild(plane);
var planeRotation= plane.rotationY;
addEventListener(Event.ENTER_FRAME, loop);
function loop(e:Event):void
{


//camera.hover??


renderer.renderScene(scene, camera, viewport);
}

Papervision 2.0 Help
I downloaded [ http://www.rockonflash.com/papervisi...hPhongDemo.fla ] and opened it in Flash. Then I got the error:

Vertices3D.as, Line 195
1000: Ambiguous reference to Vertex3D.

What's wrong? :O It SHOULD work when it is downloaded.
I have also problems with my own project. When I try to run that, I get this:

MovieScene3D.as, Line 129
1020: Method marked override must override another method.

The problems seems to be in the PaperVision files. But how?
It can't be errors in them, so how do I fix this? Please help! It's very important!

Papervision Help
I'm trying to make a cube and put 4 different bitmaps (in the library) on the side. I've seen a couple tutorials on the web that do this. I;ve doneloaded a few of them and they don't work. Here is what I have so far...it doesn't work either.

import org.papervision3d.objects.*;
import org.papervision3d.materials.*;
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import flash.events.MouseEvent;


//sprite
var container:Sprite = new Sprite();
container.x = stage.stageWidth * 0.5;
container.y = stage.stageHeight * 0.5;
addChild(container);

//scene
var scene:Scene3D = new Scene3D(container);

//camera
var camera:Camera3D = new Camera3D();
camera.x=3000;
camera.y=-300;
camera.zoom=10;
camera.focus=100;

var ML:MaterialsList = new MaterialsList(

{
front: new BitmapAssetMaterial("p1"),
back: new BitmapAssetMaterial("p2"),
right: new BitmapAssetMaterial("p3"),
left: new BitmapAssetMaterial("p4"),
top: new BitmapAssetMaterial("p4"),
bottom: new BitmapAssetMaterial("p4")
}

);


//create cube
//var cube1:Cube = new Cube(ML, 400, 400, 400, 9, 9, 9);

//add to scene
//scene.addChild(cube1);
scene.renderCamera(camera);

Papervision 2.
Hey,

well i downloaded a script for coverFlow, but it think something is wrong in the code, it uses papervision 2, and tweener.

Here is the code:

Code:
/**************************************
title: CoverFlow knockoff
author: John Dyer (http://johndyer.name)
license: MIT
updated: 12/12/2007
*************************************/

package
{
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.geom.*;
import flash.system.LoaderContext;

import flash.text.*;

import org.papervision3d.cameras.*;
import org.papervision3d.scenes.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
import org.papervision3d.events.*;
import org.papervision3d.core.proto.*;
import org.papervision3d.core.*;
import caurina.transitions.Tweener;

import flash.ui.Keyboard;
import CoverFlowEvent;



public class CoverFlow extends EventDispatcher
{

var showReflections:Boolean = true;

var planes:Array = [];
var reflectedPlanes:Array = [];
var tweens:Array = [];
var reflectedTweens:Array = [];
var currentPlaneIndex:Number = 0;

var planeAngle:Number = 65;
var planeSeparation:Number = 65;
var planeOffset:Number = 60;
var selectPlaneZ:Number = -180;
var tweenTime:Number = 0.8;
var planeWidth = 265;
var planeHeight = 200;
var transition:String = "easeOutExpo"; //"easeOutSine";


var stage:Stage;
var camera:Camera3D;
var scene:Scene3D;
var coverFlowData:Array;

var textTitle:TextField = null;


public var needsRender:Boolean = true;

public function CoverFlow(stage:Stage, camera:Camera3D, scene:Scene3D, coverFlowData:Array=null, showReflections:Boolean=true, planeWidth:Number=265, planeHeight:Number=200)
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener( MouseEvent.MOUSE_WHEEL, mouseWheelHandler);


this.stage = stage;
this.scene = scene;
this.camera = camera;
this.coverFlowData = coverFlowData;
this.showReflections = showReflections;
this.planeWidth = planeWidth;
this.planeHeight = planeHeight;

textTitle = new TextField();
textTitle.autoSize = TextFieldAutoSize.CENTER;


var textStyle:TextFormat = new TextFormat("Arial", 12, 0xffffff);
textStyle.align = "center";
textTitle.defaultTextFormat = textStyle;
stage.addChild(textTitle);
textTitle.y = 8;
textTitle.x = 700/2;


if (coverFlowData != null)
loadData();
}

var currentIndex:Number = 0;

public function loadData(coverFlowData:Array=null) {

if (coverFlowData != null)
this.coverFlowData = coverFlowData;

currentIndex = 0;

loadNextPlane();
}

private function loadNextPlane() {

textTitle.text = "Loading images ... " + (currentIndex+1) + " of " + coverFlowData.length;

var loaderContext:LoaderContext = new LoaderContext ();
loaderContext.checkPolicyFile = true;

var imageLoader:Loader = new Loader();

imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, imageLoaded );
imageLoader.load( new URLRequest( coverFlowData[currentIndex].imageUrl ), loaderContext );

}

function imageLoaded (e : Event ) : void {

var plane:Plane = null;

var loadedBmp : Bitmap = e.target.content as Bitmap;
var bmp : BitmapData = loadedBmp.bitmapData;

var newWidth:Number = planeWidth;
var newHeight:Number = planeHeight;


if (bmp.width > bmp.height) {
newWidth = planeWidth;
newHeight = bmp.height/bmp.width *planeWidth;
} else {
newWidth = bmp.width/bmp.height * planeHeight;
newHeight = planeHeight;
}

var planeMaterial:BitmapMaterial = null;

if (showReflections) {


var bmpWithReflection:BitmapData = new BitmapData(bmp.width, bmp.height*2, false, 0);

// draw a copy of the image
bmpWithReflection.draw(bmp);

// draw the reflection, flipped
var alpha:Number = 0.3;
var flipMatrix:Matrix = new Matrix(1, 0, 0, -1, 0, bmp.height*2 + 4);
bmpWithReflection.draw( bmp, flipMatrix, new ColorTransform(alpha, alpha, alpha, 1, 0, 0, 0, 0) );


// Fade
var holder:Shape = new Shape();
var gradientMatrix:Matrix = new Matrix();
gradientMatrix.createGradientBox( bmp.width, bmp.height, Math.PI/2 );

holder.graphics.beginGradientFill( GradientType.LINEAR, [ 0, 0 ], [ 0, 100 ], [ 0, 0xFF ], gradientMatrix)
holder.graphics.drawRect(0, 0, bmp.width, bmp.height);
holder.graphics.endFill();

var m:Matrix = new Matrix();
m.translate(0, bmp.height);
bmpWithReflection.draw( holder, m );


planeMaterial = new BitmapMaterial(bmpWithReflection);
planeMaterial.smooth = false;
planeMaterial.interactive = true;

plane = new Plane( planeMaterial, newWidth, newHeight*2, 4, 4);
plane.y = -planeHeight/2;

} else {

planeMaterial = new BitmapMaterial(bmp);
planeMaterial.smooth= true;

plane = new Plane( planeMaterial, newWidth, newHeight, 4, 4);
}

// stack the images
plane.z = (currentIndex+1 < coverFlowData.length/2) ?
(coverFlowData.length/2-currentIndex)*10 :
-(currentIndex - coverFlowData.length/2) * 10;

trace(currentIndex + ": " + plane.z);
// delete the loaded iamge
bmp.dispose();

plane.extra = {planeIndex : currentIndex, height: newHeight};
scene.addChild(plane);
planes.push(plane);


plane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, planeClicked);

if (currentIndex < coverFlowData.length-1) {
currentIndex++
loadNextPlane();

} else {
camera.lookAt( new DisplayObject3D() );
shiftToItem(5);
}
}

private function goToLink() {
var request:URLRequest = new URLRequest( coverFlowData[currentPlaneIndex].clickUrl );
navigateToURL(request, "_blank");
}

private function planeClicked(e:InteractiveScene3DEvent) {

var index:Number = e.displayObject3D.extra.planeIndex;
trace(index);
// don't click on the reflection
if (!showReflections || e.y <= e.displayObject3D.extra.height ) {

if (index == currentPlaneIndex) {
goToLink();

} else {
shiftToItem(index);

}
}
}

private function keyDownHandler(ev:KeyboardEvent) {

switch (ev.keyCode) {
case Keyboard.LEFT:
moveLeft();
break;
case Keyboard.RIGHT:
moveRight();
break;

case Keyboard.UP:
case Keyboard.PAGE_UP:
shiftToItem(0);
break;

case Keyboard.DOWN:
case Keyboard.PAGE_DOWN:
shiftToItem(planes.length-1);
break;

case Keyboard.ENTER:
goToLink();
break;
}
}

private function mouseWheelHandler( event :MouseEvent ):void
{

if (event.delta < 0)
moveRight();
else
moveLeft();
}

public function moveLeft() {

if (currentPlaneIndex > 0) {
shiftToItem(currentPlaneIndex-1);
}
}

public function moveRight() {
if (currentPlaneIndex < planes.length -1) {
shiftToItem(currentPlaneIndex+1);
}
}

public function shiftToItem(newCenterPlaneIndex) {

needsRender = true;

if (currentPlaneIndex == newCenterPlaneIndex)
return;

for (var i:Number=0; i<planes.length; i++) {

var plane:Plane = planes[i] as Plane;


// smoothing only the main one or the one immediately left or right
if (i >= newCenterPlaneIndex-1 && i <= newCenterPlaneIndex+1) {
plane.material.smooth = true;
} else {
plane.material.smooth = false;
}


if (i == newCenterPlaneIndex) {

tweens[i] = Tweener.addTween(plane,
{x: 0,
z: selectPlaneZ,
rotationY: 0,
time:tweenTime,
transition:transition,
onComplete: function() { needsRender = false; } });



// all the ones to the left
} else if (i < newCenterPlaneIndex) {

tweens[i] = Tweener.addTween(plane,
{x: (newCenterPlaneIndex - i+1) * -planeSeparation - planeOffset,
z: 0,
rotationY: -planeAngle,
time:tweenTime,
transition:transition});


// all the ones to the right
} else {

tweens[i] = Tweener.addTween(plane,
{x: ((i-newCenterPlaneIndex+1) * planeSeparation) + planeOffset,
z: 0,
rotationY: planeAngle,
time:tweenTime,
transition:transition});


}


}


currentPlaneIndex = newCenterPlaneIndex;

textTitle.text = coverFlowData[currentPlaneIndex].title;

dispatchEvent(new CoverFlowEvent(CoverFlowEvent.ITEM_FOCUS, newCenterPlaneIndex));

}
}
}
If you want to see the full thing look at:
http://johndyer.name/?tag=/papervision

Chris

Papervision 3D 2.0
Hi there i am new to the classes of actionscript 3.0 and it is something i would like to learn how to use. i found a tutorial for using papervision3d 2.0 however i am unsure how to download the classes off of google code and the tutorial presumes you already know how to do it. any advice you can give will be very greatly appreciated.

Thankyou in advance.

Darren Rutter.

Papervision
Hi,

ive got a problem with papervision 2.0..

i get an error in the TriangleMaterial.as file it says:
1020:Method marked override must override another method.

the as file states:

package org.papervision3d.core.material
{

/**
* @Author Ralph Hauwert
*/

import flash.display.BitmapData;
import flash.display.Graphics;
import flash.geom.Matrix;

import org.papervision3d.core.geom.renderables.Triangle3D ;
import org.papervision3d.core.proto.MaterialObject3D;
import org.papervision3d.core.render.data.RenderSessionDa ta;
import org.papervision3d.core.render.draw.ITriangleDrawer ;

public class TriangleMaterial extends MaterialObject3D implements ITriangleDrawer
{
public function TriangleMaterial()
{
super();
}

override public function drawTriangle(face3D:Triangle3D, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
{

}

}
}


thnx

Papervision Help?
i have a plane 250x250 on which i load an image 100x100 using the loader class,the problem is the image gets stretched on the whole plane...
is there any way to have the image loaded with it's right dimensions?

Help With Papervision
I've just been tinkering with it a bit and would like to know if their is some sort of setting to have like a child of a Plane so if the parent moves, the child does also? Here is a link to what I have now:

http://ronnieswietek.com/hosted/as3tree/tree.swf

I am going for a diorama look and want it to look as if that wood in the back is holding the tree up. The problem is the way it is rotating is not working. Here is my code:

ActionScript Code:
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.render.BasicRenderEngine;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.view.Viewport3D;
import org.papervision3d.materials.BitmapFileMaterial;

var viewport:Viewport3D;
var scene:Scene3D;
var camera:Camera3D;
var tree:Plane;
var stand:Plane;
var renderer:BasicRenderEngine;

init3D();
createPlane();
addEventListeners();

function init3D():void
{
    // VIEWPORT
    viewport = new Viewport3D(0, 0, true, false);
    addChild(viewport);
    //
    // RENDERER
    renderer = new BasicRenderEngine();
    //
    // SCENE
    scene = new Scene3D();
    //
    // CAMERA
    camera = new Camera3D();
    camera.zoom = 11;
    camera.focus = 100;
}

function createPlane():void
{
    BitmapFileMaterial.LOADING_COLOR = 0x0000FF;
    BitmapFileMaterial.ERROR_COLOR = 0xFF0000;
    //
    var treeMaterial:BitmapFileMaterial = new BitmapFileMaterial("tree-side-1.png");
    var standMaterial:BitmapFileMaterial = new BitmapFileMaterial("wood.png");
    treeMaterial.doubleSided = true;
    standMaterial.doubleSided = true;
    //
    tree = new Plane(treeMaterial, 191, 175, 5, 5 );
    stand = new Plane(standMaterial, 23, 80, 5, 5 );
    //
    scene.addChild(stand);
    scene.addChild(tree);
    stand.x = 30;
    stand.y = -60;
    stand.z = 0;
    stand.rotationX = -45;
}

function addEventListeners():void
{
    addEventListener(Event.ENTER_FRAME, __onEnterFrame);
}

function removeEventListeners():void
{
    removeEventListener(Event.ENTER_FRAME, __onEnterFrame);
}


function __onEnterFrame(e:Event):void
{
    tree.rotationY = viewport.mouseX / 2;
    stand.rotationY = viewport.mouseX / 2;
    renderer.renderScene(scene, camera, viewport);
}

Papervision Help
I been toying with papervision on and off for the past month and i've made some progress. The last thing i'm trying to figure out is panning the camera per viewers mouse movement. Something like this, but instead of shifting the plane in this example, I want the camera to hover around. I'm not sure if this requires the hover method.

http://www.dehash.com/?page_id=151

Below is a basic setup with a single plane. In the loop function, what do I formula do I add to make the camera hover? After I figure this out, i'll be set for a while.





import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
import org.papervision3d.materials.special.*;
import org.papervision3d.materials.shaders.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.lights.*;
import org.papervision3d.render.*;
import org.papervision3d.view.*;
import org.papervision3d.events.*;
import org.papervision3d.core.utils.*;
import org.papervision3d.core.utils.virtualmouse.VirtualM ouse;
import caurina.transitions.Tweener;

var viewport:Viewport3D = new Viewport3D(0, 0, true, true);
addChild(viewport);

var renderer:BasicRenderEngine = new BasicRenderEngine();

var scene:Scene3D = new Scene3D();

var camera:Camera3D = new Camera3D();
camera.zoom = 11;
camera.focus = 100;

var mam:MovieMaterial = new MovieMaterial(face);
mam.interactive = true;
mam.smooth = true;
mam.animated = true;
mam.doubleSided = true;

var plane:Plane = new Plane(mam, 337, 501, 6, 6); //texture, width, height, num of poly's...
scene.addChild(plane);
var planeRotation= plane.rotationY;
addEventListener(Event.ENTER_FRAME, loop);
function loop(e:Event):void
{


//camera.hover??


renderer.renderScene(scene, camera, viewport);
}

Help With Papervision
Hi

I have movieclip which is 1024w 768 h and I'm adding it to the stage throught papervision.

So i place the Movieclip into a movieAssetMaterial and apply that material to plane object then add it to the stage with the proper properties. Well it adds the plane to the stage just fine but it's alot smaller even though I have the planes height and width to match my movieclips? I need help to on to figure why it's shrinking down my movieclip. Thanks

PaperVision 1.9
Hi all,

I have been scouring the net for an example of...

How to give interactivity to a button within a MovieAssetMaterial on a cube face using Papervision 1.9 (Phunky Branch). If anyone knows of a good example or can help me that would be amazing. I just want to add MOUSE_OVER and MOUSE_UP events. Thanks!

Papervision 2.0?
Over the weekend I played with AS3 for the first time, and I feel I may as well play with PV3D for the first time too

I've heard Papervision 2.0 mentioned, though strangely, when I go to the actual papervision google code page, there is no papervision 2.0, only 1.5 :S

Where can one procure Papervision 2.0? And is advisable to try this as a Papervision noob? Or stick with 1.5 to start?

Cheers,
Joe

Is Anyone Using Papervision?
Has anyone on these forums worked with papervision at all? I have a client wanting me to create a website for them using some of the capabilities of papervision. This is the first I'd heard of papervision, but have since started looking into it and learning a little bit about it. It seems to be a bit over my head, but I want to take on the project and do whatever I can to get it done, even if it means finding someone else who is more technically savvy than me to help me complete this project.... wondering if anyone on these boards has any experience with papervision.. Do you have any idea if it is something that someone who is not an AS master, but rather more of an intermediate user can manage?

Just wondering if there is anyone out there who is using this technology, and has any words of wisdom before I decide whether or not to take on this project...Also, I am still running Flash 8. Is it much harder to use it with AS2 than AS3?

Thanks!
Elliott

Papervision AS2 Help
Hi, I'm knew to the forum and was wondering if anyone could point me in the right direction. Essentially I am looking for a detailed tutorial on using Papervision for AS2, something that will explain what each property and element does. I have been to the Papervision website and gotoAndLearn(), and neither have any information on the AS2 version of Papervision. Any help would be greatly appreciated.

Thanks,
-mdelguidice-

Papervision Vs. CS4 3D
Hi! I'm trying to build a spinning cube with the built-in cs4 AS3 3D features, and facing a simple z-sorting problem without getting any answer. So I'm thinking it's not so simple.

So, in the end, what do you think about new features? Provided that I only do simple things, not 3D modeling at all, from an AS3 point of view, or perspective (yes, I'm playing wiith words ) should I continue using Papervision? Isn't it a little smarter? What is better?

AS3 - Papervision IE Bug?
im making a flash thing for my myspace, in my spare time..and i came across this issue..

http://www.myspace.com/millerinabottle

if you look in firefox, it looks fine, same with the standalone flash player. but look at it in ie.. it seems like the registration point is way off.. any thoughts? im confused

Papervision 3d?
I'm fairly new at this so I was just wondering if papervision3d requires flex to use or if I can use it with actionscript 2.0 in flash 8 or cs3?

Papervision Help
Hey, so i'm setting up a papervision project, and pulling the images through xml and for loop. How ever I cant quite figure out how to target my images once they have been loaded. The loop and xml work the way they should, but can I then control each image independently? And then it it common practice to call renderer.renderScene(scene, camera, viewport); in a ENTER_FRAME? Thanks for any help.

Here what I have so far. Stopped to figure out why I cant target! Thanks!

Code:

import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;
import org.papervision3d.materials.special.*;
import org.papervision3d.materials.shaders.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.lights.*;
import org.papervision3d.render.*;
import org.papervision3d.view.*;
import org.papervision3d.events.*;
import org.papervision3d.core.utils.*;
import org.papervision3d.core.utils.virtualmouse.VirtualMouse;



var xml:XML;     
var xmlList:XMLList;
var plane:Plane;
var scene:Scene3D;
var camera:Camera3D;
var viewport:Viewport3D;
var renderer:BasicRenderEngine;
var face2:Face;
var mat:BitmapFileMaterial;

var xmlLoader:URLLoader = new URLLoader();     
xmlLoader.load(new URLRequest("paper.xml"));   
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);

function xmlLoaded(event:Event):void
{
   xml = XML(xmlLoader.data);    //new xml
   xmlList = xml.children();  //xml to xmlList

   viewport = new Viewport3D(0/*width*/ ,0 /*height*/ ,true /*autoscale*/ ,true/*interactive*/)
      viewport.buttonMode = true; //adds handCursor
      addChild(viewport);     //container for 3d scene
   renderer = new BasicRenderEngine(); //creates renderer for scene
   scene = new Scene3D(); //creates new scene
   camera = new Camera3D();//creates new cmaera
      camera.zoom = 8;
      camera.focus = 100;

for(var i:uint = 0; i < xmlList.images.*.length(); i++)
{
   face2 = new Face();
   mat = new BitmapFileMaterial(xmlList.images.image[i]);
      mat.interactive = true // is interactive
      mat.smooth = true //antialias material
      mat.doubleSided = true;

   plane = new Plane(mat, /*material*/ 150, /*width*/ 150, /*depth*/10,/*triangles*/ 10)  ; /*triangles*/
      plane.x = i*160
      plane.y = 0
      plane.z = 0
   scene.addChild(plane); //adds object to scene
   addEventListener(MouseEvent.CLICK, getInfo);
}
   renderer.renderScene(scene, camera, viewport);         // scene, camera, viewport
}






function getInfo(event:MouseEvent):void //used to get info, and render screen
{
renderer.renderScene(scene, camera, viewport);         // updates scene, camera, viewport

   //if(event.keyCode == 32)
/*trace("name: " + event.target.name)
trace("id: " + event.target.id)
trace("extra: " + event.target.extra)
trace("faces: " + event.target.faces)
trace("material: " + event.target.material)
trace("materials: " + event.target.materials)
trace("parent: " + event.target.parent)
trace("rotationX: " + event.target.rotationX)
trace("rotationY: " + event.target.rotationY)
trace("rotationZ: " + event.target.rotationZ)
trace("x: " + event.target.x)
trace("y: " + event.target.y)
trace("z: " + event.target.z)
trace("view Matrix 3D: " + event.target.view)*/
}

oh and sidenote, this bottom function I was using to try and figure out all the properties, so It's just a function containing all traces)

Papervision 3D Help
I have recently installed Papervision 3D and am now following some tutorials to see how to use it.

I keep having a problem that says;
"Warning: 5004: The file 'playerglobal.swc', which is required for typechecking ActionScript 3.0, could not be found. Please make sure the directory '$(AppConfig)/ActionScript 3.0/Classes' is listed in the global classpath of the ActionScript 3.0 Preferences."

Please help!

Papervision API ?
Where can I get the Papervison classes?I don't have a clue how to use Subversion.

Papervision 2.0
Hi All

Im just trying to get to grips with papervision 1.5 but ive been following a tutorial on how to make an interactive cube and have just realised that it used papervision 2.0. How can i get a hold of this new papervision? Ive been to google code and looked at the folders for the great white but it goes quite deep.

I'm probably being dumb but how do I update my papervision?

Thanks

IP Camera
How can I capture media from a streaming IP camera and make it show in my flash movie? Im using windows media server to impliment the videostream.

Camera
I´ve tested all the things that i can think. ..but doesn't work.

var my_video:Video; //my_video is a Video object on the Stage
var active_cam:Camera = Camera.get();
active_cam.setQuality(0,100);
active_cam.setMode(320, 240, 30);
my_video.smoothing = true;
my_video.attachVideo(active_cam);

i´m using this script. two wird things occurs:

first: in line 3 if i set the fps (30) in setMode the video doesn't work ...if i let empty the video appears.

if i create another Video in stage and another Camera instance, and don't set the fps in none of them the webcam appears, BUT, sometimes if i set the fps in both of them. ..it works, sometimes NO...

can u help me?

thanks and sorry about the indian english . ..don't mention to ruin the language....

Web Camera
Hi there. I want to create some site and what i need is such thing: i am connecting to user's web cam using Camera.get() method to grab user's video from web cam anf attaching it to my movie. SO the question is: can I store this video on serverside without using Flash Server? May be using some PHP - Flash technology? Here some guy tells that he knows the way to create something that looks like my problem but did not posted any code. Thanx

Using Camera
hello friends,
I want to make web application which will capture the video from the camera attached in client's machine.I have read that it is possible to racord stream from the camera using media server.Is it actually requires flash media server.?
is there any other option to record the video without using Media server?

can you help me to find a tutorial regarding this.

pls help me...
regards

Using HD Camera On FMS 3
Hi guys, I have a Sony FX-1, I already try several software to record HD Video, everything works perfect, but when I try to publish the live video, the Flash Media Encoder do not recognize my camera, it says something about the resolution is not supported.... , then the only way to use that camera with Flash Media Encoder 2 is turning on the HD->DV Conversion option on the FX-1 , it means: works on non HD mode, then Media Encoder recognize the camera as Microsoft DV Camera, and the maximum resolution is 720x480 at 30fps.

Please if somebody knows a way to use High Definition Camera with FME 2, and publish High Definition live video on Media Server 3, please let me know.

Thanks



























Edited: 01/26/2008 at 04:40:23 PM by avalverde

Using Camera
hello friends,
I want to make web application which will capture the video from the camera attached in client's machine.I have read that it is possible to racord stream from the camera using media server.Is it actually requires flash media server.?
is there any other option to record the video without using Media server?

can you help me to find a tutorial regarding this.

pls help me...
regards

Ip Camera - FMS
Hi,

I want to know how to use an ip camera and Flash Media Server. I need to stream video from the camera. I dont know if there is a way to run a swf from the cameras server or any other solutions.

Please give me a direction.

thanks in advance.

WHICH CAMERA?
I have been searching for information about what cameras work with FME for what seems like forever. The compatibility list is three years old and most of the items in that list are not being produced anymore.

I am using a LInksys Quickcam Pro5000. It works fine. Except I need to zoom it and it has no zoom. I have seen mention on this forum of creating a list of equipment. I think that such a list should include (besides the camera model) the interface used. I hope that you think it is time to go ahead and do that.


Warren

Best Camera?
Hey everyone,
I'm wondering if anyone has any idea what the best video camera to use for creating flash videos (with greenscreens) would be. I want to take a video for a client of him, and then crop him out (with a greenscreen) so that he's in the virtual website. Just want the best quality.
Thanks everyone,
Mat

Using Camera
hello friends,
I want to make web application which will capture the video from the camera attached in client's machine.I have read that it is possible to racord stream from the camera using media server.Is it actually requires flash media server.?
is there any other option to record the video without using Media server?

can you help me to find a tutorial regarding this.

pls help me...
regards

Camera Pan
Quick question - anyone know how to make an animation where the camera pans up or down an image?

Example being - shot of big ben then the camera pans up to the top, which appears off the stage.

Any ideas, or links would be fab.

Thanks

George

Top-down Camera
Hey, I am working on a top-down shooter (AS 3) and I would like it to have a moving camera which follows the player. Ideally I would like the camera to not be 100% rigid, thus only moving when the player gets somewhat near the edges. The level itself would be basically a big square that is about 4 times as big as the stage. Any tips/tutorials/code? Thanks!

Help With Camera
Hey guys, have a problem that i have been trying to solve on my own for quite some time now, still can't do it : /

i need to add a camera that can track my car as you drive it around... hope you can help me add one.

I just need help adding it properly , i can work out the tracking myself, if you don't have some spaced out way to do it...

i know there are some minor glitches, or maybe some bigger ones, i'll work it out later, the modeling isn't all done yet either, so no need to tell me^^

the file is far too big to add the source... so i'll post the code right here. Let me know if you want the source, i can mail it to you.

k, here goes.

------------------------------------------------

import flash.display.*;
import flash.net.URLRequest;

import flash.events.*;
import flash.ui.*;
import sandy.core.Scene3D;
import sandy.core.data.*;
import sandy.core.scenegraph.*;
import sandy.materials.*;
import sandy.materials.attributes.*;
import sandy.primitive.*;
import sandy.util.*;
import sandy.events.*;

import flash.events.Event;

import org.papervision3d.core.math.Number3D;
import org.papervision3d.materials.ColorMaterial;
import org.papervision3d.materials.WireframeMaterial;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.objects.primitives.Sphere;
import org.papervision3d.view.BasicView;

import caurina.transitions.*;

var speed:Number = new Number
speed = 2;
var speed2:Number = new Number
speed2 = 1;

stage.scaleMode = StageScaleMode.NO_SCALE;
var keyPressed:Array = [];

var SR:sideright = new sideright();
var SL:sideleft = new sideleft();
var BB:back = new back();
var WB:windshieldback = new windshieldback();
var WBB:windback = new windback();
var T:top = new top();
var WF:windshieldfront = new windshieldfront();
var H:hood = new hood();
var FF:front = new front();

var ValueX:Number = new Number();
ValueX = -100;
var ValueY:Number = new Number();
ValueY = 0;
var ValueZ:Number = new Number();
ValueZ = -350;
var BackValue:Number = new Number();
BackValue = 0

var container:Sprite = new Sprite();
addChild(container);
container.x = 512
container.y = 600
container.z = 0
container.rotationY = 0

var wheel:tire = new tire();
container.addChild(wheel);
wheel.x = 0 - 50
wheel.y = 0
wheel.z = 0 + 50
wheel.rotationX = 90

var wheel2:tire = new tire();
container.addChild(wheel2);
wheel2.x = 0 + 50
wheel2.y = 0
wheel2.z = 0 + 50
wheel2.rotationX = 90

var wheel3:tire = new tire();
container.addChild(wheel3);
wheel3.x = 0 - 50
wheel3.y = 0
wheel3.z = 0 - 50
wheel3.rotationX = 90

var wheel4:tire = new tire();
container.addChild(wheel4);
wheel4.x = 0 + 50
wheel4.y = 0
wheel4.z = 0 - 50
wheel4.rotationX = 90

SR.x = ValueX + 220;
SR.y = ValueY + 0;
SR.z = 602 + ValueZ;
SR.rotationY = 90

SL.x = ValueX + 0;
SL.y = ValueY + 0;
SL.z = 602 + ValueZ;
SL.rotationY = 90

BB.x = ValueX + 0;
BB.y = ValueY + 80;
BB.z = 0 + ValueZ;
BB.rotationX = 10;
BB.rotationY = 0;
BB.rotationZ = 0;

WB.x = ValueX + 0;
WB.y = ValueY + 70;
WB.z = 110 + ValueZ;
WB.rotationX = 276;
WB.rotationY = 0;
WB.rotationZ = 0;

WBB.x = ValueX + 0;
WBB.y = ValueY + 5;
WBB.z = 148 + ValueZ;
WBB.rotationX = -30;
WBB.rotationY = 0;
WBB.rotationZ = 0;

FF.x = ValueX + 0;
FF.y = ValueY + 85;
FF.z = 601 + ValueZ;
FF.rotationX = -10;
FF.rotationY = 0;
FF.rotationZ = 0;

H.x = ValueX + 0;
H.y = ValueY + 85;
H.z = 602 + ValueZ;
H.rotationX = 267;
H.rotationY = 0;
H.rotationZ = 0;

T.x = ValueX + 0;
T.y = ValueY + 3;
T.z = 390 + ValueZ;
T.rotationX = 269;
T.rotationY = 0;
T.rotationZ = 0;

WF.x = ValueX + 0;
WF.y = ValueY + 5;
WF.z = 383 + ValueZ;
WF.rotationX = 33;
WF.rotationY = 0;
WF.rotationZ = 0;

container.addChild(FF); //9
container.addChild(H); //8
container.addChild(WF); //7
container.addChild(T); //4
container.addChild(BB); //3
container.addChild(WBB); //2
container.addChild(WB); //1
container.addChild(SL); //5
container.addChild(SR); //6

stage.addEventListener ( Event.ENTER_FRAME, enterFrameHandler );
stage.addEventListener (KeyboardEvent.KEY_DOWN, _onKeyDown);
stage.addEventListener (KeyboardEvent.KEY_UP, _onKeyUp);

function _onKeyDown (e:KeyboardEvent):void
{
keyPressed[e.keyCode] = true;
}

function _onKeyUp (e:KeyboardEvent):void
{
keyPressed[e.keyCode] = false;
}
function enterFrameHandler ( event : Event ):void
{
if ((keyPressed[Keyboard.RIGHT]) && (wheel.rotationY < 34))
{
wheel.rotationY += 15/((speed+speed2)/5);
wheel2.rotationY += 15/((speed+speed2)/5);
}
if ((keyPressed[Keyboard.LEFT]) && (wheel.rotationY > -34))
{
wheel.rotationY -= 15/((speed+speed2)/5);
wheel2.rotationY -= 15/((speed+speed2)/5);
}
if (keyPressed[Keyboard.UP])
{
container.rotationY += (wheel.rotationY/(speed/10))
container.z += Math.cos(container.rotationY*(Math.PI/180))*speed;
container.x += Math.sin(container.rotationY*(Math.PI/180))*speed;
//trace("up")
}
if ((keyPressed[Keyboard.UP]) && (speed < 50))
{
speed += 4;
}
if (keyPressed[Keyboard.DOWN])
{
container.rotationY -= (wheel.rotationY/7)
container.z -= Math.cos(container.rotationY*(Math.PI/180))*speed2;
container.x -= Math.sin(container.rotationY*(Math.PI/180))*speed2;
//trace("down")
}
if ((keyPressed[Keyboard.DOWN]) && (speed2 < 20))
{
speed2 += 2;
}
if ((keyPressed[Keyboard.UP] == false) && (speed > 0))
{
speed -= speed/speed
container.rotationY += (wheel.rotationY*(speed/350))
container.z += Math.cos(container.rotationY*(Math.PI/180))*speed;
container.x += Math.sin(container.rotationY*(Math.PI/180))*speed;
}
if ((keyPressed[Keyboard.DOWN] == false) && (speed2 > 0))
{
speed2 -= speed2/speed2
container.rotationY -= (wheel.rotationY*(speed2/100))
container.z -= Math.cos(container.rotationY*(Math.PI/180))*speed2;
container.x -= Math.sin(container.rotationY*(Math.PI/180))*speed2;
}
if (container.rotationY > 360)
{
container.rotationY == 2
}
if (container.rotationY < 0)
{
container.rotationY == 356
}

}

-----------------------------------------------------------------

peace

Have You Tried 3d Camera
Hello to all flashers,
guys have you tried downloading souce file from 3d camera rotation tutorial. well i did and the fla files fail to open!!!
do you have a clue about that?
and ...still i cant figure this camera rotation , need some help!!! pls

Papervision Depths Help
http://www.rarhost.com/download-lx4v5d.html
Download and watch the stone cylinders. Drive towards them and watch what happens. (use the arrow buttons)

When the camera is far away from the cylinders, they are underneath the ground, but they shouldn't be!
How do I fix this? Please help!

Papervision On Top Of Everthing Else
I created some cubes using papervision and made them interactive with InteractiveMovieMaterial. All the interactions and mouse events are fine but when the cubes are overlapping with normal movieclips on the stage, the mouse event can't reach normal buttons/movieclips. Even though normal movieclips look like on top of the cubes but the mouse can't reach them. Please help. Thanks!

Papervision 3D And WOW 3D Physics
Hello everyone,
I am trying to use the WOW engine and render it with Papervision 3D. Does anyone have a sample code of how can I do this?
I saw the tutorials of WOW engine but there they dont make the connection with Papervision.
http://seraf.mediabox.fr/wow-engine/...ne-wow-engine/
I will appreciate if someone can explain me how to connect the two engines in order to view 3D with physics.

Thanks,
Panos

Copyright © 2005-08 www.BigResource.com, All rights reserved