[osg-users] How to implement pagedLOD without reading from files?

Werner Modenbach Werner.Modenbach at texion.eu
Thu Nov 10 03:06:41 PST 2016


Hi Chris,

thanks a lot. I knew it must be easy somehow but I was blind for the
solution.
Yes, I have to subclass ReaderWriter and that's it. Wow!

- Werner -

Am 09.11.2016 um 18:43 schrieb Chris Hanson:
> Basically you make a custom URI scheme to name each "file" in the
> PagedLOD object, like
>
> 12345567890.werner_texion_tile
>
> Then you create and register a pseudoloader that accepts requests for
> "files" ending in the ".werner_texion_tile" extension. But when your
> pseudoloader is called to "load" one of these "files", you simply
> parse the "filename" to get the tile ID from it, and then construct
> the resulting subgraph using the assets already available in memory
> (or over a network, or however you wish to get the real data to make
> the subgraph) and return it as if you had just loaded it from disk.
>
> There's nothing "disk" specific about the URI system in the PagedLOD
> subsystem.
>
>>
>
> _______________________________________________
> 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/20161110/c9b8e9ec/attachment-0003.htm>


More information about the osg-users mailing list