[Papervision3D] PB Loading Texture (DAE)

Milan Orszagh mo at ovos.at
Mon Aug 11 07:20:04 PDT 2008


Actually edited the the file and kicked the ?nc= out so it's all working now.

Uploaded the file for ppl who want it till new revision comes out. The file
is up to date (revison 08.08.08).

http://www.nabble.com/file/p18926762/DAE.as DAE.as 
(File goes to: \org\papervision3d\objects\parsers\)


mo


Milan Orszagh wrote:
> 
> Enjoy your vacation, I'm waiting for this aswell, gonna use a work around
> for now.
> 
> Best regards,
> mo
> 
> 
> Tim Knip-2 wrote:
>> 
>> I will fix this. :-)
>> Alas: I'll be partying on Ibiza from august 10th till 20th...
>> 
>> So, I'll try to fix before that.
>> 
>> T
>> 
>> 2008/8/6 Carl Gloria <carl at 2livelarge.com>:
>>>
>>> Same issue for me too, and they are known good DAE files too! Meaning,
>>> they
>>> worked on an earlier version of papervision.
>>>
>>> ?nc= is coming from line 1431 in DAE.as
>>>
>>> Not sure why that happens???
>>>
>>> For now I did temp solve it by...
>>>
>>> var bfm:BitmapFileMaterial = new BitmapFileMaterial(pathTexture);
>>> var ml:MaterialsList = new MaterialsList();
>>> ml.addMaterial(bfm, "all");
>>> _loading_DAE.load(path, ml)
>>>
>>> My problem is I am dependent on the DAE file providing the pathTexture,
>>> my
>>> pipeline allows the Artists to determine path in Maya. So...I call
>>> dae.load() twice
>>>
>>> First...
>>> _loading_DAE.addEventListener(FileLoadEvent.COLLADA_MATERIALS_DONE,
>>> DAE_ColladaComplete, false, 0, true);
>>> _loading_DAE.addEventListener(FileLoadEvent.LOAD_COMPLETE,
>>> DAE_LoadComplete,
>>> false, 0, true);
>>> _loading_DAE.load(path)
>>>
>>>
>>> When both those listeners are done...
>>> for each (var thing:Object in _loading_DAE.document.images)
>>> {
>>>   if (thing is DaeImage)
>>>   {
>>>     pathTexture =  _loading_DAE.baseUrl + "/" + thing.init_from;
>>>     var bfm:BitmapFileMaterial = new BitmapFileMaterial(pathTexture);
>>>     var ml:MaterialsList = new MaterialsList();
>>>     ml.addMaterial(bfm, "all");
>>>     _loading_DAE.load(path, ml)
>>>     break;
>>>   }
>>> }
>>>
>>> Little bit ugly, but gettiin me by right now...
>>>
>>> I assume Tim Knip wll be fixing this soon...
>>>
>>> -----
>>> Carl Gloria - 2livelarge.com - cgvelocity.com
>>>
>>> Maya, Flash and Papervision - no particular order, just love them all!
>>> --
>>> View this message in context:
>>> http://www.nabble.com/PB-Loading-Texture-%28DAE%29-tp18402359p18857533.html
>>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>> 
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/PB-Loading-Texture-%28DAE%29-tp18402359p18926762.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list