On 3/3/2010 1:09 AM, Sid Vic wrote: > 1. Is it possible to implement my own load routine for pagedLOD so it will > use the compressed ByteArrays instead of load images from disk? > 2. If i decompress the images they are QImages from Qt-Gui-Toolkit. Is there > a simple way to convert them to a osg::Image or later a texture? > 3. How do i know which Node correspond to which Image? For example: > One Node needs to load a texture, because the viewing distance decreases. How > does it know it have to load image number 75367?
Use a pseudo-loader to load "files" named things like "75367.myloader" and register a plugin to catch loads to ".myloader" format "files". At that point, you can parse the "75367" string and generate and return a Node whatever way you want, it doesn't have to involve files, or the "75367" filename at all. I can't comment on the Qt QImage conversion. > Cheers, > Sid -- Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com PixelSense Landsat processing now available! http://www.alphapixel.com/demos/ "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org