[Papervision3D] Using shader materials + multiple textures from .dae [XML] file

Marcus Vinicius S Oliveira kobawsky at gmail.com
Tue Jun 29 07:18:28 PDT 2010


Hello everyone,


My DAE object have multiple textures [each texture have your own path at DAE
xml file of course], how i will use Phong Shader if Phong Shader parameter
needs a bitmapMaterial parameter?

Example:

*The common way [one simply texture]*

var sh = new PhongShader(light, 0xFFFFFF, 0x333333, 20);
var bp:BitmapAssetMaterial = new BitmapAssetMaterial("hell");
var shbp:ShadedMaterial = new ShadedMaterial(bp, sh);
lMaterialsList.addMaterial(shbp, "all");

*What i'm trying to do*

var sh = new PhongShader(light, 0xFFFFFF, 0x333333, 20);
var shbp:ShadedMaterial = new ShadedMaterial(*mCollada.materials as
BitmapMaterial*, sh); //trying to use materials from DAE xml file with no
sucess [don't return any error but not work!!! shit]
lMaterialsList.addMaterial(shbp, "all");

-- 
Flash Developer | souzaoliveira.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100629/5350772a/attachment.html>


More information about the Papervision3D mailing list