Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. kilou
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    kilou

    @kilou

    0
    Reputation
    31
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    kilou Unfollow Follow

    Latest posts made by kilou

    • RE: HUD Text issues

      Oh! sorry @fwilleke80 I misread your first message.

      @ferdinand, I think I got confused from the beginning. I made a copy of my code from an objectData plugin to a scenehook plugin without changing DRAWPASS to SCENEHOOKDRAW 🤦

      Everything is working just fine now(... except the aliasing) but the result is acceptable.

      OK.png

      Thanks to both of you!
      Best Regards,

      posted in Cinema 4D SDK
      K
      kilou
    • RE: HUD Text issues

      Thank you @ferdinand! I appreciate the effort you put in your answers. very detailed and clear. Thank you again.

      Thank you @fwilleke80 for your answer!
      honestly, to be surprised, I'm surprised! seeing the video, I was pretty sure that DrawHUDText() method was used, but how did you manage to get this result ? (smooth text, visible above the safe frame!).. because when I used it, it was ...meh!

      Best regards,

      posted in Cinema 4D SDK
      K
      kilou
    • RE: HUD Text issues

      First, thank you @ferdinand for your answer!

      • Q1: OK, thank you
      • Q2: this is exactly what I thought before until I saw a video of a plugin (Terraformx). The text was drawn on top of the safe frame (plase check out the image below).

      terraform.png

      .

      1. You cannot draw on top of safe frames inside NodeData.Draw....

      By reading this part, should I understand that it's possible to achieve this by using a different plugin type (....a sceenhook plugin I guess) ? if so, how to do it ?

      Thanks!

      posted in Cinema 4D SDK
      K
      kilou
    • HUD Text issues

      Hi,

      I am trying to display some text in the viewport. to do my tests I'm overriding the Draw method (objectdata plugin). Everything seems to work fine except two small things:

      1- The text is not smooth : there is a slight aliasing on it.
      2- The text is hidden under the bands that sourround the safe frame. for instance the default "Perspective" HUD text is visible even when you have 100% opaque bands.

          ...
          def Draw(self, op, drawpass, bd, bh):
      
              if drawpass == c4d.DRAWPASS_HIGHLIGHTS:
                  return c4d.DRAWRESULT_SKIP
      
              bd.SetMatrix_Screen()
              bd.DrawHUDText(2, 25, "Perspective")
      
              return c4d.DRAWRESULT_OK
      

      did I forget something? Any suggestion will be helpful.

      Thanks !

      a.png

      posted in Cinema 4D SDK r23 python
      K
      kilou