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

    Drawing circles in Screen spce

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 361 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 05/08/2012 at 03:11, xxxxxxxx wrote:

      I want to draw some circles in the editor, in screen space.
      I already have the coordinates of the center and the radius.
      However, if I use DrawCircle2D, it draws the circles fine but, if I turn Enhanced OpenGL display on, the objects in the editor are displayed oddly.
      I already tried to use the bd.SW function to convert my screen coordinates to world coordinates and use DrawCircle instead. But it is not working.
      So, I have two questions:

      Is it impossible to use 2D drawing commands without ruining the editor display when Enhanced OpenGL is on?

      How can I draw in world coordinates and have a result like it was screen coordinates?

      Thank you very much in advance for any reply.

      Rui Batista

      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 05/08/2012 at 09:20, xxxxxxxx wrote:

        Ok, I found out that if I set the Matrix to Camera at the end of all my drawings with bd.SetMatrix_Camera(), it all works fine.
        Except for the fact that when Enhanced OpenGL is on, the lines are drawn behind the objects 😞
        Any fix for that?

        Rui Batista

        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 12/08/2012 at 13:54, xxxxxxxx wrote:

          I'd be interested to find a solution to this. 
          I'd often like yo have a simple cross hair in the centre of the screen for reference  (like the render safe area)

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