I’ve got a few latitude-longitude HDR textures I’d like to extract parts from to use as texture maps. But to be able to use them as texture maps I’ll need to remove the spherical distortion from the images. Do you happen to know a (freeware) tool able to do this?
I’ve got Photoshop CS5, so once the distortion has been neutralized I can do the cropping with Photoshop. Or is it maybe even possible to remove the distortion using Photoshop CS5 as well?
I think if your input gamma is 1.0 and your output is 1.0 and you save as 32 bit you should have an output exactly the same output as your input. [Make sure you uncheck ‘affect background’ in colour mapping.
I checked out PTGui, but as far as I can read at the site only PTGui Pro (not freeware) can do advanced panoramic transformations. I also tried HDR Shop, but no luck as well.
Maybe I’m the first person in the world who wants to use (parts of) a panoramic HDR image as a conventional, non-distorted texture.
I tried the V-Ray approach, but I can’t get the desired environment part to be small enough to fit into one render and a bit of distortion remains there as well.
You could also use a box camera to unwrap the image to a format that is easier to work with in Photoshop.
Set up the camera like this:
Make sure your render has an image aspect of 0.75 (ie 1500x2000 px), and render. If you set the vertical resolution to something close to the width of the spherical image you shouldn’t lose too much information.
You end up with with an image like this with six squares in a cross, each representing the view of the unwrapped HDRI along one axis:
You can also change the rotation values of the HDR, or rotate the camera, to change the box projection if you need to straighten certain lines etc.
Thanks a lot Torgeir! I already tried to convert the latitude/longitude to a cross type of HDRI, using HDR Shop, but the result was still distorted. I’ll look into your suggestion, thanks again.
Sounds like an interesting approach. As a non-game designer I have no experience with baking though. What would the steps be, and can you bake a full dynamic range HDR file from Max / V-Ray?