Papervision3D CS3 Component Update v1.5

I’m glad I got a chance to get this out before the move to Texas – the performance increase in the engine and the new InteractiveScene3D / materials stuff is a great addition to the component.

I also added a new “tools” panel to the UI where you can generate quick code for either pasting right into the timeline or creating a new class document. The code is copied right to your systems Clipboard. I also made it easier for you to add your own custom templates for use. The only thing you need to do, is add them to the commands/papervision3d/templates folder as “.as” files and the UI will load all files in that directory next time you reopen the panel.

IE:C:\Documents and Settings\[username]\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Commands\Papervision3d\templates

I would suggest creating your own versions and not altering the ones that I put in there. Point being that they may be overwritten in future revisions of the component.

Papervision3D Component v1.5 update notes

* . New 1.5 Papervision3D engine – 40%+ faster than previous version
* . InteractiveScene3D is now default scene type
* . Interactive materials are now enabled via a new “interactive” boolean flag
* . Preloader events for collada preload
* . Error handler events for collada load errors
* . Auto-code generation – create new Class or code for timeline use
* . Create your own custom code templates
* . Scene Rotation option added to component – makes for quick mouse rotation of a collada scene
* . DisplayObject3D mouse events with Interactive materials being used

Get it!

NOTE: I’ve updated the MXP with the fix, but if you already downloaded 1.5, you can just grab this update:
Template update

And check out the updated docs

22 Responses to “Papervision3D CS3 Component Update v1.5”

  1. Dave Says:

    Great effort John I will try this right now

  2. Hebi Flash Blog » Papervision3D 1.5 out et quelques outils/demos Says:

    [...] La version 1.5 publique de Papervision3D est sortie. Ses performances ont été améliorées de 40% et la fonction tant attendue par les développeurs a été implémentée : on peut désormais interagir/ajouter un comportement sur chaque objet dans la scène. Vous trouverez à cette même adresse une démo et son code source. Edit : A noter que son composant pour Flash CS3 a été mis à jour. [...]

  3. reintroducing.com Blogging Receptacle » Blog Archive » PV3D Component Update Says:

    [...] John Grden has updated the Papvervision3D component to version 1.5.  For a list of changes, look here. [...]

  4. Joc Says:

    John, with a Collada file exported from Blender I get errors in the output window
    COLLADA File: simpleman.dae
    DisplayObject3D: null
    DisplayObject3D: Cube
    ReferenceError: Error #1065: Variable @id is not defined.
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::getTexture()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::addMaterial()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseGeometry()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseNode()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseScene()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::buildCollada()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::onComplete()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    any ideas?

  5. Flex Studio» Blog 存档 3D Says:

    [...] Papervision3D Component v1.5 update(http://www.rockonflash.com/blog/?p=60): [...]

  6. reality Says:

    You are a loser, and flash sucks. It’s used for annoying ads, and doing any real development in it is a joke because the tools suck ass.

  7. Emil Korngold Says:

    Hi John, I got the following error when using the document class generator: 1120: Access of undefined property scene3d.

    I fixed that by wrapping the listener settings in a constructor function:

    public function Main()
    {
    scene3d.addEventListener(PV3DColladaScene.SCENE_COMPLETE, handleInit);
    scene3d.addEventListener(PV3DColladaScene.SCENE_LOAD_PROGRESS, handleProgress);
    scene3d.addEventListener(PV3DColladaScene.SCENE_LOAD_ERROR, handleLoadError);
    }

    Thanks for the component! Hope this helps.

  8. droid9 Says:

    Hi, love it all. 2 problems that I’m having are:
    1. After I’ve set everything up my 3d object doesn’t go green in design view.
    2. I can’t get the trace events working. I’m currently receiving no trace messages and no errors of any kind. Everything looks right in the script.

    p.s.
    I noticed the cpu shoots to 40-50% (brand new dual core 4gb ram). Is there any tricks to reduce this?

  9. Daniel Says:

    I’ve been trying to import a COLLADA file from Maya 2008 rather unsuccessfully on a MAC OS X Leopard Client. I’ve installed the plugin for collada on maya and I’ve tried several variations including using the PV Component only and linking to the actionscript classes from google code in one trial and the PV 1.5 folder in a second trial in Flash preferences.

    seems like its not find the classes? I placed them in /Applications/Adobe Flash CS3/Configuration/Actionscript 3.0/Classes
    in that classes dir is where the org, fl, com, and livepreview folders are contained

    This is the output code I get when I select the untitled.dae file I exported from maya

    COLLADA File: untitled.dae
    DisplayObject3D: null
    DisplayObject3D: pCube1
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::buildObject()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseGeometry()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseNode()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::parseScene()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::buildCollada()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::onComplete()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()

    Any help is appreciated, Thanks so much. :D

  10. John Grden Says:

    @Daniel: I’ve taken a screen shot of my maya settings. After messing with it a TON, these settings caused the collada to *work* :)

    http://screencast.com/t/dguyy3×5

    The last option you don’t see in the screen shot is that Xfov is unchecked, and Yfov is checked

  11. Karl Says:

    Hi, I’m new to this and I guess I’m not the only one having problems to get started. I can’t get the pv3d component to work in flash cs3. I don’t see any pv3d component window though extension manager says that everythings alright.

    Any helpfull hints?
    Thanks in advance!

  12. neoriley Says:

    @Karl: In the Flash IDE, go to Window > Other Panels > PV3DPanel

    this will load the Papervision3D panel for you to start working with.

  13. Karl Says:

    @neoriley: Thanks for the tip. I already looked up there and tried several times by erasing the mxp from exchange and reinstalling it, restarting flash, restarting the computer… still doesn’t work.

    Is it possible, that running everything on osx could be a reason?

    Thankfull for help…

  14. Claudiu Says:

    I have problems making the materials interactive and make some panels clickable.

    Can you help me with this? I can’t find anything about the interactive option.

    Thanks

  15. bobby Says:

    I’m trying to export from BLENDER 2.49a a COLLADA and as I’m new to the format, I was wondering if it supports, or if there are any plans to support, bones, textures and mesh transformations, or is this part of the Papervision3D API itself.


Leave a Reply