Hey wexcell it sounds like your problem is to do with your collada model - this error is consistent with a lack of uv data on the meshes imported from the model data. Is there any way you can check whether you have uv data present on the meshes you are trying to skin?
Rob On Wed, Oct 28, 2009 at 7:38 AM, wexcell <[email protected]> wrote: > > Hi, > It's me again ;D > > I have weird problem with adding bitmap material to my collada object, > got runtime error (see below): > > TypeError: Error #1009: Cannot access a property or method of a null > object reference. > at away3d.materials::TransformBitmapMaterial/getMapping() > at away3d.materials::BitmapMaterial/renderTriangle() > at away3d.materials::TransformBitmapMaterial/renderTriangle() > at away3d.core.draw::DrawTriangle/render() > at away3d.core.render::BasicRenderer/render() > at away3d.core.render::AbstractRenderSession/render() > at away3d.core.render::AbstractRenderSession/render() > at away3d.containers::View3D/render() > at pl.mamf.view::Main/oefHandler() > > oefHandler is my ENTR_FRAME event where I render a scene > > And the code how I load a bitmap > > bitmapMaterial = new BitmapFileMaterial('assets/texture/red.jpg'); > bitmapMaterial.addEventListener(MaterialEvent.LOAD_SUCCESS, > bitmapCompletedHandler); > > > private function bitmapCompletedHandler(e:MaterialEvent):void > { > targetMaterial = model.materialLibrary.getMaterial("Material_001") > > targetMaterial.material = bitmapMaterial; > > } -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
