Tweaks.
This commit is contained in:
parent
bff544aada
commit
d9bff43bde
3 changed files with 14 additions and 13 deletions
|
@ -1550,15 +1550,7 @@ int main( int argc, char **argv ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
FGPath modelpath( globals->get_options()->get_fg_root() );
|
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() );
|
ssgModelPath( (char *)modelpath.c_str() );
|
||||||
ssgTexturePath( (char *)texturepath.c_str() );
|
|
||||||
|
|
||||||
// Scene graph root
|
// Scene graph root
|
||||||
scene = new ssgRoot;
|
scene = new ssgRoot;
|
||||||
|
@ -1624,6 +1616,15 @@ int main( int argc, char **argv ) {
|
||||||
string acmodel_path =
|
string acmodel_path =
|
||||||
globals->get_props()->getStringValue("/sim/model/path",
|
globals->get_props()->getStringValue("/sim/model/path",
|
||||||
"Models/Geometry/glider.ac");
|
"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()));
|
ssgEntity *acmodel_obj = ssgLoad((char *)(acmodel_path.c_str()));
|
||||||
|
|
||||||
// find moving parts (if this is an MDL model)
|
// find moving parts (if this is an MDL model)
|
||||||
|
|
|
@ -177,8 +177,8 @@ void FGViewerLookAt::update() {
|
||||||
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
|
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
|
||||||
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
|
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
|
||||||
// this in gui.cxx for now just testing
|
// this in gui.cxx for now just testing
|
||||||
extern float quat_mat[4][4];
|
extern float GuiQuat_mat[4][4];
|
||||||
sgPreMultMat4( VIEW, quat_mat);
|
sgPreMultMat4( VIEW, GuiQuat_mat);
|
||||||
// !!!!!!!!!! testing
|
// !!!!!!!!!! testing
|
||||||
|
|
||||||
// Given a vector pointing straight down (-Z), map into onto the
|
// Given a vector pointing straight down (-Z), map into onto the
|
||||||
|
|
|
@ -303,8 +303,8 @@ void FGViewerRPH::update() {
|
||||||
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
|
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
|
||||||
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
|
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
|
||||||
// this in gui.cxx for now just testing
|
// this in gui.cxx for now just testing
|
||||||
extern float quat_mat[4][4];
|
extern float GuiQuat_mat[4][4];
|
||||||
sgPreMultMat4( VIEW, quat_mat);
|
sgPreMultMat4( VIEW, GuiQuat_mat);
|
||||||
// !!!!!!!!!! testing
|
// !!!!!!!!!! testing
|
||||||
|
|
||||||
// Given a vector pointing straight down (-Z), map into onto the
|
// Given a vector pointing straight down (-Z), map into onto the
|
||||||
|
|
Loading…
Add table
Reference in a new issue