dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Mapping a moving image onto a curved surface

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    26

    [RESOLVED] Mapping a moving image onto a curved surface

    What I want is to have an image moving as if it were on a wall curving towards the observer.

    The enclosed .fla uses a brute-force solution - creating fifty copies of the same MC, which has a one-pixel-wide mask. However, this is a very slow & resource-heavy solution.

    I've looked into transform.matrix, but no luck - it only allows skewing, rotation etc, as far as I can see.

    Any help will be appreciated!
    Attached Files Attached Files
    Last edited by matthijz; 08-16-2006 at 04:19 AM.

  2. #2
    Warrior Monk
    Join Date
    Jul 2006
    Posts
    57
    holy that is nice... i can't help, but it is a very good job.

  3. #3
    Senior Member
    Join Date
    Dec 2005
    Location
    No where
    Posts
    105
    transform.matrix would be the way to go, youd have to use the skew to make it seem like the image is curving. kind of a fake 3d effect...

    edit: after looking at your fla, you might want to use something else, mybe use a mask created in as
    Last edited by ck_drknes; 08-11-2006 at 11:22 AM.

  4. #4
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    You might want to look into using a Displacement Map filter instead (I'm assuming you're using Flash 8)

    Here's an example that you might be able to adapt:
    http://www.senocular.com/flash/source.php?id=0.172

    K.

  5. #5
    Junior Member
    Join Date
    Oct 2005
    Posts
    26
    Thanks for your help, deadbeat! Wow. That definitely looks like something I can use - with a bit of thought.

  6. #6
    Junior Member
    Join Date
    Oct 2005
    Posts
    26
    In case anyone else ever wants to do this - here's a slightly messy .fla that shows you how

    Definitely needs cleaning up, but gets the job done.
    Attached Files Attached Files

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center