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

Reply via email to