export spline and point objects



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



  • 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).



  • 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 :)



  • 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())



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


Log in to reply