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 Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-11-2010, 04:56 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 16
burf2000 is on a distinguished road
Default OpenGl : Finding out your current position

Right imagine your at 0,1,0 or even a cube is. You then rotate 45% (glRotatef), then you move that object forward (glTranslate 0,0,10) so you move that object 10 forward.

How do you then get that objects position?
burf2000 is offline   Reply With Quote
Old 12-12-2010, 02:49 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 234
warmi is on a distinguished road
Default

Quote:
Originally Posted by burf2000 View Post
Right imagine your at 0,1,0 or even a cube is. You then rotate 45% (glRotatef), then you move that object forward (glTranslate 0,0,10) so you move that object 10 forward.

How do you then get that objects position?
Don't use OpenGL matrix functions but instead your own and simply transform a point using the same matrix.
warmi is offline   Reply With Quote
Old 12-12-2010, 12:10 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 16
burf2000 is on a distinguished road
Default

Quote:
Originally Posted by warmi View Post
Don't use OpenGL matrix functions but instead your own and simply transform a point using the same matrix.
I don't completely understand? Any examples?
burf2000 is offline   Reply With Quote
Reply

Bookmarks

Tags
opengl

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: 413
11 members and 402 guests
7twenty7, ChrisYates, djohnson, gmarro, hussain1982, Kirkout, Retouchable, skrew88, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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