# include <config.h>
#endif
-#include <plib/ssg.h>
-
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/point3d.hxx>
#include <simgear/math/vector.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/scene/model/modellib.hxx>
-#include <simgear/scene/model/shadowvolume.hxx>
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
bool FGTileMgr::tile_filter = true;
-extern SGShadowVolume *shadows;
-
// Constructor
FGTileMgr::FGTileMgr():
state( Start ),
long index = tile_cache.get_oldest_tile();
if ( index >= 0 ) {
FGTileEntry *old = tile_cache.get_tile( index );
- shadows->deleteOccluderFromTile( (ssgBranch *) old->get_terra_transform() );
+ // OSGFIXME
+// shadows->deleteOccluderFromTile( (ssgBranch *) old->get_terra_transform() );
old->disconnect_ssg_nodes();
delete_queue.push( old );
tile_cache.clear_entry( index );
SG_LOG( SG_TERRAIN, SG_ALERT,
"Attempting to schedule tiles for bogus lon and lat = ("
<< longitude << "," << latitude << ")" );
+ return; // FIXME
SG_LOG( SG_TERRAIN, SG_ALERT,
"This is a FATAL error. Exiting!" );
- exit(-1);
+ exit(-1);
}
SG_LOG( SG_TERRAIN, SG_INFO,
// tile cache
FGTileEntry *t = tile_cache.get_tile( dm->get_bucket() );
if ( t != NULL ) {
- ssgTexturePath( (char *)(dm->get_texture_path().c_str()) );
+ //OSGFIXME
+// ssgTexturePath( (char *)(dm->get_texture_path().c_str()) );
try {
- ssgEntity *obj_model =
+ osg::Node *obj_model =
globals->get_model_lib()->load_model( ".",
dm->get_model_path(),
globals->get_props(),
dm->get_cache_state(),
new FGNasalModelData );
if ( obj_model != NULL ) {
- dm->get_obj_trans()->addKid( obj_model );
- shadows->addOccluder( (ssgBranch *) obj_model->getParent(0),
- SGShadowVolume::occluderTypeTileObject,
- (ssgBranch *) dm->get_tile()->get_terra_transform());
+ dm->get_obj_trans()->addChild( obj_model );
+ //OSGFIXME
+// shadows->addOccluder( (ssgBranch *) obj_model->getParent(0),
+// SGShadowVolume::occluderTypeTileObject,
+// (ssgBranch *) dm->get_tile()->get_terra_transform());
}
} catch (const sg_io_exception& exc) {
string m(exc.getMessage());