Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    export spline and point objects

    SDK Help
    0
    5
    633
    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 09/05/2007 at 12:07, xxxxxxxx wrote:

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

      ---------
      hi,
      I'm currently writing an export script for a custom 3D-format (used in my own game). Until now, it works fine for Polygon Objects, but i've got no Idea how to deal with Spline and Point objects. To be precise, I didnt know what a Spline is until today (I'm more the programmer type, the models are created by my graphics-person). As I see it (correct me, if there is another way), I will have to convert the Spline (a kind of curve isnt it?) to a polygon object, but the Coffee SDK isnt a great help at this point.
      The other thing is the point object, because... if it is just points, what could you see there an therefore export? Blank vertices are unvisible I think...
      Could someone give a hint?

      thanks
      Krox

      ps: well, excuse my bad english^^

      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 09/05/2007 at 12:26, xxxxxxxx wrote:

        A spline is a spline. 🙂 Just open any college or general math book and look up something like Bezier curve - that is the type of thing that splines are based upon. They are procedural objects - you can't convert a spline to a polygon object. Splines are only useful if you intend on supporting them in the game for some reason.

        If you don't need them, don't export them. If they are used in a physical representation (hair or part of a generator for instance), you'll need to convert that representation into a polygon object using CurrentStateToObject (this is a modeling command - but forget how to do it with COFFEE).

        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 09/05/2007 at 13:36, xxxxxxxx wrote:

          Well... much easier than I thought, thanks 🙂

          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 13/05/2007 at 09:54, xxxxxxxx wrote:

            okay... my script seems working for the moment, but one little questions remain: Where is the difference between an object's local and global matrix ? (the return values of obj->GetMg() and obj->GetMl())

            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 13/05/2007 at 10:02, xxxxxxxx wrote:

              well... just found the answer on myself... trivial thing^^

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