Viewport Question



  • 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



  • 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



  • 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



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


Log in to reply