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

    BaseDraw / Matrix problem

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 271 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 07/01/2011 at 11:28, xxxxxxxx wrote:

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

      ---------
      Hi there,

      i am having a strange problem within BAseDraw.

        
        
        Matrix m = op->GetMg();  
        bd->SetPen(GetViewColor(VIEWCOLOR_ACTIVEPOINT));  
        bd->SetMatrix_Matrix(op, bh->GetMg());  
        
        bd->DrawSphere(m.off,Vector(m_far),Vector(2.0,0.0,0.0),NULL);  
      

      and while it was working in r11 (without the SetMatrix_Matrix o.c.)

      it doesnt work anymore in r12. the Sphere is somehow positioned like the position was multiplied by some value bigger that 10.

      any ideas? i hope someone has one

      thanks and cheers,
      ello

      edit: lol.. fixed. using Vector(0) with DrawSphere and it works 😉

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

        you already set the drawing matrix with SetMatrix_Matrix, so DrawSphere expects a local coordinate. Just for completeness. 🙂

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

          thank you for that information
          cheers

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