Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Splatter effect
View Single Post
Old 12-30-2009, 11:07 AM   #4 (permalink)
warmi
Registered Member
 
Join Date: Nov 2008
Posts: 234
warmi is on a distinguished road
Default

Quote:
Originally Posted by josh View Post
Cheers - looks good.

Any hints on how you went about this? Also; any ideas of how you would get a smudging effect ie instead of clearing the area you move them with the finger (if that makes sense)?
I am not entirely sure what do you mean by a smudging effect.

If you mean true real-time transformations ( the way Photoshop handles Smudge Tool) then there is not much choice but doing it on the CPU which would be slow (mostly because you would have to reupload the resulting texture on every frame).

The way I handed it was to render to texture a black/white mask in response to user actions and use the mask texture as an alpha image when rendering two textures ( the background and the foreground.) to the screen.

I am not sure how would it work for you, but theoretically you could have two versions of the same image, one containing your pristine image and another a smudged version of it and use the same approach to mask them based on user input.


Another way would be to use a grid approach - which is essentially an image rendered on a grid of quads and then get the desired effect by manipulating quad coordinates.
Given dense enough mesh, it works fine for all kinds of image transformations.

Here is an example ( using low res grid designed for a specific effect - you would have to use denser mesh)

http://www.warmi.net/tmp/Image.mov
warmi is offline   Reply With Quote
 

» Advertisements
» Online Users: 659
20 members and 639 guests
ADY, BdR, Droverson, Duncan C, esoteric, givensur, gmarro, iAppDeveloper, jimmymacapps, krisk, mer10, mraalex, pipposanta, renesteg, sacha1996, smithdale87, Steve Shanks, Touchmint, Xaphann, Yoshkow
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,422
Threads: 94,019
Posts: 402,546
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:32 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.