Bug appears in this situation:

1) Russian Windows (cp1251)
2) You have model with russian name (*модель.FBX *[== *model.FBX*] etc. )
3) myModel = osgDB::readNodeFile("*модель.FBX*");
4) osgDB::Registry::instance()->setOptions(new
osgDB::Options("WriteImageHint=IncludeFile"));
5) osgDB::writeNodeFile(myModel, "out.osgb")

out.osgb will be without textures (black in scene) because they can't be
loaded from *модель.fbm* directory.


std::fstream -> osgDB::fstream will fix it.


*Excitements about "**This patch can be wrong..." are unjustified :)*


KOS


2016-08-03 16:33 GMT+03:00 Konstantin <[email protected]>:

> Patch must be correct!
>
> Premature excitements are unjustified :)
>
>
>
> 2016-08-03 15:38 GMT+03:00 Konstantin <[email protected]>:
>
>> This patch can be wrong...
>>
>> 2016-08-03 13:07 GMT+03:00 Konstantin <[email protected]>:
>>
>>> Hi, Robert!
>>>
>>> I've fixed a little encoding bug for OpenSceneGraph 3.4.0
>>>
>>> std::fstream must be replaced by osgDB::fstream in
>>> src/osgDB/OutputStream.cpp.
>>>
>>> OutputStream.cpp in attachment
>>>
>>>
>>> KOS
>>>
>>>
>>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to