Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorXyuzhg (Moderator)
    • CommentTimeFeb 28th 2015 edited
     
    As a side project, I decided to implement cubic spline curves in CIF - something I honestly feel that we were missing.
    Here's an introduction to spline interpolation (although a little technical): http://mathworld.wolfram.com/CubicSp...
    This is an expansion of what MCC had worked on a few years ago here: http://forum.colorinfection.com/comm...

    Anyway, I have written a small package with the Cubic Spline object and associated functions, which allows you to do this:

    The algorithm used should be fairly efficient, solving the large systems of linear equations in linear time. To use it, all you have to do is provide an array of points [x, y, x, y, ...] (the same structure as a GetPolyShapeLocalVertexPositions output), and it spits out a Cubic Spline object ready for you to generate points back from. For now you will have to deal with my simple (i.e. not optimized) algorithm for actually generating points, but it works as it is.

    A clean version for importing is below.
    -----------------
    Hopefully PA is inconsistent.
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Wow, Xyuhgz, this is epic. ^^ It's a lot of fun to play with, too.-----------------
    Orange is my favorite number.
  1.  
    WHOA! THAT'S AWESOME! :D-----------------
    hello? hello? the green box is after me
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Maybe this can be used in some kind of game?
    -----------------
    Orange is my favorite number.
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015 edited
     
    I've already got over a dozen game levels designed for this in my head, now. If I'm allowed, can I turn this into some kind of epic, The Dude game? xD-----------------
    Orange is my favorite number.
    • CommentAuthorXyuzhg (Moderator)
    • CommentTimeFeb 28th 2015
     
    Yes, why not? It would be awesome. :P-----------------
    Hopefully PA is inconsistent.
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Yes! I've got this! Thanks, bro. You're awesome. ^^-----------------
    Orange is my favorite number.
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Dude, you'll like this
    -----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    @Mathdude314
    It doesn't solve for me.-----------------
    Orange is my favorite number.
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Try the arrow keys.-----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Oh, lol. xD You should have said that above. :P-----------------
    Orange is my favorite number.
    •  
      CommentAuthorBioManiac R2 (Moderator)
    • CommentTimeFeb 28th 2015
     
    so... Xyuzhg wins the terrain making contest
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Lol! xD Xyuhgz always wins every challenge. It's not that much of a surprise. xD-----------------
    Orange is my favorite number.
  2.  
    Yes he does.-----------------
    hello? hello? the green box is after me
    • CommentAuthorXyuzhg (Moderator)
    • CommentTimeMar 1st 2015 edited
     
    Just a little fun design. Nothing special about it, other than being mathematically interesting. Restart the level for another random configuration.
    -----------------
    Hopefully PA is inconsistent.
  3.  
    Wow. Nice.-----------------
    hello? hello? the green box is after me
    • CommentAuthorpuzzle geek (Advanced Member)
    • CommentTimeMar 6th 2015
     
    O.O
    how is this even possible?
    Since when has CI gotten this complex? Was i asleep or something?
    i am stunned.
    O.O-----------------
    puzzled
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeMar 6th 2015
     
    Well, if you really dive into the API, CIE can make some pretty insane stuff. With the trigger system as is, without any new features or anything, you can create full commercial quality games. Though this takes time, and usually a group of people. People seem to under estimate the power of the editor. xD In reality, it has everything needed to create almost any app or program. File IO, and custom server IO would basically turn it into a fully functional computer language, and able to preform any task a normal computer program could. (Well, within browser.)-----------------
    Orange is my favorite number.
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeMar 6th 2015
     
    Yeah. Just look at Life Factory. I never even looked at the source (it's probably disabled), but to save an hour's worth of records like that is just incredible.
    Or look at Tapir's GestureCI.-----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    • CommentAuthorpuzzle geek (Advanced Member)
    • CommentTimeMar 8th 2015
     
    *sigh*

    Im still a noob at it. i only understand about.... 10% of it?-----------------
    puzzled
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeMar 8th 2015
     
    Well, it's written in a similar matter to that of most programming languages. It's far easier to understand if you're a programmer, or at least understand the concept of how programming languages work.-----------------
    Orange is my favorite number.
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeMar 8th 2015
     
    Puzzle, you should learn a language like Javascript or Python. It will make things easier.-----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeMar 8th 2015
     
    http://www.codecademy.com/
    Use that site. It explains coding and programming terms very efficiently, and can help you learn a large range of languages, if you wish. Free, and very user friendly.-----------------
    Orange is my favorite number.
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeMar 8th 2015 edited
     
    Exactly. +1 L.U.E.42 Point.
    (It's not fair to TheDude that he has the only point system! He can't give himself Coolness Points!)-----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeMar 8th 2015
     
    Lol. xD
    It's hard to give yourself points when you're already at infinity.-----------------
    Orange is my favorite number.