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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2010, 06:40 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default Struggling my head with squares...

Hi there!

I'm working in a project relatively simple but with some graphical difficulties... I need to interact with images and make it deform by user's touch, and I don't know how to make it run fine.
Now I'm using OpenGL (because I think it's the most powerful graphical source on iPhone) and using 2D projection with images. I've modified images to let it's vertex to be modified as users touches them, but I can't think a way of modifying all the rectangle (so each vertex can be modified, but there's no way to modify a rectangle's side because image is defined by it's four vertices so I don't know how can it be done)... Any idea? The problem is that images are all included in a rectangle or a square, so modifying the image means modifying one of it's four vertices, but no way to say, for example: "I want that side to transform from a straight line to a curved line as user touches it, but without changing image's vertices..."

I don't know if what I'm asking is quite difficult or nearly impossible, but if anyone thinks can give me a clue (or if someone knows that this is impossible please tell me before I shot myself trying to get this working ^_^) any help will be really really appreciated!

Thanks in advance!
Johanovski is offline   Reply With Quote
Reply

Bookmarks

Tags
forms, graphics, opengl, squares, vertices

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 234
15 members and 219 guests
ADY, Alsahir, cacao, dacapo, Dani77, Desert Diva, djohnson, HemiMG, jansan, M@realobjects, MarkC, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:54 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0