Re: [osg-users] writeNodeFile with texture infomation

2016-09-18 Thread Han Hu
I have figured out a solution. The steps are as the following, the core file for the solution lies in OutputStream::writeImage function. 1. To write a image (e.g., *.jpg) inside a file, we need the WRITE_INLINE_FILE mode, which is set by Code: osgDB::Options options; options.setOptionString("

[osg-users] writeNodeFile with texture infomation

2016-09-17 Thread Han Hu
Hi, I am currently doing some preprocessing with textured meshes and save the output node to another file. The input node is osgb and has texture information embedded. However after SmoothVisitor and using the writeNodeFile to another osgb file, the texture file is missing. The same problem a