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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-28-2010, 05:48 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 11
thomaswguy is on a distinguished road
Default Open GL ES - Adding textures on touch

Hello,

I have been struggling with this for a few days now and would really appreciate some advice.

- I have created a sphere, using Vertices.
- Onto this sphere i have mapped an image of a globe (Completed this process for the two hemispheres separately)
- When i touch the globe i have it so that i am receiving the x, y and z co-
ordinates of that touch.

The issue: when i receive these co-ordinates i would like to map a "Highlighted" image of the selected country to the globe.

So how do you map an image onto an object that is already textured?

Do i create a set of vertices to represent the image and then texture that with the relevant countries image? And how do i allow for the curve of the sphere.? And how does this fit in to the x, y and z co-ordinates i have received from the touch!

Any advice or pointers in the right direction would be hugely appreciated.

Thanks in advance.
thomaswguy is offline   Reply With Quote
Old 04-20-2011, 01:24 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
sambasivarao4u is on a distinguished road
Default Stereo perspective scrollable view iPhone using core animation or quartz

Hi,

I want to develop a view for iPhone which will look like as the attached image, which will have a list of images. where user can swipe left and right. When user clicks on a particular image, it should zoom and cover full screen. when taps again it should go back to original postion.

I did this by learning "open gl es" basics. But I am able to get till swipes. Now struggling to achieve the image selection functionality.

Please let me know,
1.how I can get the image selection using open gl es or
2.how I can get stereo perspective view using core animation or quartz, where I can add images as subviews.


http://i.imgur.com/mHKUr.png

Thanks
Shiva

Last edited by sambasivarao4u; 04-20-2011 at 01:26 AM.
sambasivarao4u is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, opengl es, textures

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: 354
6 members and 348 guests
headkaze, mistergreen2011, nobstudio, Objective Zero, revg, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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