Papervision: Basics help
- Started
- Last post
- 10 Responses
- felizfeliz
I'm completely lost trying to learn papervision... all the tutorials that I can find seem to be 1 year out of date, don't work and are speaking a foreign language talking about Flex and IDE...
I've downloaded the papervision classes but i'm totally unsure of what to do next. I think I've link the path classes with Flash CS3's prefences.. but i've no way of testing/knowing it's working...
I downloaded the 'hello world' basic example but that's a .as file and i haven't a clue how to get that working either!
isn't there just a nice simple tutorial with an .fla i can look at....I'm so lost... I want to create a similar effect as this: http://lab.publicreative.com/200…
any guidance would be greatly appreciated.
- PonyBoy0
- agree, not sure where you're looking, but papervision is the new shit, it's everywhere.threadpost
- felizfeliz0
Thanks... I looked at that tutorial and downloaded the the .fla.
the problem is...papervision is now at version 2.0
that tutorial refers to 1.5...
is there anything more up to date?
- I just installed Papervision 2.0 and got errors with gotoAndLearn's tutorials which were done in the older version. They must not be very compatible.CyBrain
- acescence0
your problems are not specific to papervision. you need to back up a step and learn the stuff in the flash help files about using external classes
- kumori040
Not sure if this code will show up correctly, but you should be able to copy/paste this into a new document class and use it as your stub code for a new PV3D project.
package {
import flash.display.*;
import flash.events.Event;import org.papervision3d.scenes.Scene3D...
import org.papervision3d.view.Viewport3...
import org.papervision3d.cameras.Camera...
import org.papervision3d.materials.*;
import org.papervision3d.objects.primit...
import org.papervision3d.render.BasicRe...public class Main extends MovieClip {
private var _scene:Scene3D;
private var _camera:Camera3D;
private var _viewport:Viewport3D;
private var _renderer:BasicRenderEngine;
private var _object:Plane;public function Main():void {
initalizePapervision();
createModels();
//
this.addEventListener(Event.ENTE... render, false, 0, true);
}private function initalizePapervision():void {
_viewport = new Viewport3D(0, 0, true, true);
addChild(_viewport);
//
_scene = new Scene3D();
//
_camera = new Camera3D();
_camera.zoom = 11;
_camera.focus = 50;
//
_renderer = new BasicRenderEngine();
}
//
private function createModels():void {
var objSprite:Sprite = new Sprite();
objSprite.graphics.beginFill(0x0... 1.0);
objSprite.graphics.drawRect(0, 0, 200, 200);
objSprite.graphics.endFill();
//
var objMaterial:MovieMaterial = new MovieMaterial(objSprite, true, true);
objMaterial.doubleSided = true;
//
_object = new Plane(objMaterial, 200, 200, 4, 4);
_object.x = 0;
_object.y = 50;
_object.z = 500;
_scene.addChild(_object);
}
//
private function render(e:Event):void {
_object.yaw(1);
_renderer.renderScene(_scene, _camera, _viewport);
}}
}
- tommyo0
I just did / still working on a PV3D project. Mine was all .as based though. I'd recommend what acescence recommended and step back, learn how to use your Document class and build it that way. But basically to get started you need to
1. Import the org file containing PV3D
2. Create instances of Viewport3D(), Scene3D(), Camera3D(), BasicRenderEngine().
3. Add your Viewport to the stage.
4. Add items to your Scenebasically
- monNom0
these tutorials will get you up and running
http://papervision2.com/tutorial…
- CyBrain0
I was just on those and they look great: if you use Flex and want to completely leave Flash behind.
- twokids0
question for papervision experts...
it seems like papervision is really code heavy....if you are a design / timeline based flash developer that can do some basic coding...papervision seems way too advanced...does this make sense?
- CyBrain0
I'm trying to get started with it, I was very encouraged by Lee Brimelow's tutorial. http://gotoandlearn.com/play?id=…
but that is the older version. It the FLA for that tutorial generates errors for papervision 2. I can't find any other good tutorials for papervision 2. If anyone knows of any (FOR FLASH, not Flex), then please post some links.