Hi Community,
My client have a setup with image distortion over a dome, multiple
channels, and along with the projectors there is an API coming that is well
integrated in OSG - it modifies the projection matrix somehow. And we are
facing issues with shadows, in the following snippet:
void MinimalShadowMap::ViewData::clampProjection
( osg::Matrixd & projection, float new_near, float
new_far )
{
double r, l, t, b, n, f;
bool perspective = projection.getFrustum( l, r, b, t, n, f );
if( !perspective && !projection.getOrtho( l, r, b, t, n, f ) )
{
// What to do here ?
OSG_WARN << "MinimalShadowMap::clampProjectionFarPlane failed - non
standard matrix" << std::endl;
} else .......
You can see the comment // What to do here ?.
Well, what is to be done there since the distorted matrix coming from the
API seam to be recognized by non standard matrix? Someone have a clue?
Thanks as always !
Nick
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org