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
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
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
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
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
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
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
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
8 matches
Mail list logo