Papervision: Black seams around model

Hey guys,

if you look at the results I have so far under this link you will notice that around the model appear very thin black lines.

I created the cup using 3DS max 2009. I assigned two materials to it and exported it to a Collada-File using the Collada-Export-Plugin for 3DS Max.

Now in Papervision I go ahead and replace the assigned materials.
For the inside of a cup I use a simple PhongMaterial. For the outside, (combining 2 pictures first, resulting in a bitmapData-Object) I create a BitmapMaterial first and then make a ShadedMaterial out of it.
Finally I a apply a PhongShader to the ShadedMaterial.

If I’d use a phongMaterial for both parts it looks perfect.
So it kinda looks like it has something to do with my ShadedMaterial.

Here the relevant code:


private function mergedTextureCreated(e:Event):void
        {       
            // Initialize lights
            initLights();
            
            // Retrieve the merged texture and create a bitmap material from it
            mergedTexture = textureCreator.MergedTexture;
            var mergedTextureBitmapMaterial:BitmapMaterial = new BitmapMaterial(mergedTexture.bitmapData, true);
            mergedTextureBitmapMaterial.smooth = true;
            
            // Create a phong shader
            var phongShader:PhongShader = new PhongShader(light, 0xFFFFFF, 0xa6a59f, 10);
            
            
            // create a shaded material from the mergedTextureBitmapMaterial
            var shadedMergedMaterial:ShadedMaterial = new ShadedMaterial(mergedTextureBitmapMaterial, phongShader);
            shadedMergedMaterial.smooth = true;
            
            
            var phongMaterial:PhongMaterial = new PhongMaterial(light, 0xFFFFFF, 0xa6a59f, 10);
            
           
            
            // Create a material list and assign the materials to it            
            var matList:MaterialsList = new MaterialsList();
            matList.addMaterial(shadedMergedMaterial, "Material1");
            matList.addMaterial(phongMaterial, "Material2");
            
            
            model = new DAE();
            DAE(model).load(dataModel.ModelPath, matList);
            
            model.addEventListener(FileLoadEvent.LOAD_COMPLETE, modelLoaded);
            model.addEventListener(FileLoadEvent.LOAD_PROGRESS, materialLoading);
        }