Hey Guys,
I have a question: I've been working on adding multiple livery support for AI
traffic. What I would like to do is pass the texture directory by means of a
property to sgLoad3DModel().
What I've tried to do is the following (AIModels/AIBase.cxx: about line 166)
model = manager->getModel(path, tpath);
if (!(model))
{
if (tpath != "")
{
string texPath = "Texture/" + tpath;
prop_root->setStringValue("texture-path", texPath.c_str());
}
model = sgLoad3DModel(fg_root,
path,
prop_root,
sim_time_sec);
manager->setModel(path, tpath, model);
}
what I'm trying to do is set a string value and pass that to the sgLoad3DModel
functions. I've been staring at it almost all day, and no matter what I'm
trying, it just doesn't work. Any idea how I can do this?
Cheers,
Durk
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d