THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/12/2008 at 08:08, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C++ ;
---------
I am trying to export a textured object using the cpp SDK.
The TextureTag object gives access to position,
scale an rotation values, but these dont correspond to
the values I entered in Cinema 4D.
There are several tabs in the Attribute-Manager for
TextureTags: 'Tag' and 'Coordinates'. The values I receive
with TextureTag::GetPos() etc are those under
'Coordinates' but have no apparent effect on Appearance.
Those under 'Tag' have the desired effect but I cant
find how to access them.
Exporting the scene in 'Cinema4D xml Format' suggests
everything is there because the following snippet looks
like an image of the object:
<v6_texture level='6'>
<vector x='0' y='0' z='0' />
<vector x='22' y='100' z='100' />
<vector x='0' y='0' z='0' />
<matrix>
<vector x='0' y='0' z='0' />
<vector x='1' y='0' z='0' />
<vector x='0' y='1' z='0' />
<vector x='0' y='0' z='1' />
</matrix>
<matrix>
<vector x='0' y='0' z='0' />
<vector x='1' y='0' z='0' />
<vector x='0' y='1' z='0' />
<vector x='0' y='0' z='1' />
</matrix>
<real v='0.55000001192092896' />
<real v='0.14999999105930328' />
<real v='0.58499997854232788' />
<real v='0.63999998569488525' />
<bool v='1' />
....
</v6_texture>
The TextureTag Interface gives access to the vectors and
matrices but how do I get to the reals and the rest?
Thank you for any suggestions.
(A general comment of the structure of the xml-files
and how it corresponds to SDK data structure
would be welcome. It would probably help answer many
questions posted here.)