On 5 Sep 2012, at 21:13, ThorstenB wrote:

> The XML reader relies on osgDB to resolve paths now. If 
> osgDB::findDataFile cannot find the file, it returns "", in which case 
> SGModelLib::findDataFile cannot search any additional directories.
> So, maybe osgDB::findDataFile doesn't know about extra directories, 
> while SGModelLib::findDataFile was fg-aircraft aware. Not sure why the 
> change was applied in the first place.

Ah, that's exactly it - we need to use the SGModelLib to get the additional 
paths searched!

Mathias, can you explain what was the problem here which required you to use 
the plain OSG version? My version is simply a wrapper which tries the 
aircraft-dir paths (and soon, some other data directories!) before the default 
osg paths.

James


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to