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