<div dir="ltr"><div><div><div>Hi Joe,<br><br></div>By default the .osgb output will embed the image data within the .osgb when you call writeNodeFile(..), so no external images will be written out. You can control behaviour of the plugin by passing in different options string. These are listed when you run:<br><br><br></div> osgconv --format osgb<br><br></div>The output is:<br><br><br><div><div>
<div>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ osgconv --format osgb
</span><br>Plugin osgPlugins-3.3.9/osgdb_osg.so
<br>{
<br> ReaderWriter : OSG Reader/Writer
<br> {
<br> features : readObject readNode writeObject writeNode <br> extensions : .osg OpenSceneGraph Ascii file format
<br> extensions : .osgs Pseudo OpenSceneGraph file loaded, with file encoded in filename string
<br> options : OutputTextureFiles Write out the texture images to file
<br> options : includeExternalReferences Export option
<br> options : precision Set the floating point precision when writing out files
<br> options : writeExternalReferenceFiles Export option
<br> }
<br> ReaderWriter : OpenSceneGraph Native Format Reader/Writer
<br> {
<br> features : readObject readImage readNode writeObject writeImage writeNode <br> extensions : .osg2 OpenSceneGraph extendable format
<br> extensions : .osgb OpenSceneGraph extendable binary format
<br> extensions : .osgt OpenSceneGraph extendable ascii format
<br> extensions : .osgx OpenSceneGraph extendable XML format
<br> options : Ascii Import/Export option: Force reading/writing ascii file
<br> options : Compressor=<name> Export option: Use an inbuilt or user-defined compressor
<br> options : ForceReadingImage Import option: Load an empty image instead if required file missed
<br> options : SchemaData Export option: Record inbuilt schema data into a binary file
<br> options : SchemaFile=<file> Import/Export option: Use/Record an ascii schema file
<br> 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 fi<br>lename; <WriteOut> writes Image::data() to disk as external file.
<br> options : XML Import/Export option: Force reading/writing XML file
<br> }
<br>}
<br><br>
<br></span></div>
<div>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">$ osgconv --format osgb
</span><br>Plugin osgPlugins-3.3.9/osgdb_osg.so
<br>{
<br> ReaderWriter : OSG Reader/Writer
<br> {
<br> features : readObject readNode writeObject writeNode <br> extensions : .osg OpenSceneGraph Ascii file format
<br> extensions : .osgs Pseudo OpenSceneGraph file loaded, with file encoded in filename string
<br> options : OutputTextureFiles Write out the texture images to file
<br> options : includeExternalReferences Export option
<br> options : precision Set the floating point precision when writing out files
<br> options : writeExternalReferenceFiles Export option
<br> }
<br> ReaderWriter : OpenSceneGraph Native Format Reader/Writer
<br> {
<br> features : readObject readImage readNode writeObject writeImage writeNode <br> extensions : .osg2 OpenSceneGraph extendable format
<br> extensions : .osgb OpenSceneGraph extendable binary format
<br> extensions : .osgt OpenSceneGraph extendable ascii format
<br> extensions : .osgx OpenSceneGraph extendable XML format
<br> options : Ascii Import/Export option: Force reading/writing ascii file
<br> options : Compressor=<name> Export option: Use an inbuilt or user-defined compressor
<br> options : ForceReadingImage Import option: Load an empty image instead if required file missed
<br> options : SchemaData Export option: Record inbuilt schema data into a binary file
<br> options : SchemaFile=<file> Import/Export option: Use/Record an ascii schema file
<br> 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 fi<br>lename; <WriteOut> writes Image::data() to disk as external file.
<br> options : XML Import/Export option: Force reading/writing XML file
<br> }
<br>}
<br><br>
<br></span></div>
<br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 June 2015 at 07:30, Joe Kindle <span dir="ltr"><<a href="mailto:seganom@gmail.com" target="_blank">seganom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Ive been struggling in saving osg and osgb files.<br>
When i load osgb model, and then trying to save it (using "saveNodeFile"), the texture is missing. (Probably not saved with the file)<br>
How can i solve that ?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Joe<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64089#64089" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64089#64089</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>