[Sidefx-houdini-list] HDK: recognize deep image?

Mark Alexander malexander at sidefx.com
Sat Apr 7 17:00:01 EDT 2012

Hi Simon,

Use the IMG_Stat structure attached to the IMG_File object to get plane 
information. ie:

IMG_File *out = IMG_File::open(filename);
     const IMG_Stat &info = out.getStat();
     cerr << "#channels = " << info.getNumPlanes() << endl;
     for(int i=0; i<info.getNumPlanes(); i++)
          cerr << "plane " << i << ":  " << info.getPlane(i)->getName()
               << endl;

See IMG_Stat.h and IMG_Plane.h for more information.


On 04/06/2012 06:07 PM, Szymon Kapeniak wrote:
> Hello there,
> how do I recognize, using IMG_File (or at least without using
> IMG_DeepShadow) whether or not my *.rat file is a deep image? iinfo
> parsing these files leaves no doubts, it's either 2d Raster or Deep
> Shadow Map.
> The way I've found so far is to try out image->imageTextureOptions().
> It seems that 2d files won't flush out any UT_Options or it will be
> empty one (UT_Options::getNumOptions() == 0).
> Is it correct procedure? Somehow I feel there is a chance 2d texture
> rat could have options saved in also. Basically I have a list of *.rat
> files, and I want to skip those which are deep one...
> thanks for any insight.

More information about the Sidefx-houdini-list mailing list