[Papervision3D] Composite Material Problem
xero
xero.nu at gmail.com
Mon Jun 22 09:21:56 PDT 2009
hey...
sorry to be the bearer of bad news,
but shaders are still not supported
in composite materials. the only way
to pull of this effect is to you two objects
placed on top of each other and adjust
the alpha of the top one. i know that's not
what you wanted to hear, but it just isnt
supported by the engine *yet*.
g'luck!
____ ___
\ \/ /___________ ____
.\ // __ \_ __ \/ _ \
./ \ ___/ | | \( <_> )
/___/\ \___ >__|---\____/
| \_/ \/ |
| xero harrison |
| xero.nu at gmail.com |
| http://xero.nu |
| http://fontvir.us |
| http://hexarray.nu |
| http://xero.owns.us |
`---------------------'
---------- Forwarded message ----------
> From: nospam at therossman.org
> To: papervision3d at osflash.org
> Date: Fri, 19 Jun 2009 12:10:44 -0700
> Subject: [Papervision3D] Composite Material Problem
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090622/4699b9dd/attachment.html>
More information about the Papervision3D
mailing list