[Papervision3D] Applying material to DAE child object gets error message
John Grden
neoriley at gmail.com
Tue Dec 2 14:32:27 PST 2008
ok, well that error is essentially telling you that the bitmap isn't loaded
yet or doesn't exist. If you're loading the bitmap externally, you need to
wait until it's been loaded fully, otherwise, you'll likely get that error
message
On Tue, Dec 2, 2008 at 3:54 PM, casey mandell <caseymandell at mac.com> wrote:
>
> I think this is doing what you said, but I'm still getting the error
> message?
> (pCloud is a dae file)
>
> var _name : String = pXML.object[i]. at name;
> var _offName : String = pDAEPath + _name + "_uv_bk.jpg";
> var _matOff : BitmapFileMaterial = new BitmapFileMaterial(_offName);
> _matOff.interactive = true;
>
> var do3d : DisplayObject3D = pCloud.getChildByName(_name, true);
>
> if( do3d ) {
>
> pCloud.setChildMaterial(do3d, _matOff);
> }
>
>
>
>
>
>
>
>
> casey mandell wrote:
> >
> > Hi,
> >
> > When I write the following code:
> >
> > pDAE.setChildMaterialByName(_name, _matOff);
> >
> > where _name is the name of a child in the DAE and _matOff is a
> > BitmapFileMaterial with interactive set to true, the material is applied
> > and its interactive but I get the following error message:
> >
> > ERROR: MaterialObject3D: transformUV() material.bitmap not
> > found!
> >
> > I wonder if someone can tell me what it means and how I can make it go .
> >
> > thanks,
> > Casey
> >
>
> --
> View this message in context:
> http://www.nabble.com/Applying-material-to-DAE-child-object-gets-error-message-tp20800405p20801846.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
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20081202/f3615bb9/attachment.html>
More information about the Papervision3D
mailing list