Tweaked debugging info

This commit is contained in:
Robert Osfield
2009-09-08 15:36:44 +00:00
parent 5c2e89ac28
commit a851b0b412
2 changed files with 13 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ class ReaderWriterDICOM : public osgDB::ReaderWriter
if ((*itr)[0]=='.')
{
osg::notify(osg::NOTICE)<<"Ignoring tempory file "<<*itr<<std::endl;
osg::notify(osg::INFO)<<"Ignoring tempory file "<<*itr<<std::endl;
continue;
}

View File

@@ -25,6 +25,7 @@
#include <osg/TransferFunction>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
namespace osgVolume
{
@@ -267,6 +268,17 @@ void RayTracedTechnique::init()
}
osg::ref_ptr<osg::Texture1D> tf_texture = new osg::Texture1D;
tf_texture->setImage(tf->getImage());
#if 0
osgDB::writeImageFile(*(tf->getImage()),"tf.png");
osg::notify(osg::NOTICE)<<"imageLayer->getTexelOffset()[3]="<<imageLayer->getTexelOffset()[3]<<std::endl;
osg::notify(osg::NOTICE)<<"imageLayer->getTexelScale()[3]="<<imageLayer->getTexelScale()[3]<<std::endl;
osg::notify(osg::NOTICE)<<"tfOffset="<<tfOffset<<std::endl;
osg::notify(osg::NOTICE)<<"tfScale="<<tfScale<<std::endl;
osg::notify(osg::NOTICE)<<"tf->getMinimum()="<<tf->getMinimum()<<std::endl;
osg::notify(osg::NOTICE)<<"tf->getMaximum()="<<tf->getMaximum()<<std::endl;
#endif
tf_texture->setResizeNonPowerOfTwoHint(false);
tf_texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR);
tf_texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);