User Tag List

Results 1 to 3 of 3

Thread: Draw with Linear Interpolation

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Draw with Linear Interpolation

    OK, I redid my tablet drawing example using an active object instead. Unfortunately, I'm still having trouble with the erasing thing. How can I make it so that the created background is destroyed within a 14x14 area (with center XMouse, YMouse)?
    Attached files Attached files

  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: Draw with Linear Interpolation

    I can't seem to download the file for some reason.

    However there is an option under the story board object(i think) 'Clear zone', however it is not very dynamic.

    Perhaps you could use a 14x14 size object so simply re-paint the backdrop with the correct color... Note that under direct3d display mode this may act like a memory leak (because of how created backdrops are handled), also this method only works if your using the 'paste object in to background'.

    If you are instead using the 'create backdrop object' function, then you could use the 'Delete created backdrop at' function.

    Good luck.

  3. #3
    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: Draw with Linear Interpolation

    Okey i Managed to download the file...

    There are several mistakes in the erase loop;

    *First; both the x and y center position are dependent on xmouse.
    *Secondly when referencing the loop index in the expression you use 'erasex' instead of 'erase'

    *Also the actual expression isn't right, your's looks like this;

    xpos:
    XMouse+7-LoopIndex("eraseX")

    ypos:
    XMouse+7-LoopIndex("eraseX") mod 14

    It should look LIKE (or similar to)

    xpos:
    XMouse-7+LoopIndex("erase") mod 14

    ypos:
    ((YMouse-7+LoopIndex("erase")) - (YMouse-7+LoopIndex("erase") mod 14))/14

    Good luck.

Similar Threads

  1. Linear Interpolation Example for RickyRombo
    By netninja in forum File Archive
    Replies: 2
    Last Post: 25th February 2010, 02:23 AM
  2. Linear Filtering?
    By stuckboy in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 19th July 2009, 01:10 PM
  3. Interpolation Object
    By Sam_Dillard in forum Extension Development
    Replies: 2
    Last Post: 19th December 2006, 05:54 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
  •