[osg-users] How to implement pagedLOD without reading from files?
Werner Modenbach
Werner.Modenbach at texion.eu
Fri Nov 11 03:32:49 PST 2016
Hi Chris,
just one more small question.
As to my understanding the ReaderWriter classes are instantiated
automatically
according to the "file extensions". So I get no hands on the instances
of the reader.
How can I give the reader class a reference to my data structures?
Thanks
- Werner -
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/20161111/b4073fc5/attachment-0003.htm>
-------------- next part --------------
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list