2D与3D视图(英文)viewing.ppt

Examples of moving all the objects or moving the camera A flight simulator to display the world from the point of view of the pilot: void pilotView{GLdouble planex, GLdouble planey, GLdouble planez, GLdouble roll, GLdouble pitch, GLdouble heading) { glRotated(roll, 0.0, 1.0, 0.0); glRotated(pitch, 1.0, 0.0, 0.0); glRotated(heading, 0.0, 0.0, 1.0); glTranslated(-planex, -planey, -planez); } Orbiting the camera around an object that’s centered at the origin: void polarView{GLdouble distance, GLdouble twist, GLdouble elevation, GLdouble azimuth) { glTra

文档评论(0)

1亿VIP精品文档

相关文档