1
0
Fork 0
This commit is contained in:
curt 2001-01-08 22:01:24 +00:00
parent bff544aada
commit d9bff43bde
3 changed files with 14 additions and 13 deletions

View file

@ -1550,16 +1550,8 @@ int main( int argc, char **argv ) {
}
FGPath modelpath( globals->get_options()->get_fg_root() );
// modelpath.append( "Models" );
// modelpath.append( "Geometry" );
FGPath texturepath( globals->get_options()->get_fg_root() );
texturepath.append( "Models" );
texturepath.append( "Textures" );
ssgModelPath( (char *)modelpath.c_str() );
ssgTexturePath( (char *)texturepath.c_str() );
// Scene graph root
scene = new ssgRoot;
scene->setName( "Scene" );
@ -1624,6 +1616,15 @@ int main( int argc, char **argv ) {
string acmodel_path =
globals->get_props()->getStringValue("/sim/model/path",
"Models/Geometry/glider.ac");
string full_model = globals->get_options()->get_fg_root() + "/"
+ acmodel_path;
int pos = full_model.rfind("/");
FGPath texturepath( full_model.substr(0, pos) );
cout << "Texture path = " << texturepath.str() << endl;
ssgTexturePath( (char *)texturepath.c_str() );
ssgEntity *acmodel_obj = ssgLoad((char *)(acmodel_path.c_str()));
// find moving parts (if this is an MDL model)

View file

@ -177,8 +177,8 @@ void FGViewerLookAt::update() {
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
// this in gui.cxx for now just testing
extern float quat_mat[4][4];
sgPreMultMat4( VIEW, quat_mat);
extern float GuiQuat_mat[4][4];
sgPreMultMat4( VIEW, GuiQuat_mat);
// !!!!!!!!!! testing
// Given a vector pointing straight down (-Z), map into onto the

View file

@ -303,8 +303,8 @@ void FGViewerRPH::update() {
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
// this in gui.cxx for now just testing
extern float quat_mat[4][4];
sgPreMultMat4( VIEW, quat_mat);
extern float GuiQuat_mat[4][4];
sgPreMultMat4( VIEW, GuiQuat_mat);
// !!!!!!!!!! testing
// Given a vector pointing straight down (-Z), map into onto the