TagData::Draw() Question



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

    On 31/08/2006 at 07:16, xxxxxxxx wrote:

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

    ---------
    Hi Guys,
    I have my tag plugin drawing into the viewport the way I want. The problem that I am now running into is that the drawing is correct only when the object that the tag is attached to is selected. When ever this object isn't selected, the data is drawn behind everything. So, does anyone know of a way to have this data drawn on top of the entire scene even when the base object of the tag isn't selected?
    I was thinking that I might need to check for core messages sent by Cinema and then call my draw function, but I'm not exactly sure on how to do that. As always, any help is much appreciated.
    Josh



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

    On 07/09/2006 at 23:40, xxxxxxxx wrote:

    If the current display mode has a Z buffer, I guess you could use LineZOffset(). Otherwise I think this is a limitation, since other entities are drawn after your tag.



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

    On 07/09/2006 at 23:57, xxxxxxxx wrote:

    As an adjoinder - I use LineZOffset(32) to draw 'in front of' everything. More of a guess than pure science, but it appears to suffice. Also, check the proper flags in the Draw() method. If you want to draw highlights, check for 'DRAW_HIGHLIGHTS', for example. Not sure of the priority of these draw methods, but it does make a differnce.



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

    On 08/09/2006 at 07:53, xxxxxxxx wrote:

    Thanks guys! I'll give it a try and let you know what happens.
    Josh


Log in to reply