Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how might I achieve bitmap deformation as seen in the iPhone app Wobble?

Author
Message
CresCo
16
Years of Service
User Offline
Joined: 11th Aug 2009
Location:
Posted: 20th Sep 2010 18:36
Hello all,

I am very interested in applying the warp/deform effect seen in the iPhone app Wobble (it lets you define regions on a raster image and then deforms those regions as it gets input from the accelerometer or the user's touch as if they had adopted faux soft-body physics-- http://www.youtube.com/watch?v=3BxV-QJhe8I) to a game I am making, but I'm not sure how this effect was achieved. Anyone have any advice as to how I might program an analogous bitmap deformation effect using DBPro? If at all possible I'd like to keep the image format raster-based (I know converting the sprite to a flat polygon is one way to go, but it can be a pain), but all advice is welcome!

Thanks,

CCJ

CresCo Games: makers of fine software since 2004
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 20th Sep 2010 20:17
Well using memblocks could work, however i wouldn't sit down doing it from the pixel side, but would do it some other tricky AND easier way. Like making a high resolution plain object, what is textured with the picture to be modified. Lock it onto the camera and position it like it was put there with a simple paste image / sprite command... Then with memblocks / or simple vertex manipulation commands, plus the correct formulas, you can grab and manipulate the vertices to achieve the needed distortions.

This is kinda all theoretically what you need to know, but sorry i don't have time to write it for you. Get to it pal!

Login to post a reply

Server time is: 2026-07-22 12:41:36
Your offset time is: 2026-07-22 12:41:36