This site is optimised for Firefox 2.0 or Internet Explorer 7.

papervision Collada problem

User avatar
mimmy
 
Post Count: 32
Joined: Sun Mar 26, 2006 2:44 pm

papervision Collada problem

Postby mimmy on Wed Sep 26, 2007 5:43 pm

hey,

after I saw lee's tutorial about papervision I went experimenting with it, but I got stuk when trying to display a object that I made in maya.
first I tried to export my scene to a .ase file and displayed it in flash using actionscript but the object get's displayed totaly weird.
than i tried to export my scene to a .dae file an tried to display it in flash but this time I get several errors:
Collada material lambert2SG not found.

lambert2SG gets used in maya to indicate ware the material is placed and how big it is (placeholder), so it isn't even a material :?: :?:
or with another scene:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.papervision3d.objects::Collada/::buildObject()
at org.papervision3d.objects::Collada/::parseGeometry()
at org.papervision3d.objects::Collada/::parseNode()
at org.papervision3d.objects::Collada/::parseScene()
at org.papervision3d.objects::Collada/::buildCollada()
at 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()

and than I tried to use the papervisions components (first the newest 1.5.1 I think) (all the settings are filled in properly) and I get the following error:
description: 1119: Access of possibly undefined property sceneRotation through a reference with static type org.papervision3d.components.as3.flash9:PV3DColladaScene.
source: __id0_.sceneRotation=(false);


than I tried the 1.0 components and I again get the Collada material lambert2SG not found error.

I found out thet there are lots of other people with the same problem
I hope someone had the same problem and found out how to make it work.

hope you understand my english :lol:

mimmy

User avatar
knvb1123
 
Post Count: 2108
Joined: Sun Jul 30, 2006 7:57 am
Location: Minnesota, USA
Flash Version: Other Flash version

Re: papervision Collada problem

Postby knvb1123 on Thu Sep 27, 2007 9:01 pm

Why don't you try the papervision mailing lists?
IRC -+- Blog -+- Twitter -+- Flickr

User avatar
mimmy
 
Post Count: 32
Joined: Sun Mar 26, 2006 2:44 pm

Re: papervision Collada problem

Postby mimmy on Fri Sep 28, 2007 12:47 pm

Beacouse I didn't nkow they had that :P :oops:
... I think I found the mailing list

thanks

pythagoras has no avatar
pythagoras
 
Post Count: 1
Joined: Mon Dec 10, 2007 7:15 am

Re: papervision Collada problem

Postby pythagoras on Mon Dec 10, 2007 7:56 am

I don't know if you found your answer, but I've been having the same problem. Although I've been using other 3d apps, and the blender collada exporter, your errors sound very similar, so I'll tell you what I found, and hopefully it helps. First off, I'll be dealing with the PV3d 1.5 collada component. When I export my collada file from blender, it doesn't work, and i get the eroor you describe unless my export settings are very particular. First off, I need to define a material and a UV texture for my object (even if I intend to use another texture later (bitmap or movieclip). When i go to the collada export window, it must be collada version 1.4.0 (or it doesn't work), then I need to have the following options:
Triangles - selected
only export selection - selected
Bake matrices - deselected
Disable Physics - selected
Use relative paths - deselecetd
Use UV Image Mats - selected

Then I export the collada, rename it, then open it in a text editor, and look at the material name it was given (in this case it was generic, like Material001)

then follow these directions ...

http://www.rockonflash.com/blog/?s=collada&paged=3

It seems tricky to get the colladas to work, and some of them need manual editing, to get papervision to like them, (like sketchUP adds "lines" as well as the polygons, that you need to manually edit out of the collada file for use in papervision.)

Nyway, I'm certainly not an expert, but I've been messing around with this quite a bit lately, and will be posting about colladas and Pv3d on http://www.flexcommunity.net
Good Luck

User avatar
mimmy
 
Post Count: 32
Joined: Sun Mar 26, 2006 2:44 pm

Re: papervision Collada problem

Postby mimmy on Fri Dec 28, 2007 1:03 pm

thx pythagoras

I din't get the solution yet (I actualy stoped searching :P )
but I'l try wat you found (don't know when yet)
if I get it to work I'l post it here.

mimmy


Return to Actionscript 3.0

Who is online

Users browsing this forum: No registered users and 4 guests