[osg-users] Segfault in VTP, but looks like OSG: SOLVED

Robert Osfield robert.osfield at gmail.com
Sat Sep 13 05:29:10 PDT 2008


Hi Pascal,

I wonder if you could add something to the VTP build system to detect
problems with Matrixd being used for Matrix.  The other thing one
might be able to do is adapt VTP so that it can handle Matrxf and
Matrixd versions of Matrix.  With OSG 2.6 onward there now is an
include/osg/Config which includes details of the which version of
Matrix is used, perhaps this might be of some help.

As a general note, I've always been surprised by VTP using float
Matrices, as GIS related app I would have expect double Matrices as it
solves many of the precision problems associated with real world data.

Robert.

On Sat, Sep 13, 2008 at 9:40 AM, Pascal Rheinert
<rheinert at ingenius-software.de> wrote:
> Hi,
> I got exactly the same error when trying to start VTP
> (vterrain.org) on my linux 64 bit (opensuse 11).
> It compiled but Enviro crashed whenever an osg-function
> was called from within VTP.
>
> And I solved it now:
> The reason is (as expected) a discrepency between what
> OSG does by default and what VTP expects concerning
> the Matrix:
> OSG-default is double (which can be changed via the
> OSG_USE_FLOAT_MATRIX value in CMakeCache.txt - by default it is off)
> and
> VTP expects FLOAT (and you should not change it there).
>
> So just do the following
> cmake . -DCMAKE_BUILD_TYPE=Release
> vi CMakeCache.txt  --> change OSG_USE_FLOAT_MATRIX from off to on
> make
> make install
>
> and then compile the VTP-package. And it works great!
> Thanks for the splendid software (OSG and VTP)!!!
>
> -- Pascal
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list