I'm trying to implement a transformation that I'm hoping OSG functions will
simplify. Basically, I have a polygon defined by az/el coordinates on a unit
sphere. However, I want to visualize the sphere with a rectangular region.
The rectangular region would map to the entire sphere where X is
Clearing the modelview and projection matrices helped a great deal. Thanks
hybr! It now works as intended ... up to a point that is difficult to explain.
I get the digital zoom effect until about 13x. At that point, the video
suddenly starts translating instead of zooming. And instead of
UGH! I just found that I was mistaken about the video growing properly without
the stencil. It actually doesn't. Once its viewport exceeds a certain size,
it no longer renders as expected. I think I've come as far as I can here.
Thanks anyway.
Doug
--
Read this topic online
Hi,
We have an OSG-based application that uses a 3rd party library to draw video.
We want my application to perform a digital zoom on this video. Given the
API to this library, we wrote an OSG node with a draw callback that calculates
the viewport for the video to draw in, and lets the
4 matches
Mail list logo