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.