PDA

View Full Version : transformations order



xenry
12-03-2006, 02:30 PM
Hi guys, a simple question from me :)
I draw an object somewhere in 2d space (not at the origin), but when I want to apply a scale to it, strange things happen. When the object is drawn near the origin, the scaling seem fine. So do I have to move an object back to the origin in order to scale it ?

Mars_999
12-03-2006, 04:41 PM
Post your code, and the answer is no...

darkrappey
12-03-2006, 05:28 PM
You need to call glTranslate before glRotate and glScale.

I had this problem a while back as well.