Navigation

    • Register
    • Login
    • Search
    1. Home
    2. kilou
    K

    kilou

    @kilou

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

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    kilou Follow

    Best posts made by kilou

    This user does not have any upvoted posts yet.

    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 •
    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 •
    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 •
    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 •