After a while finally understand that openGL does not read the pivot point. Pivot point is actually for the object in the modeling software. We also make another discoveries that trying the scene center should work out when rotating. We did that and it work. However the center in the object are unable to be change. Everything seems to be defined when the model was being drawn before importing. Look like we just got to make do with what we have.
On the 2nd half of the day, we work on the zooming out of camera in exploded view. When in exploded view, some object will be cut out of the screen as they are rotated close to there. So we now use a algorithm to actually move the camera out by a number of z axis from the furthest object so that all the object in the scene will be able to see.
After finishing that, as the object is further now we could see that our translation actually is having some bug.
No comments:
Post a Comment