Re: [osg-users] Add ancillary data file to an archive

2011-03-29 Thread Eduardo Poyart
I see. That's an alternative. The only thing is if I have more than one I have to serialize my collection class as well. The way I did it so far, by making my data items as osg::Nodes, I could add all of them to the root group and I didn't need to serialize the collection. But I'll think about the

Re: [osg-users] Add ancillary data file to an archive

2011-03-29 Thread Thrall, Bryan
Eduardo Poyart wrote on 2011-03-28: > But I can't add an osg::Object to an osg::Group... I want my data to be > saved with the scene, so I made it derive from osg::Node and added it > to my root group. Unless there is another way? You can add it as user data (see osg::Object::setUserData()) if it

Re: [osg-users] Add ancillary data file to an archive

2011-03-28 Thread Eduardo Poyart
But I can't add an osg::Object to an osg::Group... I want my data to be saved with the scene, so I made it derive from osg::Node and added it to my root group. Unless there is another way? Eduardo On Mon, Mar 28, 2011 at 11:00 AM, Robert Osfield wrote: > HI Eduardo, > > On Mon, Mar 28, 2011 at 6

Re: [osg-users] Add ancillary data file to an archive

2011-03-28 Thread Robert Osfield
HI Eduardo, On Mon, Mar 28, 2011 at 6:52 PM, Eduardo Poyart wrote: > I did it with the serializers. The document on the Wiki helped a lot. I > would be lost without it. > The only funny thing is that I had to make my class derive from Node and add > it to the scene graph, even though it's not gra

Re: [osg-users] Add ancillary data file to an archive

2011-03-28 Thread Eduardo Poyart
I did it with the serializers. The document on the Wiki helped a lot. I would be lost without it. The only funny thing is that I had to make my class derive from Node and add it to the scene graph, even though it's not graphics related at all! Thanks Eduardo On Mon, Mar 28, 2011 at 12:57 AM, Rob

Re: [osg-users] Add ancillary data file to an archive

2011-03-28 Thread Robert Osfield
Hi Eduardo, On Sun, Mar 27, 2011 at 11:31 AM, Eduardo Poyart wrote: > There seems to be no easy way to do this. I read the Serialization page on > the wiki. I decided to go ahead and make my data class derive from Node and > write a wrapper for it. Actually the I'd say the serializers are the ea

Re: [osg-users] Add ancillary data file to an archive

2011-03-27 Thread Eduardo Poyart
There seems to be no easy way to do this. I read the Serialization page on the wiki. I decided to go ahead and make my data class derive from Node and write a wrapper for it. On Sat, Mar 26, 2011 at 4:08 PM, Eduardo Poyart wrote: > Hello, > > In my application I need to create a file that consis

[osg-users] Add ancillary data file to an archive

2011-03-26 Thread Eduardo Poyart
Hello, In my application I need to create a file that consists of essentially an OSGB file plus ancillary data. I have this ancillary data in either an external binary file or an in-memory buffer. I thought I could use osg::Archive to do the archiving and to handle the OSGB data. If I can write a