User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Question for Sin, Cos, Tan Experts. (pictures)

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question for Sin, Cos, Tan Experts. (pictures)

    Hi,

    Is there someone expert in sine, cosine, tangent that can figure out equations for the cool movements below? Or other movements also... I'm looking forward to experiment with particles and graphics, but I suck at trigonometry. I can help with graphics, experimentations and ideas. I'm sure it is pretty much possible to make great particle effects in MMF2 without extensions and seems like there is many users that would benefit from this. With HWA in beta stage, the doors for massive particle amounts are opened

    If you want to cooperate please let me know. These screenshots below are from Xparticle, an open source particle engine for pascal/delphi.












    Thanks

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    it's VERY simple.

    sin works as follows.

    basically provide a value between 0-359 and times it by a your material scale.

    as long as you keep your lowest value 0/359 and your highest value 180 everything will look nice,

    as for cos it basically offsets your value before processing it in sin, so is nothing new.

    and you will probably never need tangent in mmf as you can draw on all the values in play anyway.

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Posts
    402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    Well, for the fourth image, I'd create an Active object, and give it the following alterble values:

    Value A - Angle
    Value B - XPos
    Value C - YPos
    Value D - Velocity

    Start of frame:
    Set Active_Object(XPos) to Framewidth /2
    Set Active_Object(YPos) to Frameheight /2

    Always:
    Active_Object(Angle) add 3
    Active_Object(Velocity) add 1
    Set Active_Object(XPos) to Active_Object(XPos) + Cos(Active_Object(Angle)) * Active_Object(Velocity)
    Set Active_Object(YPos) to Active_Object(YPos) + Sin(Active_Object(Angle)) * Active_Object(Velocity)
    Set Active_Object(X Position) to Active_Object(XPos)
    Set Active_Object(Y Position) to Active_Object(YPos)
    Create Active_Object(-50,-50)

    I think that should work, although it might need some adjusting if it's a bit slow, or fast.

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    Thanks guys,.. I posted my current 'library' of particles here:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=81258#Post81258
    I also posted a link to a video I uploaded showing these effects.

    SEELE: Thanks.. this is hard for me to understand because I had a weak background in math. Anything higher than Bhaskara formula for me is advanced LOL. I've played with tangent in some equations and got pretty fancy results.. I'll see post it soon in the file archive so you can take a look and maybe give some suggestions how to make it looks even fancier

    izac: This is just for spiral movement or make it spread in all directions? Please watch the video to see what I mean.

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    "Thanks.. this is hard for me to understand because I had a weak background in math."

    No excuse, I'm number dyslexic (discalculia), yet I wrote this:

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=67082#Post67082

    Basically, it's how to use Sin and Cos, all illustrated to show what they do.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    Here are some simple trig effects I just made. They are not in any way as cool as the ones in the pictures (and video) though..

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    http://www.create-games.com/project.asp?view=news&id=1046&fid=178

    Some I made with trig a while back.

  8. #8
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    Quote Originally Posted by Popcorn
    Here are some simple trig effects I just made. They are not in any way as cool as the ones in the pictures (and video) though..
    Woah, don't be so modest, those are very impressive and surprisingly simple. Great work on those. The cool thing is that they run smoothly in HWA even with 5000+ objects.

  9. #9
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    The main thing you'll want to look into is Polar Coordinates. Generally you get those funky "round" shapes by converting polar coordinates (of form (R,Θ)) to cartesian (of form (X,Y)).

    You do this through the equation:

    X = R * Cos(Θ)
    Y = R * Sin(Θ)

    To understands the more important facets to it, try reading some of the wikipedia article: http://en.wikipedia.org/wiki/Polar_coordinates


    Cartesian tends to produce square or rectangular systems, while polar produces circular or ellipsal systems.

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question for Sin, Cos, Tan Experts. (pictures)

    Dines: Lol shame on me :P I remember a very very old example of Andrew Mather showing orbit examples with paste into background, that created pretty shapes, all using sine and cosine. Very cool.

    Popcorn: Thanks man... I'll see if I can make something cool with particles using your file


    Pixelthief: Thanks for the info.. I'll definitely take time to study this!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. converting pictures to active pictures
    By andrew36 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th September 2013, 04:55 PM
  2. Experts please help
    By DAH in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 16th September 2009, 11:10 AM
  3. Question Maker Using Text & Pictures
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 17th February 2007, 05:06 AM
  4. Question for ODBC experts
    By Wingamez in forum Multimedia Fusion 2 - Technical Support
    Replies: 31
    Last Post: 13th July 2006, 06:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •