Merged improvements to osgVolume from svn/trunk using :

svn merge -r 10100:10137 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osgVolume
This commit is contained in:
Robert Osfield
2009-05-05 12:54:16 +00:00
parent 7e84617d24
commit 34c458f075
3 changed files with 66 additions and 16 deletions

View File

@@ -98,9 +98,25 @@ osg::Node* createCube(const osg::Vec3& center, float size, unsigned int numSlice
void FixedFunctionTechnique::init()
{
osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init()"<<std::endl;
osg::notify(osg::INFO)<<"FixedFunctionTechnique::init()"<<std::endl;
if (!_volumeTile) return;
if (!_volumeTile)
{
osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no volume tile assigned."<<std::endl;
return;
}
if (_volumeTile->getLayer()==0)
{
osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no layer assigend to volume tile."<<std::endl;
return;
}
if (_volumeTile->getLayer()->getImage()==0)
{
osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no image assigned to layer."<<std::endl;
return;
}
float alphaFuncValue = 0.1;