[osg-users] About the plugins...

Emmanuel Roche roche.emmanuel at gmail.com
Fri Nov 16 13:00:34 PST 2007


okay Robert,

and concerning the UserData object in each object ? How would I process if I
wanted this data to be dumped to my .osg files too when I save a node ?

Manu.


2007/11/14, Robert Osfield <robert.osfield at gmail.com>:
>
> Hi Manu,
>
> Extending the .osg format with your own
> callbacks/nodes/state/drawables is pretty easy - just look to see how
> all the NodeKits do it i.e. they have src/osgPlugins/osgParticle,
> src/osgPlugins/osgText.
>
> The .ive format isn't extensible in the same way though, to extend it
> you have to go in a add support directly for you data type.  The is a
> flaw with the .ive format, and makes it inappropriate for the type of
> work you have in mind.
>
> Longer term I'd like a native osg binary format that is extensible,
> but alas its quite a chunk of work so not possible to introduce any
> time soon.
>
> Robert.
>
> On Nov 13, 2007 9:26 PM, Emmanuel Roche <roche.emmanuel at gmail.com> wrote:
> > Hi every one...
> >
> > Suppose I want to construct a special NodeCallback, call it
> "MyCallback",
> > then I load a scene graph from an .ive file, find a given node, assign
> my
> > famous callback to it and then want to write this graph back on the hard
> > drive BUT writing the info in MyCallback also to be able to load it
> again
> > the next time... How should I do this ??
> >
> > I mean, is there a way to "improve the Osg and Ive plugins for them to
> be
> > able to handle other chunk of data,  or do I have to write a full plugin
> > even in this case ? Will I ever be able to write the file as a .ive file
> ??
> > Or Am I bound to select an  other extension ?
> >
> > Sorry, I'm quite a beginner with the plugins writing... :-)
> >
> > regards,
> > Manu.
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071116/f22a8e8e/attachment.htm>


More information about the osg-users mailing list