# Collada MaterialList Problem (PaperVision3D)

**URL:** <https://forum.kirupa.com/t/collada-materiallist-problem-papervision3d/261170>\
**Category:** flash\
**Created:** [May 23, 2008, 6:48pm UTC](https://forum.kirupa.com/t/collada-materiallist-problem-papervision3d/261170 "2008-05-23T18:48:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImAFlasher](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@ImAFlasher](https://forum.kirupa.com/u/ImAFlasher)\
**Post date:** [May 23, 2008, 6:48pm UTC](https://forum.kirupa.com/t/collada-materiallist-problem-papervision3d/261170/1 "2008-05-23T18:48:27Z")

</div>

Hi Everyone,  
I am trying to apply a material to a Collada model through ActionScript 3.0. I am having little to no success. I am able to change the texture by modifying the dae file directly by giving it the file in the \<init\_from\>texture.jpg\</init\_from\> field, but I need to do it through ActionScript so I can change the color of the model, add shaders, etc. Here is my attempt on getting one solid color material onto my sphere model:

```auto

   // LOAD MODEL HERE
   colorMaterial1 = new ColorMaterial(0x53F20D);
   colorMaterial1.doubleSided = true;
   
   var materialsList:MaterialsList = new MaterialsList(); 
   materialsList.addMaterial( colorMaterial1, "color1" ); 
   
   testModel = new Collada("checkeredSphere.dae", materialsList, 2.5);
   testModel.rotationY = 180;
   
   default_scene.addChild(testModel);

```

My model displays on the screen at the correct scale, but no material is shown. I just see the basic wireframe which is not even in the color I specified for the material.

See example using the code block above: [http://www.scotspellman.com/test/Sphere/TestModel.html](http://www.scotspellman.com/test/Sphere/TestModel.html)

Please help, I do not know what I am missing or doing wrong… I’ve been trying to resolve this issue for over a week now :\*(.

Any help is always greatly appreciated,

Thanks in advance!

PS - Hopefully the code block above is enough to see my problem, if not I am more than happy to send over source files on request. Thanks again.

---

<div class="post-metadata">

**Author:** ![ImAFlasher](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@ImAFlasher](https://forum.kirupa.com/u/ImAFlasher)\
**Post date:** [May 27, 2008, 5:21pm UTC](https://forum.kirupa.com/t/collada-materiallist-problem-papervision3d/261170/2 "2008-05-27T17:21:14Z")

</div>

Solution: [http://www.nabble.com/Collada-MaterialsList-Problem-(PaperVision3D)-td17441557.html](http://www.nabble.com/Collada-MaterialsList-Problem-%28PaperVision3D%29-td17441557.html)

Thanks Nabble peeps, you rock! :bounce:
