THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/08/2009 at 15:20, xxxxxxxx wrote:
Cinema 4D Version: R10-R11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
I'm having a bit of difficulty here. In my plugin, a planar shape with UVs is being extruded with SendModelingCommand() set to create a cap. The cap UVs are added but they are all simply 0-1,0-1 squares over the UV plane. Since the cap 'mirrors' the original polygons that are now the top of the extruction, I want to use the top UVs to set the bottom cap UVs - there isn't much of a choice actually, don't you agree?
Not so fast. If I simply copy them from top to bottom, each polygon looks to be individually inverted. If I invert (1.0-uvstruct.a.x, etc.) the x value of the UV points it gets worse. So, how would I 'mirror' the top UVs so as to get proper bottom cap UVs?
I'm completely stuck on how to map this bottom cap from the top polygons.