User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: [HowTo] Compare two images when loaded in Picture?

  1. #11
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    After a while i'll post an example of the new system i've write.

    (it's a personnal project, then, i'll just post a sample mfa, not my full project!)

  2. #12
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    Surface Object also has an expression to get the alpha channel...
    Working as fast as I can on Fusion 3

  3. #13
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    I know that LB, but, i cannot make a test "pixels by pixels" on the Alpha Channel, it simply no work.

    And the solution by checking the CRC work very well, BUT.. (there is a BUT..)..

    It slowdown the FPS when a picture is saved on the disk.
    (Each 20 seconds i save a picture from Surface object.. and each 20 seconds it make a slowndown to the FPS for a micro little time..)..

    Then.. i have an another problem now..

    EDIT: I think i've perhaps an idea (without checking the CRC object)

  4. #14
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    So no, if i check pixels by pixels on AlphaAt() action with 2 loops (one for Width position ( and other for Height position (Y))..

    When the check is processed, the game lose quickly somme FPS (and we gets a bad bad bad gameplay as it...)

    So.. Any other idea (or any quiclky check algorythm idea?)

  5. #15
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    Do you just want to compare two images or two files?
    Working as fast as I can on Fusion 3

  6. #16
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    Two images LB

    For be precise: Two "Alpha Channel's Images" of each 1 PNG images stocked in a Surface Object.

    (but 2 different Surface Objects)

    If i use the method of Saving pictures each 20 seconds and compare with a CRC object.. => FPS slowdown quickly (10ms)

    If i use the method of Comparing Alpha's Channel pixels by pixels each 20 seconds in 2 loops (one for X(WIDTH), other for Y(HEIGHT) ) => FPS slowdown quickly (10ms).

    This two methods works very well but affect the performance of the game..


  7. #17
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    So if i set-up in Global Events and NOT into the game frame..

    Sometimes: FPS not slowdown, Sometimes: FPS slowdown..

    This is making me ... well, you know what i mean..

  8. #18
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [HowTo] Compare two images when loaded in Picture?

    OK, it's good.

    For your informations guys, the problem was:

    Clickteam movement controller when taked by a loop slowdown the FPS. If while the loop, objects is moved.

    Then, before the loop: Stop the movement
    After the loop: Start the movement.

    Thanks for your help LB, Hernan, and.. Looki (because its Surface's extension is the ONLY extension which can achieve what i research for!)

    For the moment, it seem it's good..
    But if i have an another problem, i come back here

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Good Example of the Animated Picture Object using Images
    By Gullyking in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th June 2012, 06:30 PM
  2. 'Compare to one of the alterable values' VS 'Compare two general values'
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st January 2012, 06:26 PM
  3. Re sizing Flash Images Plus machine loaded file
    By Apex in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 17th November 2011, 11:51 AM
  4. How can I compare two images?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st September 2009, 02:51 AM
  5. HowTo: get an alterable Value from Lua
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th August 2007, 01:46 AM

Posting Permissions

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