Hi, thats actually what I did. I fetched the sourceforge code from last friday, compiled it with scons and MSVS 2005. I didn´t use the dailybuild, that was a wrong info. Then I built the testTerrain linking with OSGContrib.lib/OSGContribD.lib.
While executing I receive an Assertion that "Expression: vector subscript out of range" Maybe its a problem with the MSVS 2005 compiler. VS8 is stricter ( and more correct ) in catching bugs with std::vector vector::reserve(n) does not change the size of the vector. It only a request for allocation of additional memory. vector::size() is unchanged by reserve(). (from http://www.sgi.com/tech/stl/Vector.html) other developper had the same error when using code like > vector::reserve(n); but instead > vector::reserve(n); > vector::resize(n); I could imagine that this could happen during the initialization of GeoPositions3f in OSGTerrain. But this is just my guess, I'm not familiar enough with OpenSG. But maybe somebody else has a comment on that. Would it be helpful to recompile OpenSG using stlport instead?? Thank you very much. Sebastian Zitat von [EMAIL PROTECTED]: > Hello Sebastian, > I don't know if that helps. I fetched the whole OpenSG source from > sourceforge via CVS last week and compiled it, using Scons and MSVS > 2003. Compiling the testTerrain.cpp and linking against > OSGContribD.lib worked at this point. > > The only thing I found was, that it crashed when I pressed the space > key to switch between solid and wireframe (Windows complained, that > the Stack arround the variable current is corrupt or so). I could > resolve this by using the following lines in the key() function: > GLint current[10 ]; > glGetIntegerv(GL_POLYGON_MODE, current); > if (current[0] == GL_LINE){ > std::cout << "switching glPolygonMode to GL_FILL" << std::endl; > glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); > } else if (current[0] == GL_FILL){ > std::cout << "switching glPolygonMode to GL_LINE" << std::endl; > glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); > } > break; > > May be you can fetch the code from sourceforge and compare if there > is some difference, because it worked for me? > Kind regards, > Bjoern > > ----- Ursprüngliche Nachricht ----- > Von: Sebastian Knödel > Datum: Montag, Mai 28, 2007 11:54 am > Betreff: [Opensg-users] OSGTerrain - testTerrain crashes during execution > An: [email protected] > >> Hi there, >> >> I compiled succesfully the daily build of OpenSG 1.8 with the >> OSGTerrain >> contribution. >> After that I used the testTerrain.cpp resp. and >> testTiledTerrain.cpp as >> a starting point. >> I was able to compile both files but the applications crash when >> executed.All the initialization procedures like texture loading >> etc. seemed to >> work without any problems. >> The problem occurs only when the Terrain node is attached to the >> scene.Both applications crash when the mgr->redraw() method in >> the display >> routine is called. >> I wasn't able to trace that further. >> >> Maybe somebody has an idea because that OSGTerrain project could >> be >> really helpful to me. >> >> Thank you in advance! >> >> Sebastian >> >> ----------------------------------------------------------------- >> -------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Opensg-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/opensg-users >> > > ------------------------------------------------------------------------- > Dr. Bjoern Zehner > UFZ Centre for Environmental Research Leipzig-Halle > Permoserstrasse 15 > 04318 Leipzig > Germany > http://www.ufz.de/index.php?en=5673 > Tel: ++49 (341) 235 3979 > Fax: ++49 (341) 235 3939 > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
