Tif image loader

free scripts, plugins, models, textures
User avatar
trueBlue
Captain
Posts: 5465
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Tif image loader

Post by trueBlue »

Cool! 8-)
Thank you again!
TIFF Loader.png
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Tif image loader

Post by clintonman »

Update October 2024

added support for EXR files to the plugin.

I found that tS HDR image save is not high quality. It gives a wider range of colors but seems to keep discrete step values like an LDR image. It's strange and difficult to explain, maybe it's rounding the values?. This EXR save command keeps the quality of the color values of the image. The only real way to see the difference is to save a HDR format smooth image and compare it to the EXR image and see how the values jump in the HDR compared to the EXR image.

The EXR loader was tested with images from here:
https://openexr.com/en/latest/test_images/index.html

The loader does not support the pxr24 or b44 compression

When saving an exr with alpha channel it won't load back into tS properly. The color channels get scrambled. The really weird thing is if you open the image in another app it looks just fine. So if you load an exr image with alpha it looks good. Then you save it with alpha it looks bad in tS but identical to the original in other programs. There is a checkbox to unscramble the colors when using the loader.

EXR Loader nodes
https://clintons3d.com/plugins/truespac ... tiffloader

updated rsx plugin
https://clintons3d.com/plugins/truespac ... dPluginExt
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5465
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Tif image loader

Post by trueBlue »

Can you help with the Save As button code?
And anything else you see that maybe wrong.
OpenEXR panel.png
OpenEXR panel.png (55.67 KiB) Viewed 155 times
Attachments
Exr Loader.RsObj
(63.79 KiB) Downloaded 5 times
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Tif image loader

Post by clintonman »

Removed the image node
Connected internal Exr Loader Bitmap to the Image Information
Save As button saves %THIS_NAME%

This also reminds me that I forgot to add the loaded filename into the Bitmap data, so one more rsx change coming...
Attachments
Exr Loader.RsObj
(62.6 KiB) Downloaded 5 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Tif image loader

Post by clintonman »

I updated the rsx plugin to version 1638417
The only change is that the filename of the image will display when running the script command that reads it.

SDK docs:
HRESULT IRdBitmapDisp::GetFileName ( [out, retval] BSTR * pFileName )
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Tif image loader

Post by clintonman »

I just found out the EXR Loader isn't needed. tS will load exr files just fine. It just wont save exr files.
Clinton Reese

http://clintons3d.com
Post Reply