Create your nodes and then write them out: osgDB::writeNodeFile(*scenegraph, "myfile.ive");
On 5/4/07, belthil <[EMAIL PROTECTED]> wrote:
Hi Robert! ok! So how can i create a .ive file? Because in fact, i created a little application that reads .xml files (databases) and then builds an octree and creates as many files as there are leaves in the octree. But at the beginning, those files were in .xml format as well. And i thought it would be great if instead of creating .xml files, it creates .osg files to assign to PagedLODs in the main application. But apparently as you said, .osg doesn't store image files. So is it possible for me to create a .ive file for a node (a leaf of the octree) directly in my little application with the image file to use for the pointsprites? If not, what would be the solution? Belthil. > Hi Belthil, > > .osg doesn't store image files, only external filenames, so if you created > the image programatically then it won't have any external file to refer to. > > > The other possibility is that the image could have been removed at runtime > when that texture then texture download the imagery - this is the unref'd on > apply feature of osg::Texture, which is switch on by the Optimizer. > > The .ive format does support writing out of imagery, its also more compact > and faster to load than the .osg format making it much more suitable for > paging. > > Robert. *Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.* _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
