Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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.
Thanks to both of you! Best Regards,
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!
DrawHUDText()
Best regards,
First, thank you @ferdinand for your answer!
.
You cannot draw on top of safe frames inside NodeData.Draw....
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!
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 !