« Return to Thread: Silverlight 3D better than Flash?

Composite Material Problem

by Mark I. Ross :: Rate this Message:

Reply to Author | View in Thread

Hey all,

Expect that this is largely due to my inexperience with PV3D, but I am
trying to create a CompositeMaterial of a MovieAssetMaterial and a
PhongMaterial.

In essence I have a cube that one side will have this composite material,
and the goal is as the user moves their mouse side-to-side, the cube will
rotate back and forth slightly and the reason I want to use the
PhongMaterial is to get a nice light-effect sheen kind of rolling across
the face of the cube.

This doesn't seem to work though, if I do:

var myFaceCompMaterial:CompositeMaterial = new CompositeMaterial();
myFaceCompMaterial.addMaterial( new MovieAssetMaterial( "image1_mc", true,
false, false, true ) );
myFaceCompMaterial.addMaterial( new PhongMaterial( mylight, 0xE7FCFE ,
0x6F6F6F, 1 ) );


I only see the PhongMaterial and if I reverse the order in which I add
them I only see the MovieAssetMaterial.

I have a feeling there is some way to do what I want but I don't think I'm
approaching this the right way.  I had thought perhaps I could set the
fillAlpha on the PhongMaterial but it has no effect.

Any and all advice would be greatly appreciated!

Cheers,
mark


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Silverlight 3D better than Flash?