Jason, What I've found useful is to include TXPArchive.h from the osgPlugins/txp directory in the source, and link your executable with the osgtxp plugin directly. IIRC, this was easy to do under Linux, but was rather more cumbersome to do with VC++. I've got some sample code that pulls info from the TXPArchive if you want an example.
Don > I see. I guess that brings me to my next question: Can you use an overlay > node on a terrain that is being paged? I was hoping to use the bounding > box > corner as an origin for grid lines that I draw over the terrain. I can > probably find a work around to the bounding box issue, but if I can't lay > those gridlines down on a TXP terrain because it is being paged then it > would be good to know before I come up with another solution. > > Thanks, > Jason > > > On 5/1/07, Robert Osfield <[EMAIL PROTECTED]> wrote: >> >> Hi Jason, >> >> On 5/1/07, Jason <[EMAIL PROTECTED]> wrote: >> > >> > I'm getting very large numbers such as -3.4e+38 and 3.4.e+38. >> > >> >> The is an invalid bounding box (default constructed osg::BoundingBox), >> suggesting an empty subgraph. >> >> To test things I have one OpenFlight terrain of some mountainous >> region. >> > I have a TXP or the exact same area, but split into 4 tiles. When I >> grab the >> > corners of the FLT terrain I get world coordinates...something like >> 190,000. >> > When I do the same thing using the TXP I get the much larger numbers >> you see >> > above. >> > >> > Am I going about this the wrong way trying to grab the corners? >> > >> > >> >> Well your getting invalid bounding boxes so yes, you are going the wrong >> way about it. I'm not sure the best way though, the TXP database will >> be >> paged, so you won't actually know how big it is until you start loading >> data. >> >> Robert. >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://openscenegraph.net/mailman/listinfo/osg-users >> http://www.openscenegraph.org/ >> > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
