xbox live gold membership generator chrysler financial make a payment jeans for big thighs small waist desktop backgrounds for macbook pro windows xp internet backgammon os x snow leopard server serial number canon powershot sx20 is price in malaysia summer 2010 fashion internships in new york snowboarding games online free guitar hero world tour unlock all songs cheat buy commercial truck tires online yamaha atv parts yamaha outboards troubleshooting samsung lcd tv problems black screen dress up barbie games to play satellite tv for pc elite edition password subaru outback 2010 review canada diamond solitaire engagement rings monster truck games online for kids watch summer heights high episode 1 online samsung lcd tv troubleshooting no picture nikon d5000 prices in dubai limewire basic for mac os x bridezillas where are they now karee rpg maker 2003 rtp cheap dresses for juniors online wireless headphones for ipod touch 1g youtube malayalam movies xbox 720 pics xbox 360 hard drive transfer kit gamestop student doctor network interview feedback compaq mini netbook with intel atom processor used pool tables for sale in michigan download auctioneer addon for wow chrysler town and country parts mitsubishi lancer evolution x mr pizza hut coupons online codes 2001 chrysler sebring convertible parts boots online shopping ireland canon rebel eos manual ds6041 honda civic hatchback parts for sale skype download for blackberry curve 8520 famous love quotes from the notebook healthy pizza dough no yeast pizza hut menu with prices canada wedding invitation wording divorced parents mdi reader download jar software free download for mobile travelocity gnome commercial song cruises only coupons best screensavers for mac snow leopard xbox 360 games on demand hack student loans without cosigner and no credit dvd ripper for mac freeware jcpenney furniture outlet atlanta ga cocktail dresses online cheap youtube video to mp3 converter for mac paid summer internships new york city radiohead tour 2010 north america dodge journey 2009 sxt housecall antivirus helmets for motorcycles in india free playstation network card generator bathroom shower tiles pictures nintendo ds roms free download english canon rebel xti vs nikon d5000 best wireless headphones for tv listening porsche 911 turbo for sale craigslist snowflake patterns crochet backpacks for college radio disney live stream wireless n router review cnet truck mount carpet cleaning machines for sale subaru 22b sti for sale commercial carpet steam cleaning machines hairstyles for women over 60 pictures bride wars soundtrack listen wireless n router range comparison free elementary career interest inventory bmw m3 for sale cheap tires plus locations in florida next radiohead tour 2010 pontiac grand prix gtp supercharged transmission websites like craigslist personals samsung i8000 omnia ii reviews gps maps for blackberry playstation 3 gamestop trade in value barcode scanner java api laptops cheapest uk project portfolio management software open source radiohead tour 2010 uk dating simulation games for girls online porsche carrera gt for sale in us pontiac gto judge 1969 for sale land rover freelander parts diagram samsung plasma tv calibration settings honda motorcycle parts warehouse honda generators eu2000i rpg maker vx sprite generator download snowboarding jackets on sale for women replica daft punk helmets for sale portfolio lighting replacement parts playstation 3 network card generator 2010 mazda 3 replacement parts infinity ward nat strict pc jeep wrangler unlimited for sale in iowa rpg maker vx activation code free nissan skyline gtr for sale in florida dvdfab registration key generator dvdfab 6 keygen download download snowboarding games for pc porsche cayenne 2010 prices hp psc 1610 scanner software for vista autotune 5 download for windows princess cut diamond engagement rings cheap free strip blackjack canon rebel xsi tutorial video murray riding lawn mower parts diagram nintendo ds roms download free xbox live ban wave finished glassjaw tour dates 2010 buy cigarettes online paypal mazda 626 manual transmission guitar pro 6 release date bmw m3 2010 prices mazda reviews mercedes benz amg black edition 2011 cadillac cts v coupe motorcycle repair manuals for free subaru forester parts catalog wedding reception invitation wording examples skype for mac snow leopard movies online streaming new moon dvd ripper for mac snow leopard playstation emulator vista download software architecture in practice ppt shirt printing machines for sale hyundai santa fe 2010 release date samsung mythic a897 price in india rolex prices datejust flash player 9 free download firefox marlboro cigarettes online usa radio stations online free hip hop mitsubishi lancer evolution for sale used volkswagen jetta sportwagen tdi for sale honda financial services phone number handbags leather manufacturer mazda tribute parts diagram wedding vows traditional catholic tattoo quote ideas for girls logo creator software free download canon rebel xti vs nikon d3000 nissan skyline gtr for sale in california tools download free skype video conference 3 people templates for powerpoint games kids snow boots clearance uk jeep grand cherokee reviews 2000 design your own wedding dress online free game xbox tips toyota prius prices paid canon s90 review ken rockwell radiohead tour dates 2010 furnitureland south bankruptcy skinny jeans for men on sale crochet snowflake patterns free pizza hut menu prices us design your own wedding dress for free wedding shower favors homemade 1971 volkswagen beetle convertible for sale wireless bridge linksys wrt160n snowboarding gloves or mittens gps coordinates conversion formula mercedes benz parts online uk jaguar xk8 performance parts snowboard pants sale nikon d60 manual download free land rover defender 110 for sale travelers insurance commercial song worry mobile satellite internet service providers tattoo wedding rings pictures furniture liquidators denver download logo maker freeware sony ereader touch backlight download desktop destroyer 2 chicken carnage how to make pizza dough without yeast and baking powder skype download vista 64 bit cypress hill torrent summer paid internships 2010 design your own engagement ring tiffany prom dresses for prom 2010 modem commands us robotics xbox 360 e73 repair guide roses are red poems funny crocodile monitor lizards for sale marriage counseling infidelity wedding dresses pictures for men dvdfab 6 platinum registration key master bathroom renovation ideas warcraft 3 cd key finder tires plus corporate headquarters sony reader vs kindle vs nook sony vegas 9 serial number free toyota corolla parts catalog playstation emulator mac os x snow leopard guitar tuner drop c tuning mitsubishi lancer ralliart specs skype phone wifi dress up games and makeover games and cooking games tattoo ideas for girls wrist yamaha baby grand piano for sale compaq presario c700 drivers for xp suzuki sidekick parts manual templates for resumes for teachers samsung mythic a897 black wifi porsche cayenne forum italian pizza recipes dough nintendo ds emulator for iphone 3g golf digest hot list 2010 irons toyota oem parts discount winter olympics history wow cataclysm worgen druid forms famous movie quotes from the 80s gps maps free download tomtom wedding ceremony songs christian sony vaio recovery disk free download laminate flooring installation instructions pergo caribbean weather forecast subaru impreza wrx sti for sale in canada toyota forklift parts catalog skype emoticons hidden volkswagen tiguan review top gear cable modem hacking software sofas direct from factory wholesale handbags designer inspired kawasaki mule parts diagram antique harley davidson motorcycle parts sample resume restaurant waitress monitor audio rx8 test logo design freeware download honda civic 2010 price egyptian arts and crafts for kids example career essays tattoos ideas for girls pictures flooring options for screened porch toyota recall gas pedals honda accord forum 7th gen toyota camry recall 2009 guitar tabs for beginners acoustic mazda rx8 performance parts tattoos quotes for guys guitar tuner widget os x suzuki gsxr motorcycles for sale xbox 360 games torrent tracker volkswagen tiguan 2010 release date used mercedes amg for sale yamaha vmax motorcycles for sale harley davidson sportster parts and accessories snowboard pants men toyota corolla floor mat recall football fanatics coupon code 20 off sofa beds for sale in san diego ca sony psp 3000 games free download dresses for prom under 100 dollars latin tattoo quote ideas subaru wrx parts catalog grassroots lobbying examples mac logo creator freeware hyundai genesis coupe review chevrolet tahoe police package for sale toyota center seating chart 3d download gps maps europe lawnmower man game jaguar cars for sale on ebay warcraft 3 cheats reign of chaos suzuki grand vitara parts online subaru forester forum singapore saturn ion performance parts xbox 360 transfer kit gamestop jeans size chart forever 21 beginner guitar chord chart printable winter olympics 2010 tv coverage mercedes parts hardware temperature monitor windows 7 mitsubishi outlander 2010 commercial song craftsman tool boxes on wheels illuminated bathroom mirrors with shelf subaru baja turbo mpg dresses to wear to a wedding games for girls flight attendant mile high club sony vegas free download for mac suzuki samurai engine swap kit jeep grand cherokee 2011 release date yamaha atvs for sale cheap toyota venza 2010 hybrid 1998 mitsubishi eclipse spyder parts guitar chord chart finger position guitar tabs for sweet home alabama for beginners toyota recalls rav4 famous movie quotes quiz toyota body parts used guest bathroom color ideas mercedes benz sl55 amg price xbox 360 elite vs ps3 specs jeanstar jeans macys toyota recall list accelerator installing laminate flooring on stairs video harley davidson accessories for dogs guitar chord chart finger placement free soccer drills for 4 year olds dodge charger srt8 for sale used perfume outlet online snow leopard hackintosh laptop compaq presario v2000 laptop motherboard rpg maker vx resources faces warcraft 3 download free for mac tattoos for guys forearms kitchenaid dishwasher parts diagram mitsubishi parts oem guitar pro torrent mac toyota land cruiser parts and accessories modern wedding invitation wording examples lexus is 250 for sale by owner animation factory essential collection honda generators prices tattoo quote ideas for men famous funny poems about school software testing tutorials for beginners pdf chrysler 300 accessories canada cruises only coupon code garden of eden key west web cam summer internships for college students 2010 invoice templates free microsoft word jeep wrangler unlimited hardtop volkswagen gti 2010 price volkswagen beetle convertible pink mitsubishi evo 8 mr for sale winter jackets for men sale winter bells game cheat sony ericsson equinox reviews samsung moment vs htc hero comparison replica cowboy guns computer science resume objective dvdfab registration key 6 harley oem parts online 2000 jaguar s type parts clothes horse store samsung omnia i910 firmware update download snowflake patterns photoshop saturn vue transmission problems canon powershot a480 manual pdf biketoberfest 2009 pictures famous deaf people in history glass bongs online store gamecube emulator mac os x 2005 volkswagen beetle convertible for sale mitsubishi eclipse spyder body kits kia sportage 2008 problems coach shoes on sale at dillards wedding dresses pictures indian desktop wallpaper for macbook pro software manual testing interview questions hair color pictures highlights guitar chord chart poster famous short funny poems dvd shrink free download for mac mattress firm clearance center toyota tacoma lift kits 2wd world war 2 replica cap guns toyota camry parts for sale warcraft 2 tides of darkness mac download unblock facebook proxy at school ford trucks for sale in florida mitsubishi electric air conditioning remote control jeep grand cherokee 2011 video nissan versa hatchback reviews 2010 laminate flooring installation costs toyota camry 2010 recall mercedes e63 amg wagon for sale volkswagen passat cc 2010 famous american ceramic artists facebook layouts for mac empire carpeting reviews tattoo ideas for men quotes biker chicks photos college football recruiting rankings 2011 isuzu trooper engine diagram cable tv providers by zip code daft punk helmets for sale equalizer software mazda rx 8 r3 body kit replica cap guns snow white and the seven dwarfs story script linux commands list pdf free tattoo cursive lettering bathroom wall tile design ideas famous love poems sonnets tattoo script lettering alphabet satellite internet connection wwe dvd release schedule 2010 linux ubuntu beryl download free funny wedding vows write your own compaq presario c700 specifications movie replica airsoft guns compaq presario f700 drivers for windows 7 winter olympics history wiki summer heights high quotes jonah takalua used opel cars for sale in germany bathroom vanities cabinets wireless router booster homemade acoustic guitar scales beginners mercedes benz e63 amg coupe volkswagen parts diagrams software testing life cycle flow chart bicycles for sale at walmart toyota recall 2009 list apartments for rent in philadelphia no credit check why is flash flash revolution down used pool tables for sale dallas tx porsche boxster spyder 2010 guitar power chords chart t shirt dress sewing pattern youtube indian movies songs the jewelry exchange complaints hyundai elantra 2010 mpg compaq presario v6000 specs toyota tacoma used 4x4 mazda 626 parts online list of toyota recall september 2009 warcraft 3 cd key battlenet custom jeep cherokee bumpers famous poems about death and loss furniture factory outlet missouri suzuki sx4 forum toyota tacoma 2010 diesel used mud tires for sale cheap girls pantsed and wedgied pics chrysler sebring parts diagram minivan gas mileage comparison chart mens underwear blogspot vinyl siding colors pictures harley davidson parts made in china dvd decrypter download 64 bit poster templates free powerpoint logo creator freeware mac linux mint download mirror jewelry instructions mercedes benz accessories bluetooth wow cataclysm release date rumors jaguar xj 2010 test drive mitsubishi lancer evolution x for sale online rpg space star wars designer wedding dresses with sleeves famous historical hispanic people rolex submariner price used subaru outback gas mileage guitar chords chart printable facebook login proxy chrysler sebring 2008 owners manual compaq mini 110c netbook canon g11 manual pdf hair color trends winter 2010 samsung impression covers pool table dimensions room size civilian contracting jobs overseas portfolio cases for modeling tattoos for guys chest xbox 720 real pictures recipes for chicken breast strips kitchen islands for sale in toronto bathroom corner vanity cabinets youtube full length movies malayalam volkswagen tiguan 2010 diesel summer internships for high school students 2010 samsung solstice a887 black wifi volkswagen jetta for sale by owner gps maps for blackberry 9000 pontiac grand prix for sale in michigan jaguar xf problems radio stations for sale california minivan with best gas mileage toyota sienna parts catalog sturgis biker chicks photos kawasaki ninja 250r mpg golf shoes closeouts volkswagen gti forum play pocket god online game mitsubishi eclipse parts oem flowers for algernon short story summary laptop computer deals walmart dvdfab 6 key siding colors home depot kitchen islands with breakfast bars subwoofer wiring calculator samsung eternity apps glass bongs and pipes for sale laptop computer deals under 400 wireless internet connection keeps dropping pokemon rpgs online best gps systems for truck drivers subaru legacy oem parts open gps tracker android toyota tacoma gas mileage basketball plays motion offense isuzu npr snow summit lift tickets coupons tattoo ideas for men forearm winter olympics 2014


