Smudge effect

Discussion in 'iOS Programming' started by SimonBS, Feb 23, 2010.

  1. SimonBS macrumors regular

    SimonBS

    Joined:
    Dec 30, 2009
    #1
    Hi.

    First, I admit that I am definatly not that much into developing for the iPhone but I have been programming other languages for seven years which hopefully helps me udnerstand.

    Some friends and I got a crazy idea for an app. What we need is some sort of a smudge effect which can be used on an image.

    I've made a video of the ideal effect but something similar would also work.

    You can find the video here.

    I don't know if it's very advanced or if it can be done with not that many lines of code?

    And that's why I ask here. Hopefully someone can give me a hint on how to do this or even show some code.

    Don't take me wrong. I'm not asking you to make the app. I just wanna start developing applications and this was just a crazy idea which I would like to make real.

    Thanks in advance.
    Simon B. Støvring
    Denmark
     
  2. HarryWorksInc macrumors regular

    Joined:
    Feb 21, 2010
    #2
    sounds relatively hard

    sound like it could take some fiddling around. I would try something like accesing the
    HTML:
    -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    and the
    [/HTML]-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
    [/HTML]

    and try taking a picture of the place on the screen where the finger is and save it as where the finger was. Then when the picture moves put the picture where the finger is and take a picture again and save that as where the finger was and when the user moves his finger the whole thing starts over. I haven't actually tested this i don't know the exact result but its worth a try. I'm not promising results.
     
  3. SimonBS thread starter macrumors regular

    SimonBS

    Joined:
    Dec 30, 2009
    #3
    That is indeed ridning around. I'm not sure if that's the way to do it (of course, I asked the question to begin with) bu I'm very skeptIc about the result.
    When searching for people looking for a function similar to mine - and believe me, there are not that many results - I read something about making a grid. Then there was a picture showing an image which looked smudged and with a grid on it.
     
  4. HarryWorksInc macrumors regular

    Joined:
    Feb 21, 2010
    #4
    adding blur

    I can imagine that it's hard to find people with similar needs as this. In the video you included the image looked not only "ridning around" but blurred and i think that that would help get the effect you are looking for. There is an apple sample code GLImageProcessing that shows an example of how to blur and maybe if you added the blur effect to each oncoming image you could get the effect shown in your video
     
  5. SimonBS thread starter macrumors regular

    SimonBS

    Joined:
    Dec 30, 2009
    #5
    You see right. Maybe I should try making the blue effect on every image, hopefully I'll understand their example.
    After all it will be one step closer the effect.
     
  6. HarryWorksInc macrumors regular

    Joined:
    Feb 21, 2010
  7. SimonBS thread starter macrumors regular

    SimonBS

    Joined:
    Dec 30, 2009
    #7
    Thanks. And thank for your help :D Of course, is anyone should have any hints or ideas, you are more than welcome to post a reply.

    EDIT: This is what I was talking about when I was mentioning the grid. Actually it looks amazing. I just don't understand how to it (as mentioned, I'm new to iPhone programming and hoped to do this a fairly simple way) but someone might find this thread and find the grid solution useful.

    http://www.iphonedevsdk.com/forum/iphone-sdk-game-development/36722-splatter-effect.html#post156451
     

Share This Page