[Papervision3D] Applying material to DAE child object gets error message
casey mandell
caseymandell at mac.com
Tue Dec 2 13:54:26 PST 2008
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.
More information about the Papervision3D
mailing list