But how can I apply a map to a collada object and then have it been affected by a papervision light?<br><br>Any example? I thought I was going the right way =P<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 2:46 PM, xero <span dir="ltr">&lt;<a href="http://xero.nu">xero.nu</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font face="courier new,monospace">hey javier,</font></div>
<div><font face="courier new,monospace">i dont work w/ collada very often, so i might be wrong.</font></div>
<div><font face="courier new,monospace">but im pretty sure that shaders/shadedmaterials DO<br>NO WORK with materialsList, or compositeMaterials.</font></div>
<div><font face="courier new,monospace">if you want to try somthing else use the </font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">collada.replaceMaterialbyName</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">function and try and replace the default materials</font></div>
<div><font face="courier new,monospace">w/ shaded ones manually.</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">hope that helps!<br clear="all">____  ___<br>\   \/  /___________  ____<br>.\     // __ \_  __ \/ _  \<br>./     \  ___/ | | \( &lt;_&gt;  )<br>/___/\  \___  &gt;__|---\____/<br>|     \_/   \/        |<br>


| xero harrison       |<br><font color="#888888">| <a href="http://xero.nu" target="_blank">xero.nu</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>   |<br>| <a href="http://xero.nu" target="_blank">http://xero.nu</a>      |<br>

| <a href="http://fontvir.us" target="_blank">http://fontvir.us</a>   |<br>
| <a href="http://hexarray.nu" target="_blank">http://hexarray.nu</a>  | <br>| <a href="http://xero.owns.us" target="_blank">http://xero.owns.us</a> |<br>`---------------------&#39;  <br></font></font></div><div><div></div>

<div class="h5">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><br>---------- Forwarded message ----------<br>From: &quot;Javier España | <a href="http://javierespana.com" target="_blank">javierespana.com</a>&quot; &lt;<a href="mailto:info@javierespana.com" target="_blank">info@javierespana.com</a>&gt;<br>


To: <a href="mailto:papervision3d@osflash.org" target="_blank">papervision3d@osflash.org</a><br>Date: Wed, 1 Jul 2009 13:16:06 -0300<br>Subject: [Papervision3D] Lights and Shader Materials<br>Hi there, I&#39;m having some trouble making a light affect a material that I load to a Collada file.<br>


<br>All works great, exept the light does not seem to affect the model. Here&#39;s the function that creates the light, the materials, the materiallist and the collada... Any ideas?<br><br><i>private function addCollada():void{<br>


      ///<br>      light = new PointLight3D(true);<br>      ///<br>      var shader:GouraudShader = new GouraudShader(light,0xffffff,0x222222);<br>      var shadeMat:ShadedMaterial = new ShadedMaterial(new BitmapFileMaterial(&quot;assets/Rectangle2CompleteMap.png&quot;),shader);<br>


      ///<br>      var materialsList:MaterialsList = new MaterialsList(); <br>      materialsList.addMaterial(shadeMat,&quot;baked_wire_028028177&quot;);<br>      ///<br>      collada = new Collada(&quot;assets/skate.dae&quot;, materialsList);<br>


      default_scene.addChild(collada);<br>}</i><br><br>I tried moving the light&#39;s x, y and z and nothing...<br><br>Thanks,<br><br>Javier<br><br></blockquote></div>
</div></div><br>_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
<br></blockquote></div><br>