3. Creating a Papervision Base Template

**UPDATE**
Creating and using this custom template is no longer needed. Papervision now includes a BasicView.as see updated tutorial:
Getting started using BasicView.as
view-update

The first thing that you should do when creating a Papervision 3D project is to create a "Base Class" which will serve as a template to speed up the start of each papervision project you attempt.

1) Create a new FlashDevelop Project

Open up FlashDevelop. On the start page, click on the New: Project... Under the Recent Projects Window.

New Project....

The New Project dialog box will appear. Under Actionscript 3, click Empty Project. Type a name into the Name textbox, and tick the box labelled "Create Directory for Project".

New Project Dialog
(Click To Enlarge)

Click OK to close the dialog box. You will now see your project under the Project window. We need to add a source file to the project.

The first thing you need to do to your project is to import the papervision source so that your program can use it. From the menu at the top, choose Project, then Settings.

The Project settings dialog box will appear. Click on the Classpaths tab and click Add Classpath.

You now need to browse to the folder in which you downloaded the GreatWhite source code in tutorial number 2. Select the greatwhite folder (It should contain directories called org, fl and com) and click OK.

You should now have an icon which looks like a Lego Brick containing the GreatWhite source code under your project.

Project Tree

You now need to make a script to be executed when your program runs. Right click on your project in the project tree and goto Add > New Class.

Add New Class

Name the new class PaperBase.as and click OK. You will now have the Main.as file open in your editor. The code will look like this:

Actionscript:
  1. /**
  2. * ...
  3. * @author Default
  4. * @version 0.1
  5. */
  6.  
  7. package {
  8.    
  9.     public class PaperBase {
  10.        
  11.         public function PaperBase() {
  12.            
  13.         }
  14.        
  15.     }
  16.    
  17. }

This is a blank class. Firstly, we need to make this class compile when we run the project. To do this, right click on Main.as under the project tree and select "Always Compile".

We also need to specify the output SWF location. To do this, from the Project menu, select Properties.

On the Output tab under General, you'll see an input box labeled "Output File". Click Browse and choose where to place the output file.

Now, change the source code so that it looks this (Comments in the code explain each step of the way):

Actionscript:
  1. package  {
  2.     // These lines make differant 'pieces' available in your code.
  3.     import flash.display.Sprite; // To extend this class
  4.     import flash.events.Event; // To work out when a frame is entered.
  5.    
  6.     import org.papervision3d.view.Viewport3D; // We need a viewport
  7.     import org.papervision3d.cameras.*; // Import all types of camera
  8.     import org.papervision3d.scenes.Scene3D; // We'll need at least one scene
  9.     import org.papervision3d.render.BasicRenderEngine; // And we need a renderer
  10.    
  11.     public class PaperBase extends Sprite { //Must be "extends Sprite"
  12.        
  13.         public var viewport:Viewport3D; // The Viewport
  14.         public var renderer:BasicRenderEngine; // Rendering engine
  15.         // -- Scenes -- //
  16.         public var default_scene:Scene3D; // A Scene
  17.         // -- Cameras --//
  18.         public var default_camera:Camera3D; // A Camera
  19.        
  20.         public function init(vpWidth:Number = 800, vpHeight:Number = 600):void {
  21.             initPapervision(vpWidth, vpHeight); // Initialise papervision
  22.             init3d(); // Initialise the 3d stuff..
  23.             init2d(); // Initialise the interface..
  24.             initEvents(); // Set up any event listeners..
  25.         }
  26.        
  27.         protected function initPapervision(vpWidth:Number, vpHeight:Number):void {
  28.             // Here is where we initialise everything we need to
  29.             // render a papervision scene.
  30.             viewport = new Viewport3D(vpWidth, vpHeight);
  31.             // The viewport is the object added to the flash scene.
  32.             // You 'look at' the papervision scene through the viewport
  33.             // window, which is placed on the flash stage.
  34.             addChild(viewport); // Add the viewport to the stage.
  35.             // Initialise the rendering engine.
  36.             renderer = new BasicRenderEngine();
  37.             // -- Initialise the Scenes -- //
  38.             default_scene = new Scene3D();
  39.             // -- Initialise the Cameras -- //
  40.             default_camera = new Camera3D(); // The argument passed to the camera
  41.             // is the object that it should look at. I've passed the scene object
  42.             // so that the camera is always pointing at the centre of the scene.
  43.         }
  44.        
  45.         protected function init3d():void {
  46.             // This function should hold all of the stages needed
  47.             // to initialise everything used for papervision.
  48.             // Models, materials, cameras etc.
  49.         }
  50.        
  51.         protected function init2d():void {
  52.             // This function should create all of the 2d items
  53.             // that will be overlayed on your papervision project.
  54.             // User interfaces, Heads up displays etc.
  55.         }
  56.        
  57.         protected function initEvents():void {
  58.             // This function makes the onFrame function get called for
  59.             // every frame.
  60.             addEventListener(Event.ENTER_FRAME, onEnterFrame);
  61.             // This line of code makes the onEnterFrame function get
  62.             // called when every frame is entered.
  63.         }
  64.        
  65.         protected function processFrame():void {
  66.             // Process any movement or animation here.
  67.         }
  68.        
  69.         protected function onEnterFrame( ThisEvent:Event ):void {
  70.             //We need to render the scene and update anything here.
  71.             processFrame();
  72.             renderer.renderScene(default_scene, default_camera, viewport);
  73.         }
  74.        
  75.     }
  76.    
  77. }

