[osg-users] Spherical polygon to rectangular

2012-04-06 Thread Doug Domke
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

Re: [osg-users] GL_STENCIL_TEST in draw implementation callback

2012-03-16 Thread Doug Domke
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

Re: [osg-users] GL_STENCIL_TEST in draw implementation callback

2012-03-16 Thread Doug Domke
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

[osg-users] GL_STENCIL_TEST in draw implementation callback

2012-03-15 Thread Doug Domke
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