Creating poly selections for texture map



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 24/05/2003 at 22:38, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    How can I create polygon selections to use with multiple materials on polygon objects? I get an instant crash trying to create a Tpolygon tag on a polygon object and the Tpolygonselection tag has no accessors that would let me set which polys are part of the set. No examples for these guys. I need two sets of groupings - one for surfaces to apply uv based textures to - and one denoting groups that I will be using to create bone weight maps later.

    How can I divide up the model I've imported so I can properly texture it from within my plugin?

    (where I can find samples, the sdk has gotten me up and running very fast!)

    Thanks,
    David



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/05/2003 at 01:12, xxxxxxxx wrote:

    Use SelectionTag::Alloc(Tpolygonselection) and then GetBaseSelect() to modify the selection. I think you need to call tag->Message(MSG_UPDATE) if you change anything.
    You cannot create Tpolygon since there can only be one such tag. It shouldn't crash, but perhaps you don't check for NULL pointers?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/05/2003 at 08:45, xxxxxxxx wrote:

    Thanks!
    Once I knew what to go for - works like a charm.

    How do you know which tags should be created by the calls in baseobject - should I use MakeVariableTag for a Tvertexmap for a bone weight map and it must be the size of the entire point array? Or is there a way to make a sparse array (like selection appears to be) for bone weights?

    (Finally on to textures!)

    Thanks,
    David



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/05/2003 at 08:46, xxxxxxxx wrote:

    Thanks!
    Once I knew what to go for - works like a charm.

    How do you know which tags should be created by the calls in baseobject - should I use MakeVariableTag for a Tvertexmap for a bone weight map and it must be the size of the entire point array? Or is there a way to make a sparse array (like selection appears to be) for bone weights?

    Inever got to check the null Tpolygon pointer - it never returned- I was using object->MakeVariableTag.

    (Finally on to textures!)

    Thanks,
    David


Log in to reply