This is heavily commented, so it should explain everything that's happening.

When you run the project, you'll just see a blank screen, this is expected because you haven't added anything to the scene yet.

You can download the source file with the code comments or without using the links below:

Download Now

This file will now be used as the basis of any papervision projects that you do, and with very few lines added to that code, you can get really good results.

*EDIT*

Updated 20th August 2008, now works with the GreatWhite codebase changes

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post

70 Responses to “3. Creating a Papervision Base Template”


  • Sorry – looks like it was finding my old papervision which is odd because I put in a class path that was higher up… now getting a viewport error – will look into that – saw mention of it up above somewhere…

  • Running process: C:\Documents and Settings\cbinion\Local Settings\Application Data\FlashDevelop\Tools\fdbuild\fdbuild.exe “C:\Documents and Settings\cbinion\My Documents\Testing\Testing.as3proj” -ipc e4deff2b-ca3a-485a-badc-d7d90d960ade -compiler “C:\Documents and Settings\cbinion\Desktop\Tests\Flex” -library “C:\Documents and Settings\cbinion\Local Settings\Application Data\FlashDevelop\Library” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes” -cp “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface”
    HINT: Improve your build speed when compiling in FlashDevelop3 by placing the Adobe Flex Compiler Shell in your Flex2 bin path.
    Building Testing
    mxmlc -load-config+=obj\TestingConfig.xml -debug=true -benchmark=false -o obj\Testing633608855776912593
    Loading configuration file C:\Documents and Settings\cbinion\Desktop\Tests\Flex\frameworks\flex-config.xml
    Loading configuration file C:\Documents and Settings\cbinion\My Documents\Testing\obj\TestingConfig.xml
    C:\Documents and Settings\cbinion\My Documents\Testing\PaperBase.as(2): col: 7 Error: Syntax error: package is unexpected.

    package {
    ^

    Build halted with errors (mxmlc).
    Done (1)

    So what does all this mean?

  • Hi, first up, ace tutorials – wish all tuts were as good as this.

    OK now for my questions!
    1. I downloaded the source by following the link at the top of Tutorial 2 but I only have two folders: org and nochump instead of org com and fla. Is this right? Will it still work?

    2. When you specify the output file, does it matter what I call it?

    3.I don’t get main.as when I add a new class, I just get PaperBase.as. I assume this is the same, right?

    I tried to run it and I got a whole mess of errors, so I’m guessing that I have a problem with one of the above.

    Thanks for the great site,

    Wilbo

  • Should I still be getting the Greatwhite thing?

  • It’s better to use this class or to extend BasicView?

  • Hi,

    I’ve been trying to get into Papervision for a while now, and this site is just what I was looking for. These tuts are just awesome. Thanks Luke! But I keep getting 2 errors whenever I compile a project.

    This is what the output says:

    [path\to\]AbstractLightShadeMaterial.as(34): col: 12 Error: Implicit coercion of a value of type String to an unrelated type org.papervision3d.objects:DisplayObject3D.

    [path\to\]CompositeMaterial.as(32): col: 12 Error: Implicit coercion of a value of type String to an unrelated type org.papervision3d.objects:DisplayObject3D.

    I get the same output in Flash CS3.

    I downloaded the last version of Papervision. I was getting this error before, with version 1.5, and upgraded, but with no success. I’m running it on Win XP in a 2Quad CPU Q6600 @ 2.41GHz with 4GB of RAM

    Any clues on what the heck is going on?

  • Hello
    I do not understand these lines

    default_camera = new Camera3D(); // The argument passed to the camera
    // is the object that it should look at. I’ve passed the scene object
    // so that the camera is always pointing at the centre of the scene.

    do you mean in future code you pass this
    maybe like
    default_camera (object to point at)

    sorry is this is a dumb question
    but I am a newbie
    your tut’s rock

  • Great Tutorials!

    I’m very new to papervision and am having trouble getting the blank example to run. this is what is coming up in the output -

    Running process: C:\Program Files\FlashDevelop\Tools\fdbuild\fdbuild.exe “C:\Documents and Settings\tony.dimovski\Desktop\other\PaperBase\PaperBase.as3proj” -ipc bcf670df-9298-4ee6-89ba-7a5f19e02068 -compiler “C:\Documents and Settings\tony.dimovski\Desktop\other\flex2″ -library “C:\Program Files\FlashDevelop\Library”
    Building PaperBase
    mxmlc -load-config+=obj\PaperBaseConfig.xml -debug=true -benchmark=false -o obj\PaperBase633696461124531250
    Exception: The system cannot find the file specified
    Done (1)

    Any help would be VERY VERY appreciated.

    Thanks

  • Let me preface this with “I am new to this and annoying”. Now, I am having a slew of error messages related to type not count or call to a possibly undefined method. Any ideas?

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(20): col: 23 Error: Type was not found or was not a compile-time constant: Viewport3D.

    public var viewport:Viewport3D; // The Viewport
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(21): col: 23 Error: Type was not found or was not a compile-time constant: BasicRenderEngine.

    public var renderer:BasicRenderEngine; // Rendering engine
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(23): col: 28 Error: Type was not found or was not a compile-time constant: Scene3D.

    public var current_scene:Scene3D;
    ^

    C:\Documents and Settings\Tyler Malin\My Documents\paperbase\PaperBase.as(24): col: 29 Error: Type was not found or was not a compile-time constant: CameraObject3D.

    public var current_camera:CameraObject3D;
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(25): col: 31 Error: Type was not found or was not a compile-time constant: Viewport3D.

    public var current_viewport:Viewport3D;
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(27): col: 28 Error: Type was not found or was not a compile-time constant: Scene3D.

    public var default_scene:Scene3D; // A Scene
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(29): col: 29 Error: Type was not found or was not a compile-time constant: Camera3D.

    public var default_camera:Camera3D; // A Camera
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(42): col: 20 Error: Call to a possibly undefined method Viewport3D.

    viewport = new Viewport3D(stage.width, stage.height, true, true);
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(44): col: 20 Error: Call to a possibly undefined method Viewport3D.

    viewport = new Viewport3D(vpWidth, vpHeight, false, true);
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(51): col: 19 Error: Call to a possibly undefined method BasicRenderEngine.

    renderer = new BasicRenderEngine();
    ^

    C:\Documents and Settings\Tyler Malin\My Documents\paperbase\PaperBase.as(53): col: 24 Error: Call to a possibly undefined method Scene3D.

    default_scene = new Scene3D();
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(55): col: 25 Error: Call to a possibly undefined method Camera3D.

    default_camera = new Camera3D();
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(11): col: 38 Error: Definition org.papervision3d.core.proto:CameraObject3D could not be found.

    import org.papervision3d.core.proto.CameraObject3D;
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(13): col: 32 Error: Definition org.papervision3d.view:Viewport3D could not be found.

    import org.papervision3d.view.Viewport3D; // We need a viewport
    ^

    C:\Documents and Settings\Tyler Malin\My Documents\paperbase\PaperBase.as(14): col: 35 Error: Definition org.papervision3d.cameras could not be found.

    import org.papervision3d.cameras.*; // Import all types of camera
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(15): col: 34 Error: Definition org.papervision3d.scenes:Scene3D could not be found.

    import org.papervision3d.scenes.Scene3D; // We’ll need at least one scene
    ^

    C:\Documents and Settings\ \My Documents\paperbase\PaperBase.as(16): col: 34 Error: Definition org.papervision3d.render:BasicRenderEngine could not be found.

    import org.papervision3d.render.BasicRenderEngine; // And we need a renderer
    ^

    Build halted with errors (mxmlc).
    Done (1)

  • Newbie T, got the same problem, right click on your project (“PaperBase”)
    >classpaths, and add path to your papervision code (folder where you have “nochump” and “org”)

    g

  • Excuse me, I find that this example will also work if do not add the parentMovie. We can interact with material directly. So why do we need this hack tech to do the interaction. Is there any advantage?

  • works a charm if you follow the tutorials step by step. Cheers

  • what does that means?

    Error: A file found in a source-path ‘paperBase’ must have the same name as the class definition inside the file ‘PaperBase’.
    Build halted with errors (fcsh).

  • i’m having the same problem of the Tony D.
    Is showing the error:
    ‘Exception: The system cannot find the file specified’

    Thanks!

  • I solved the problem. Just need install de virtual machine java and it works ;D.

  • The first time i tried this things failed.

    turned out i had select ‘Empty project’ under AS2 instead of AS3.

    Silly mistake, but hopefully I’ve saved someone else from repeating it.

  • Hi, i like the intention of this tut., getting anyone started from scratch, except maybe it needs a little update ? I don’t think I am doing anything wrong (hopefully i really don’t) but It does not compile. These are the errors I get:

    E:\AS3\org\papervision3d\objects\DisplayObject3D.as: Error: Can not resolve a multiname reference unambiguously. Papervision3D (from E:\AS3\org\papervision3d\Papervision3D.as) and org.papervision3d:Papervision3D (from E:\AS3\org\papervision3d\Papervision3D.as) are available.

    E:\AS3\org\papervision3d\core\proto\CameraObject3D.as: Error: Can not resolve a multiname reference unambiguously. Papervision3D (from E:\AS3\org\papervision3d\Papervision3D.as) and org.papervision3d:Papervision3D (from E:\AS3\org\papervision3d\Papervision3D.as) are available.

    E:\AS3\org\papervision3d\Papervision3D.as: Error: A file found in a source-path must have the same package structure ”, as the definition’s package, ‘org.papervision3d’.
    Reason: Its dependent file

    I have not changed anything in the provided code, I tried both the most current version of PV3D (Papervision3D_2.1.920) and the the one from the link in the tut2. Both result in the same thing..

    So is it me or is the tutorial outdated and should a change something somewhere ?

    thank you for your effort !

    best regards !

  • thank god. I got blank swf without any errors.

  • How come you have got no constructor in your paperbase class

Leave a Reply


Follow papervision2 on Twitter

Flash and the City banner
2010 Flash And The City Speaker

RSS Feed