Hi All,

   I would like to know how to save the volume image in osgviewer into file.  I 
used a method osgDB::writeNodeFile(*_osgViewer->getSceneData(), 
"testfile.osg").  The output file size is small and it does not contain volume 
data.  I would like to know how to save to file include all volume data.  From 
the output file, there is no osgImage inside ImageLayer.  Do I need to add some 
options into writeNodeFile and what is it?  Many thanks for your help.  Thanks.


This is the output file content:

osgVolume::Volume {
  UniqueID Volume_0
  nodeMask 0xffffffff
  cullingActive TRUE
  StateSet {
    UniqueID StateSet_1
    DataVariance STATIC
    rendering_hint DEFAULT_BIN
    renderBinMode INHERIT
    GL_LIGHTING ON
  }
  num_children 1
  osgVolume::VolumeTile {
    nodeMask 0xffffffff
    cullingActive TRUE
    osgVolume::Locator {
      UniqueID Locator_2
      Transform {
        350 0 0 0
        0 350 0 0
        0 0 60 0
        -175 -175 -30 1
      }
    }
    osgVolume::ImageLayer {
      Use Locator_2
      osgVolume::CompositeProperty {
        osgVolume::AlphaFuncProperty {
          name "AlphaFuncValue"
          value 0
        }
        osgVolume::TransparencyProperty {
          name "TransparencyValue"
          value 1
        }
        osgVolume::SampleDensityProperty {
          name "SampleDensityValue"
          value 0.00499999988824129
        }
      }
    }
    osgVolume::RayTracedTechnique {
    }
  }
}


Regards,
Clement



_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to