经过测试osgDB::readRefNodeFile是无法支持中文路径的。
//获取osgb加载模块
osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension("osgb");
//使用w_char_t*这个重载
auto f = std::ifstream(*LoadPath, 33);
//readNode可以从流读取osgb文件
osgDB::ReaderWriter::ReadResult rr = rw->readNode(f); node = rr.getNode(); f.close();
标签:中文,rw,readNode,路径,osgb,ReaderWriter,osgDB From: https://www.cnblogs.com/menghuijinxi/p/16856847.html