Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Robert Osfield
Hi Nick, I'm not the author of the LightSpacePerspectiveShadowMap.cpp so can't comment too specifically about it. This close to a stable release I don't want to go complicating the build and source code. Robert. On 3 May 2015 at 13:35, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote:

Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Wojciech Lewandowski
Trajce, I wrote that code but its old enough to not remember details. But from what I remember original LispSM paper provided some formula to compute Perspecive Matrix which I implemented and their sample code used different formula and also have found later version of code which used another

Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Trajce Nikolov NICK
Hi Wojtek, thanks for the very techy reply :-). I was more into organizing these three available algorithms at present available through #defines into more structured form (into three separate .cpp files? CMake options). My target is also flight sim and the work you have done there is really

[osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Trajce Nikolov NICK
Hi again Robert, I am seeing your work in the mentioned shadow map technique and as you know there are three versions of the algorithm available through #defines. I found the one that is not default to work the best for me, but this means I have to edit the code every time I update. Any ideas