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
    • Recent
    • Tags
    • Users
    • Login

    2D Drawing and Open GL

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 428 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 09/09/2011 at 07:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R13 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      I encountered a problem when using DrawLine2D or any other 2D drawing function with Open GL activated. This problem was already there in R12:

      All objects, polygon objects as well as simple objects like cubes, will be displayed wrong as soon as just one 2D line is drawn. The image shows the kind of error (right hand). Faces that are directed in x or z direction are displayed as if the normals are reversed. But remember: it's a standard cube!

      _<_img src="http://www.c4dplugin.de/wip/opengl_problem.jpg" border="0" /_>_

      Any ideas?

      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/09/2011 at 02:27, xxxxxxxx wrote:

        I can confirm this. I will report this.

        cheers,
        Matthias

        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/09/2011 at 03:10, xxxxxxxx wrote:

          Ok, the problem is that the 2D drawing functions disable the Z buffer. Our OpenGL developer recommends to use the non-2D functions in camera space instead. If this doesn't work you can alternatively call bd- >SetDepth(TRUE) to enable the Z buffer again.

          cheers,
          Matthias

          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/09/2011 at 07:13, xxxxxxxx wrote:

            ok, bd->SetDepth() does it when calling after 2D drawing. But this function is available only in R13, isn't it?

            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/09/2011 at 07:17, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              But this function is available only in R13, isn't it?

              Unfortunatly, yes. So for R12 I'm afraid you have to use the non-2D drawing functions.

              cheers,
              Matthias

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