View Full Version : center xyz in glulookat
can i use glmultmatrix with center xyz coordinates somehow ? the purpose is to do rotation in centerxyz coords,but onlý centerxyz coords.what would be the best solution for my problem ?
09-24-2000, 12:18 AM
I don't really know what your problem is, but if you want to rotate a point in R3 around another point in R3 (not (0,0,0)), you must:
- substract center point from point which needs to be rotated
- rotate point around the origin
- add the center point to the point that has just been rotated around the origin.
Hoped that helped
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.