Hello Daniel, daniel trindade wrote: > Reading these e-mails, i concluded that OpenSG has some support for > libmini. But when searching for it, i was not able to find anything on > the source code. Where can i find it?
have you looked in gerrits github addons tree: http://github.com/vossg/OSGAddOnsGV I'm not sure if it's in there, but that is the location mentioned upthread. Perhaps Gerrit can chime in with more details. > Also, i tried to run testQuadTreeTerrain.cpp, but it does not work. It > gives an error of vector out of range. The callstack is: > > > msvcp80d.dll!std::_Debug_message(const wchar_t * message=0x0146eff0, > const wchar_t * file=0x0146d840, unsigned int line=741) Line 24 C++ > > OSGDrawableD.dll!std::vector<OSG::Point<float,3>,std::allocator<OSG::Point<float,3> > > > >::operator[](unsigned int _Pos=1001000) Line 741 + 0x17 bytes C++ > > OSGDrawableD.dll!OSG::MField<OSG::Point<float,3>,0,std::allocator<OSG::Point<float,3> > > > >::operator[](unsigned int index=1001000) Line 591 C++ > OSGDrawableD.dll!OSG::QuadTreeTerrain::calcD2Value(int centerX=500, > int centerZ=500, int width=1000) Line 740 + 0x3c bytes C++ > OSGDrawableD.dll!OSG::QuadTreeTerrain::calcD2ErrorMatrixRec(int > centerX=500, int centerZ=500, int width=1000, int level=1) Line 701 + > 0x14 bytes C++ > OSGDrawableD.dll!OSG::QuadTreeTerrain::calcD2ErrorMatrix() Line 664 C++ > OSGDrawableD.dll!OSG::QuadTreeTerrain::changed(const unsigned __int64 > whichField=7617560, unsigned int origin=8, unsigned __int64 details=0) > Line 1961 C++ > OSGBaseD.dll!OSG::ContainerChangeEntry::commitChanges() Line 183 + > 0x1d bytes C++ > > OSGBaseD.dll!OSG::ChangeList::doCommitChanges<&OSG::ContainerChangeEntry::commitChanges>() > > Line 420 C++ > OSGBaseD.dll!OSG::ChangeList::commitChanges() Line 441 C++ > OSGUtilD.dll!OSG::commitChanges() Line 201 + 0x19 bytes C++ > OSGUtilD.dll!OSG::SimpleSceneManager::showAll() Line 748 C++ > testQuadTreeTerrain.exe!doMain(int argc=1, char * * argv=0x0467ff08) > Line 275 + 0x15 bytes C++ > testQuadTreeTerrain.exe!main(int argc=1, char * * argv=0x0467ff08) > Line 282 + 0xd bytes C++ > testQuadTreeTerrain.exe!__tmainCRTStartup() Line 597 + 0x19 bytes C > testQuadTreeTerrain.exe!mainCRTStartup() Line 414 C > kernel32.dll!7c817077() > [Frames below may be incorrect and/or missing, no symbols loaded for > kernel32.dll] > > The height map i tried to load has a size of 1000 x 1000. The error > occurs because calcD2Value tries to access v[1001000] when v has a size > of 1000000. Is this a bug? yes, it seems the index calculation has an off by one error if width is even (which is pretty bad if you want to use power of two sized heightmaps... ;) ). I'll take a look if I can fix it, I'm not very familiar with the code, so this mostly depends on whether this mistake is only in calcD2Value or if similar ones are all over the place. Cheers, Carsten ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users