Converting HDR images to EXR

Tutorials/guides/tips on how to use Indigo and the Indigo exporters
User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Converting HDR images to EXR

Post by afecelis » Fri Feb 09, 2007 10:24 am

ok, here's a quick tut of how I get it done. BTW, Manitwo also helped me a lot on finding the tools and getting the job done! Thnx Manitwo! :wink:
1.Download hdr2exr
http://hem.bredband.net/b230591/hdr2exr ... _win32.zip
or from my mirror:
http://www.danielpatton.com/afecelis/In ... _win32.zip

2.Create a folder in C: and call it "hdr2exr"; unzip the files there:
Image

3.Right click on "My Computer", select "properties", "advanced", on the lower part select "environment variables", from the new window that pops up, in the lower part (system variables) scroll down and select "path" and click on "edit"; then add "C:\hdr2exr" at the end of the path; make sure to separate using semicolons (as in my screenshot, or adjust the path according to where you placed/unzipped the program).
Image
Click on OK to confirm the changes done so that the system starts using them.
Now we can execute hdr2exr from a command line anywhere in our system :)

4. Download Manitwo's suggested tool "cmdhere", a nice app that adds the possibility of opening a dos terminal by selecting any folder an right clicking on it. Grab it here:
http://www.zdnet.de/downloads/prg/0/1/e ... 01-wc.html
or from Microsoft's powertoys site:
http://www.microsoft.com/windowsxp/down ... rtoys.mspx
direct link:
http://download.microsoft.com/download/ ... ySetup.exe
Or, Just in case; from my mirror:
http://www.danielpatton.com/afecelis/In ... ySetup.exe

5. Install cmdhere, and then right click on the folder where you got the .hdr images you want to convert. Select "Open Command Window Here"
Image

6.In the DOS terminal that opens up type "hdr2exr myimage.hdr myimage.exr " (in my case: "hdr2exr urban.hdr urban.exr") and wait for a while.
Image

7. Your exr gets created in the same folder as your hdr :wink: everyone's happy! (check out the exr created in the screenshot above).

Now you just use it in your blender exporter as "Texture Map" in your "environment type"

hope it helps! :D

Regards,
Alvaro F. Celis

ps. It seems like Indigo only works with LatLong hdr images, spherical ones make it crash. In case you need to convert them from spherical to latlong using hdrshop, here Manitwo describes the process:
In case someone doesn't know:
to convert a (lets say) spherical hdr to a latlong hdr,
goto hdrshop->image->panorama->panoramic transformations
source image -> format = mirrored ball
destination image -> format = Latitude/Longitude
-> ok
You can download hdrshop from here:
http://gl.ict.usc.edu/HDRShop/
Look for the "download v1" button which links to the free version.

And, you can find several free and good hdr images in the net but the evrmotion Free HDRI CD collection seems to be a very good start point:

http://www.evermotion.org/index.php?unf ... =exclusive

have fun! :D
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

User avatar
kepler
Posts: 122
Joined: Wed Jan 17, 2007 3:18 am
Location: Italy

Post by kepler » Fri Feb 09, 2007 8:34 pm

Very useful, thanks! :D

User avatar
Olis
Posts: 215
Joined: Tue Mar 20, 2007 6:46 am
Location: Stockholm, Sweden

Post by Olis » Mon Mar 26, 2007 9:17 am

I agree. This is exactly what I was looking for. Thank you!

henriquefz
Posts: 16
Joined: Sat Feb 03, 2007 2:08 am

Post by henriquefz » Tue Apr 03, 2007 8:18 am

Hi everyone!:)
Can someone tell me why do you convert HDR to EXR? How do you use it in Indigo?

Thanks for helping!

User avatar
Stur
Posts: 594
Joined: Fri Nov 10, 2006 11:52 pm
Location: Nancy, France

Post by Stur » Tue Apr 03, 2007 8:23 am

Hi,

Because Indigo uses only EXR. I never used one but as far as I have understood, it is used for background picture but also as a lightsource. Color informations of the picture are used to illuminate the scene.

May someone correct me if I'm wrong.

User avatar
eg2k6
Posts: 63
Joined: Tue Apr 03, 2007 8:13 am
Location: Washington USA

Post by eg2k6 » Sun May 20, 2007 3:33 pm

you can also convert any image to EXR with photoshop, but thats not free.

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Tue Oct 16, 2007 7:43 am

i didnt see an option for conversion hdr to exr in hdrshop...is it there??

jeffr
Posts: 120
Joined: Sun Jan 28, 2007 2:08 pm

Post by jeffr » Tue Oct 16, 2007 2:21 pm

The easy way is to use Picturenaut.

http://www.hdrlabs.com/picturenaut/index.html

pxl666
Posts: 308
Joined: Wed Oct 10, 2007 10:10 pm

Post by pxl666 » Wed Oct 17, 2007 12:43 am

thxx

User avatar
ciccio
Posts: 150
Joined: Wed May 30, 2007 9:02 am
Location: at HOME

Post by ciccio » Wed Oct 17, 2007 6:40 am


clive023
Posts: 1
Joined: Fri Jun 25, 2010 7:29 pm

Re: Converting HDR images to EXR

Post by clive023 » Fri Nov 26, 2010 6:01 pm

I got the message " Failed to open 'myimage.hdr' in mode 'rb' after following all instructions.

I downloaded the hdr image with the smaller size.. about 7mb. Do I need the large size hdr?

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re:

Post by Doug Armand » Fri Nov 26, 2010 10:50 pm

pxl666 wrote:i didnt see an option for conversion hdr to exr in hdrshop...is it there??
Just open the .exr and choose save as from menu - and select .hdr as file type from drop-down
Doug

Doug Armand

User avatar
dcm
Posts: 663
Joined: Sun Jan 03, 2010 1:55 am

Re: Converting HDR images to EXR

Post by dcm » Sun Nov 28, 2010 7:43 am

Use Picturenaut guys

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: Converting HDR images to EXR

Post by Pibuz » Thu Dec 02, 2010 1:16 am

dcm wrote:Use Picturenaut guys
+1

ahmad
Posts: 6
Joined: Wed Aug 10, 2011 7:09 pm

Re: Converting HDR images to EXR

Post by ahmad » Thu Aug 11, 2011 9:37 am

bookmarked :)

Post Reply
16 posts

Who is online

Users browsing this forum: No registered users and 3 guests