[Papervision3D] Lights and Shader Materials
xero
xero.nu at gmail.com
Wed Jul 1 10:46:39 PDT 2009
hey javier,
i dont work w/ collada very often, so i might be wrong.
but im pretty sure that shaders/shadedmaterials DO
NO WORK with materialsList, or compositeMaterials.
if you want to try somthing else use the
collada.replaceMaterialbyName
function and try and replace the default materials
w/ shaded ones manually.
hope that helps!
____ ___
\ \/ /___________ ____
.\ // __ \_ __ \/ _ \
./ \ ___/ | | \( <_> )
/___/\ \___ >__|---\____/
| \_/ \/ |
| xero harrison |
| xero.nu at gmail.com |
| http://xero.nu |
| http://fontvir.us |
| http://hexarray.nu |
| http://xero.owns.us |
`---------------------'
>
> ---------- Forwarded message ----------
> From: "Javier España | javierespana.com" <info at javierespana.com>
> To: papervision3d at osflash.org
> Date: Wed, 1 Jul 2009 13:16:06 -0300
> Subject: [Papervision3D] Lights and Shader Materials
> Hi there, I'm having some trouble making a light affect a material that I
> load to a Collada file.
>
> All works great, exept the light does not seem to affect the model. Here's
> the function that creates the light, the materials, the materiallist and the
> collada... Any ideas?
>
> *private function addCollada():void{
> ///
> light = new PointLight3D(true);
> ///
> var shader:GouraudShader = new
> GouraudShader(light,0xffffff,0x222222);
> var shadeMat:ShadedMaterial = new ShadedMaterial(new
> BitmapFileMaterial("assets/Rectangle2CompleteMap.png"),shader);
> ///
> var materialsList:MaterialsList = new MaterialsList();
> materialsList.addMaterial(shadeMat,"baked_wire_028028177");
> ///
> collada = new Collada("assets/skate.dae", materialsList);
> default_scene.addChild(collada);
> }*
>
> I tried moving the light's x, y and z and nothing...
>
> Thanks,
>
> Javier
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090701/fd679ac2/attachment.html>
More information about the Papervision3D
mailing list