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

    Xpresso TP

    SDK Help
    0
    3
    224
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 06/07/2004 at 02:29, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I'm trying to orient particles the same direction as some face normals. The problem is that the alignment must be defined as a Matrix. And the normal is a Vector. How can I change a simple vector into a matrix?
      And why tha hell must the alignment be defined as a Matrix?!?! Couldn't it be simply a vector? Thank you very much in advence.

      Rui Batista

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 06/07/2004 at 02:31, xxxxxxxx wrote:

        Oh, and why doesn't the PSurfacePosition have an option to automatically orient the particles the same way as the normals?!?

        Rui Batista

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 07/07/2004 at 20:34, xxxxxxxx wrote:

          Tha orientation isn't uniquely determined by a single vector, since the particle could have a bank angle as well. You can get one of the possible orientations by HPBToMatrix(VectorToHPB(v)), or you can build the matrix yourself using cross products.
          The options for PSurfacePosition available in the API reflect those available in the application. So please direct questions about the existing features to one of the user forums, or to the suggestions form. (I wouldn't know much more than you about TP... 😉

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