Hi Clement,

You can pass hints to the the .osgb, .osgx and .osgt writers via Options
strings.  For details of what is support use the osgconv --formats option
i.e.

$ osgconv --format osgb
Plugin osgPlugins-3.3.5/osgdb_osg.so
{
    ReaderWriter : OSG Reader/Writer
    {
        features   : readObject readNode writeObject writeNode
        extensions : .osg                           OpenSceneGraph Ascii
file format
        extensions : .osgs                          Pseudo OpenSceneGraph
file loaded, with file encoded in filename string
        options    : OutputTextureFiles             Write out the texture
images to file
        options    : includeExternalReferences      Export option
        options    : precision                      Set the floating point
precision when writing out files
        options    : writeExternalReferenceFiles    Export option
    }
    ReaderWriter : OpenSceneGraph Native Format Reader/Writer
    {
        features   : readObject readImage readNode writeObject writeImage
writeNode
        extensions : .osg2                    OpenSceneGraph extendable
format
        extensions : .osgb                    OpenSceneGraph extendable
binary format
        extensions : .osgt                    OpenSceneGraph extendable
ascii format
        extensions : .osgx                    OpenSceneGraph extendable XML
format
        options    : Ascii                    Import/Export option: Force
reading/writing ascii file
        options    : Compressor=<name>        Export option: Use an inbuilt
or user-defined compressor
        options    : ForceReadingImage        Import option: Load an empty
image instead if required file missed
        options    : SchemaData               Export option: Record inbuilt
schema data into a binary file
        options    : SchemaFile=<file>        Import/Export option:
Use/Record an ascii schema file
        options    : WriteImageHint=<hint>    Export option: Hint of
writing image to stream: <IncludeData> writes Image::data() directly;
<IncludeFile> writes the image file itself to stream; <UseExternal> writes
only the filename; <WriteOut> writes Image::data() to disk as external file.
        options    : XML                      Import/Export option: Force
reading/writing XML file
    }
}

Robert.



On 2 March 2015 at 00:05, <[email protected]> wrote:

> Hi,
>
>    I have a question about using writeNodeFile to write volume image into
> file.  Currently, my volume image is reading from external file.  I would
> like to write whole osg scene data into file.  Then I can use osgviewer or
> other viewer to load the file.  My question is the output file does not
> contain any image data.  Anyone know how to do?  Thanks.
>
>
> Regards,
> Clement
>
>
>
> _______________________________________________
> 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