Finding out if a deep shadow or camera map is pre-composited

   2095   2   1
User Avatar
Member
792 posts
Joined: April 2020
Offline
Hello all,

Is there a clever trick to find out if a deep map in a rat file is pre composited or not?

Currently I run dsmconvert -c on the rat, and if it says it will skip the output because it will be the same as the input, I know. There must be a simpler way :-)

Thanks,
koen
User Avatar
Member
4271 posts
Joined: July 2005
Offline
I couldn't think of anything off the top of my head aside from-

$HT/samples/standalone/dsmprint.C

Will print all the header tags. (Or you can modify it to print out just what you need.)

wolfwood@epoch:~> ./dsmprint dcm.rat
DSM Options: {'camera:clip'0.1,22647.5),'camerarthowidth':17.7778,'camera:projection':0,'camera:zoom':1.20711,'image:crop'0,1,0,1),'image:pixelaspect':1,'image:samples'3,3),'image:window'0,1,0,1),'space:world'1,0,-0,0,0,1,-0,0,0,0,-1,0,0,0,18.7298,1),'texture:compositing':True,'texture:compression':4,'texture:depth_interp':“discrete”,'texture:depth_mode':“nearest”,'texturefsize':3,'texturefstorage':“real16”,'texture:pzstorage':“real32”,'texture:zbias':0.001,}
dcm.rat (3 channels)
if(coffees<2,round(float),float)
User Avatar
Member
792 posts
Joined: April 2020
Offline
Thanks a lot, I will compile and install dsmprint, looks very useful.

Cheers,
Koen
  • Quick Links