THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/08/2010 at 03:01, xxxxxxxx wrote:
Cinema 4D Version: 9.5-11
Platform: Windows ;
Language(s) : C++ ;
I'm trying to create a C++ object/generator plugin for Cinema 4D. Vertices and polygons are displayed correctly, but I have problems with tags that I have not been able to solve over several days:
- I create a number of tags in GetVirtualObjects, but they do not show up in the editor:
TextureTag* textTag = obj->MakeTag(Ttexture) UVWTag* uvwTag = (UVWTag* )obj->MakeVariableTag (Tuvw, vertexCount); obj->InsertTag(uvwTag); VariableTag* nTag = obj->MakeVariableTag(Tnormal, vertexCount, uvwTag); obj->InsertTag(nTag);
Is GetVirtualObjects really a suitable place to generate tags that are supposed to show up in the GUI?
I cannot convert my object plugin into a polygon object
If understand correctly, TextureTag accesses texture data through GetParameter/SetParameter. Where do I find documentation on the format of this data? Is it RGB, BGR, RGBA, BGRA, ..., bytes, floats, ...? Is it possible to set the format?
The documentation on UVWTags says "When assigning a UVW tag to an object ensure you set the texture to UVW." (C4DR95SDKHTML/pages/c4d_basetag/class_UVWTag1049.html and C4DR115SDKHTML/pages/c4d_basetag/class_UVWTag1332.html). Does that mean that i need to create a TextureTag before creating a UVWTag? Well, RoundedTUbe does not create a texture tag ...
I did set the UVW coordinates per polygon rather than per vertex, as explained in this thread:
Any help is appreciated.