[Papervision3D] Performance with interactive materials
M. Kalthoff
m.kalt at web.de
Tue Sep 2 08:51:54 PDT 2008
well yeah,
i you pass a materialslist you know your materials and can manipulate
them directly. if not, you have to identify the material by a property
you do know.
"my_DAE_model.material" is an empty material of the internal wrapping
DO3D. so any changes on this don't have any effect.
so, if you want to alter a specific material which is actually used, you
gotta go down to face-level and compare, for example, the name-property.
do3d.geometry.faces[0].material.name should somehow equal the material
in the DAE <material>-tags.
but that's from memory, could be wrong. gotta look up how i actually did
it when i come back from work.
c ya
dsdsdsdsd schrieb:
> hello, Matze;
>
> how do you select a material in order to turn it off??
>
> if I do:
> my_DAE_model.material.interactive = false
> nothing happens;
>
> only if I loop through:
> my_DAE.materials.materialsByname
>
> of course this does not let me specifically choose WHICH material I want to
> turn off;
>
>
> thanks,
> Shannon
More information about the Papervision3D
mailing list