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

View Single Post
Old 09-15-2008, 03:00 AM   #2 (permalink)
CaptainRedmuff
New Member
 
Join Date: Jun 2008
Location: North Yorkshire, UK
Age: 27
Posts: 75
CaptainRedmuff is an unknown quantity at this point
Default

Sorry to bump the post, but i could really use some help with this one.

It seems that rotations must be made around the origin of the screen/device (0.0, 0.0) but surely that can't be the case as not every object/model rendered is required to rotate around the origin, but rather its own origin, if that makes sense?

Is there a way to set the rotation origin, or translate the object to the screen origin, rotate and back again?

Using the coordinate system 0.0, 0.0, 480.0, 320.0 for landscape orientation works perfectly, but obviously this issue with rotating objects around the origin is completely holding up any progress i can make.

Please, if anyone knows of a method, or any tutorials that can outline what must be done, i would be very grateful for any help you guys can throw my way

Just for completeness, the code i'm using for rotation is:

Code:
glRotate(rotation, 0.0, 0.0, 1.0);
Simple as it may seem, that one single line has caused me a weekend of headaches and very little progress. I'm positive there must be a way to fix this, can anyone point me in the right direction please?

Thanks for reading.
CaptainRedmuff is offline   Reply With Quote
 

» Advertisements
» Online Users: 318
13 members and 305 guests
.Snipe, brainspoon, Domele, Gary OBrien, greeneye82, jbro, JMLdev, matador1978, mobilaga, m_rozzi, Newbie123, Objective Zero
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,553
Threads: 94,078
Posts: 402,735
Top Poster: BrianSlick (7,990)
Welcome to our newest member, zulemamn37
Powered by vBadvanced CMPS v3.1.0

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