Added support for Camera::PACKED_DEPTH_STENCIL_BUFFER to .osg and .ive formats

This commit is contained in:
Robert Osfield
2008-11-09 11:56:02 +00:00
parent 2090fb1450
commit 5bb6fe2ee7
4 changed files with 58 additions and 41 deletions

View File

@@ -38,6 +38,7 @@
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
@@ -483,6 +484,8 @@ int main( int argc, char **argv )
osg::Group* rootNode = new osg::Group();
rootNode->addChild(createPreRenderSubGraph(loadedModelTransform,tex_width,tex_height, renderImplementation, useImage, useTextureRectangle, useHDR, samples, colorSamples));
osgDB::writeNodeFile(*rootNode, "test.ive");
// add model to the viewer.
viewer.setSceneData( rootNode );