Some javascript/style in this post has been disabled (
why?)
Phong shader AND texture for DAE?
I’ve looked on a few sites, but cannot seem to get it. I have a DAE with a texture out of Swift 3D, and when I apply a Phong shader...it replaces the texture. I know you can do a composite texture with both, but I keep messing it up.
phong = new PhongMaterial(mLight, 0xFFFFFF, 0xE3E3E3, 80);
mCollada = new DAE( );
mCollada.addEventListener(FileLoadEvent.LOAD_COMPLETE, EROnFileLoaded, false, 0, true);
mCollada.load("tank.dae");//new MaterialsList ( { all:phong} )); this puts a Phong shader on but kills the original texture
mRootNode = mScene.addChild( mCollada, "mRootNode" );
Is there an easy way to apply both to a DAE?
Thanks!
_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org