Hi guys,
I wanted to created a camera like the default camera, but when the window resizes it still fill the screen with the same aspect ratio (and looks strange).
Then i added
self.accept('window-event', self._adjustAspectRatio)
and
def _adjustAspectRatio(self,arg):
if self.camera:
self.lens.setAspectRatio(base.getAspectRatio())
(the image is a billboard under “render”)
the aspect ratio now works well but still different from the default base.cam
so…how does it work?