Hi Robert, Thanks for the prompt reply!
I noticed it does not add the imagery data so textures get added as file paths :) However, I want to avoid the model files (.3ds, .obj, .osgt) data getting exported in the scene as it anyway resides on the server where the the scene is getting passed ( only the transform node for the model with the identifier of model file seems sufficient on the server end) With the model-data, the file size is huge and duplication of same model being passed back to the server. I understand that the model once loaded is a node (group/geode) and the osgDB reader/writer plugin just traverses all the nodes and serializes all the node properties. Is there a way I can achieve this? Best regards, Sumit On Fri, Aug 23, 2013 at 2:45 PM, Robert Osfield <[email protected]>wrote: > Hi Sumit, > > By default the .osgt and .osgx won't save the imagery to the files so will > just store the file paths to the original files. > > So just do: > > osgDB::writeNodeFile(*mymodel, "myfile.osgt"); > > Robert. > > > On 23 August 2013 06:13, Mots G <[email protected]> wrote: > >> Hello all, >> I'm trying to save the scene-graph to pass it across to a server. The >> scene-graph may contain plenty models/materials/textures which were >> initially fetched from the server. >> >> Is there a way I can save the scene-graph with only the relevant >> information and not add to it the entire node for models/textures which >> anyway reside on the server (but the transformations and positions). Also, >> would it be possible to re-generate the scene using these references (the >> reference could be entire path or some model-id associated on the server) >> >> I'm using the osgDB reader/writer extension to save the root as an 'obj' >> format. >> >> Sorry I'm a noob to this and couldn't figure out. >> >> Thanks, >> Sumit >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

