Re: [osg-users] MinimalShadowMap::ViewData::clampProjection

2014-08-07 Thread Trajce Nikolov NICK
Hi Wojtek, I moved forward with this. Actually I made it work and it works well on the dome. The distortion is coming in realtime from their server and it is changing only the projection matrix. What I did, I saved the pre-distorted matrix in the Camera as UserData and in

Re: [osg-users] MinimalShadowMap::ViewData::clampProjection

2014-08-06 Thread Wojciech Lewandowski
Hi, Trajce, I am on vacations. Quick answer is impossible in my opinion. I would bet that projection software uses some matrix tricks and it would be hard to figure it out without seeing the code and solution. There is a chance though, that matrix obtained there is not a right projection matrix

Re: [osg-users] MinimalShadowMap::ViewData::clampProjection

2014-08-06 Thread Trajce Nikolov NICK
Hi Wojtek, thanks for the fast reply. I am going to investigate this but there is no source code (black box) so it is hard to say. I took very naive approach for the moment since I am not familiar with the code of the MinimalShadowMap that much and will try to force the conditions in the snippet

Re: [osg-users] MinimalShadowMap::ViewData::clampProjection

2014-08-06 Thread Trajce Nikolov NICK
Hi again Wojtek, I read the code of MinimalShadowMap and tried to understand it (at least the part of the clamping of the projection matrix). Did some hacks and got some result. The best results I have got is that the shadows are now still but flickering. Before they were based on the heading and

[osg-users] MinimalShadowMap::ViewData::clampProjection

2014-08-05 Thread Trajce Nikolov NICK
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