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

    Viewport Question

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 334 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 25/04/2010 at 18:02, xxxxxxxx wrote:

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

      ---------
      Hey everyone.

      I'm using some OpenGL functions in my plugin in the DRAW() member..   however,  the OpenGL geometry I create will not work if the user has selected Software shading.  What does software shading use to display polygons and objects etc..   does it use direct X?   or is it something built in to C4D?   I assume I will have to revert to the C4D API to draw things if the user chooses software shading.     How can I determine if the user has chosen Software shading?

      Thanks,

      ~Shawn

      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 26/04/2010 at 02:49, xxxxxxxx wrote:

        Check for the status of WPREF_OPENGL worldcontainer entry.

          
        BaseContainer bc = GetWorldContainer();  
          
        if (bc.GetBool(WPREF_OPENGL, TRUE))  
        {  
           // OpenGL  
        }  
        else  
        {  
           //Software Shading  
        }  
        

        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 26/04/2010 at 03:09, xxxxxxxx wrote:

          Thanks Matthias..  I appreciate it!

          ~Shawn

          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 26/04/2010 at 03:55, xxxxxxxx wrote:

            While we are at it: Is there any significant benefit to draw directly with OpenGL except for the cases where you need features that Cinema doesn't offer?

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