xexuxjy / bullet-xna

Automatically exported from code.google.com/p/bullet-xna
Other
21 stars 5 forks source link

Demos - wrong camera aspect ratio #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Aspect ratio of the camera is wrong due to the division of integer screen size 
values in the DemoApplication's ctor.

This
m_aspect = m_glutScreenWidth / m_glutScreenHeight; //(800/600 = 1)

should be changed to

m_aspect = m_glutScreenWidth / (float)m_glutScreenHeight; //(800/600 = 1.333)

Original issue reported on code.google.com by cepnox...@gmail.com on 5 Jan 2013 at 12:19

GoogleCodeExporter commented 9 years ago
Thanks. Will test and update this.

Original comment by xexu...@gmail.com on 7 Jan 2013 at 10:26

GoogleCodeExporter commented 9 years ago
Added fix. thanks

Original comment by xexu...@gmail.com on 7 Jan 2013 at 8:19