Actually the answer you wrote on the mailing list fixed the issue.
I just added this line before the setViewport call:
Code:
_viewer-getCamera()-setProjectionMatrixAsPerspective(45.0, aspectRatio, 0.5,
10);
When aspect ratio is the view's frame's width/height.
Thanks!
--
Hi Lenny,
I am not familiar with iOS so can't provide specific answers. I do
vaguely recall some submissions from contributors working under iOS
that related to aspect ratio so there is change that OSG-3.2 might
address some of the issues, this is long shot suggestion though but
might be worth a
Hi,
I'm trying to render a scene onto a UIView that's part of a UIViewController,
so that I can have iOS UI overlay on top of the OSG view.
I tried to achieve this by using the GraphicsWindowIOS class and binding it to
my internal view. This works fine except for one issue, the scene seems
3 matches
Mail list logo