if i have a parent with a texture tag and somewhere down the tree a child without texture tag
it gets the parents texture. i now need to clone the texture tag onto the child while preserving the same projection (coordinates / rotation / scale)
Texture tag coordinates / scale / rotation always refer to its objects coordinate system.
So if i clone the the tag to a direct child (or somewhere deeper down the tree) i need to compensate the matrix differences of the parent object and the child object.
lets say i have
parent (BaseObject) and parenttag (the parents BaseTag, c4d.Ttexture)
child (BaseObject) and childtag (the childs BaseTag, c4d.Ttexture)
then i have
and I need to calculate/set
Anyone with a tip on how to get the childtag matrix
so that the texture is projected the same way
as if child would inherit the projection from ptag on the parent?
I hope the problem is understandable :)
by the way... this is all because of a bug in the collada exporter
it simply ignores materials inherited from parents (at least for instances)
thats why i try to copy down the tags with the correct projection,
and then do the export.