[Papervision3D] double sided materials from collada file

Gordon Everett gordee at hotmail.co.uk
Sat Aug 16 16:52:11 PDT 2008


 
Dont know about colladas and such like but this might help?
 
http://www.everydayflash.com/blog/index.php/2008/05/05/vertex-animation-papervision3d/Gordon Everett



Date: Sat, 16 Aug 2008 16:47:53 -0700From: allanmon at gmail.comTo: papervision3d at osflash.orgSubject: Re: [Papervision3D] double sided materials from collada file
me too!if you don't mind...another quick question for the guru...Is there a way to tap into the verticies from the imported collada file.  and any primite for that matter.Bascially I want to edit those vertices to move them around a bit.  I've seen bend and ascollada, but bend doesn't work with collada files, and I couldnt find any examples of using ascollada (it might also be overkill).I'm thinking something as simple as having a function that loops through the data and editing the vertices on render tick etc...Cheers,Al
On Sat, Aug 16, 2008 at 4:14 PM, John Grden <neoriley at gmail.com> wrote:

rock on - glad it worked!



On Sat, Aug 16, 2008 at 6:10 PM, allan e <allanmon at gmail.com> wrote:

Thanks for your prompt reply John!  Works beautifully.Congratulations on pv3d! it's wicked!Cheers,Al



On Sat, Aug 16, 2008 at 3:54 PM, John Grden <neoriley at gmail.com> wrote:

you need to leave the file assigned to the 3d object in your 3D application and make sure you give it a name (the material that is)then, with your code, you're missing an argument with addMaterial:var matsList:MaterialsList = new MaterialsList();matsList.addMaterial(materialYouCreated, "nameOfMaterialFrom3DApplication");Then, DAE will see that you provided a material and will use that



On Sat, Aug 16, 2008 at 5:37 PM, allan e <allanmon at gmail.com> wrote:




Hello all!I've finally got my collada model into papervision and it looks good.  It's just a simple polygon mesh.  The thing is, the texture works fine when I embed it via collada.  But when i omit the texture in the 3d app, export like that, then try to pass a material to the collada constructor in flash, it won't work.It gives me:  Collada material  not found.Here's the just of the code:        protected function loadBitmap():void {            material = new BitmapFileMaterial();            material.addEventListener(FileLoadEvent.LOAD_COMPLETE, handleFileLoaded);            material.texture = "flower_text.jpg";            material.oneSide = false;            material.smooth = false;            list = new MaterialsList();            list.addMaterial(material);        }        protected function handleFileLoaded(e:FileLoadEvent):void {            //init collada scaffold object            for (var i:uint = 1; i<7; i++) {                this["test"+i] = new Collada("test.dae", list, 0.2);                this["test"+i].y = i*500;                     scene.addChild(this["test"+i]);            }        }Basically my issue is that I would like the polygon mesh/plane to have the texture on both sides of it - it looks like it's culling.  I'd dont want to have to make it closed as this will use more polygons.  I did see a post with a special doublesidedmaterial class, and I tried to implement it with no avail.  Can anyone give a simple code example of how to import a collada file and assign it a double sided material / bitmap?Pretty pretty please?Cheers all,Al_______________________________________________Papervision3D mailing listPapervision3D at osflash.orghttp://osflash.org/mailman/listinfo/papervision3d_osflash.org-- [ JPG ]_______________________________________________Papervision3D mailing listPapervision3D at osflash.orghttp://osflash.org/mailman/listinfo/papervision3d_osflash.org-- Allan Estabillo647 50 IDEASwww.aedesign.ca_______________________________________________Papervision3D mailing listPapervision3D at osflash.orghttp://osflash.org/mailman/listinfo/papervision3d_osflash.org-- [ JPG ]_______________________________________________Papervision3D mailing listPapervision3D at osflash.orghttp://osflash.org/mailman/listinfo/papervision3d_osflash.org-- Allan Estabillo647 50 IDEASwww.aedesign.ca
_________________________________________________________________
Make a mini you on Windows Live Messenger!
http://clk.atdmt.com/UKM/go/107571437/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080817/d2cf92da/attachment.html 


More information about the Papervision3D mailing list