Hi John,
To read from memory, you can get the plugin you want by calling

  osgDB::Registry::getReaderWriterForExtension(...) or
  osgDB::Registry::getReaderWriterForMimeType(...)

and then call the stream version of readNode:

  ReaderWriter::readNode(std::istream& in, ...);

Glenn Waldron - Pelican Mapping

On Fri, Aug 26, 2016 at 8:20 AM, John Farrier <[email protected]>
wrote:

> Hi,
>
> I have a set of 3D models i would like to distribute, but their license is
> restrictive and I must provide a way to protect the IP.  The best way to do
> this, I think, is to use a format that encrypts the models on disk and
> decrypts them when I read them into memory.  Is there any support for this
> within OSG or its standard plugins?  If not, can the osgdb utilities read a
> model from memory, or just from files?
>
> Thank you!
>
> Cheers,
> John
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68452#68452
>
>
>
>
>
> _______________________________________________
> 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