Hi Robert,
Appears osg::ProxyNode is the way to go. I wasn't aware of it before -
sorry noob here :)
I tried a few samples and it does not embed the entire node data but just
the model path (as desired).

Thanks a lot!

Best regards,
Sumit


On Fri, Aug 23, 2013 at 4:04 PM, Robert Osfield <[email protected]>wrote:

> Hi Sumit,
>
> I guess you could decorate all your external models with a ProxyNode, this
> kinda does what you are looking for, possibly...
>
> If not then you'll just need come up with your own scheme for exporting
> what parts of the scene graph you want to export and not others.
>
> Robert.
>
>
> On 23 August 2013 07:38, Mots G <[email protected]> wrote:
>
>> 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
>>
>>
>
> _______________________________________________
> 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