Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    TagData::Draw() Question

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 408 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post