[osg-users] writeNode after readNode makes the osgb model much bigger size

2018-01-15 Thread tangrijing
Hi, I read 123.osgb file to a node, and then write it to 456.osgb ,however,the 456.osgb has a 10 times bigger size than 123.osgb. My code is here: osg::ref_ptr node = osgDB::readRefNodeFile(123.osgb); osg::ref_ptr options = new osgDB::ReaderWriter::Options;

Re: [osg-users] writeNode after readNode makes the osgb model much bigger size

2018-01-12 Thread Julien Valentin
Hi Tangrijing You may use osgDB::writeNode(*node, “456.osgb.zip”,options); or try store Images as external compressed ive Cheers jane_rita wrote: > Hi, > > I read 123.osgb file to a node, and then write it to 456.osgb ,however,the > 456.osgb has a 10 times bigger size than 123.osgb. My code