Jump to content
Sign in to follow this  
Haluke

.R16 Heightmap Support (or better 16 bit greyscale support)

Recommended Posts

Hi,

 

I use unreal engine and it requires r16 heightmap files for terrains.

They are essentially 16 bit greyscale files and I tried to find a workaround with other formats in Photo, but no matter what format I used, all the 16 bit greyscale files opened up looking jaggy, almost as if they were 4 colour gifs.

 

Could we have r16 file support, or better 16 bit greyscale support please?

 

Cheers!

Share this post


Link to post
Share on other sites

I'm interested in this too. In fact I was wondering if there's an easy way to save it as 16-bit greyscale for use in Unreal or other engines that need 16-bit grey, even if the original image is 8-bit. I realize it might have some stepping due to the 8-bit nature of the grey values, of well, it doesn't have to be 16-bit resolution in many cases, especially when the backgrounds are far and blurred or otherwise covered with vegetation. I use PD Howler to create heightmaps with erosion and sediments and make them seamless so they are tileable in renderings or game engines...., looking for an easy way to convert it to 16-bit grey even though the data it contains will still be from 8-bit values unless the conversion can do extra interpolation (smoothing, blurring but even then it will just be extra values by interpolation, regardless of the algorithm for the smoothing, wich might might add details that just happen to look interesting)... . Is this possible with A.D.?

Share this post


Link to post
Share on other sites

good news. I just bought Affinity Designer for WIndows, installed it, loaded one of my 8-bit greyscale images. (actually a 24-bit RGB where all values in each channel are the same so it looks grey). I then immediately re-exported, and went beyond the default presets. My original was a PNG and the presents did not show 16-bit but if you look for the extra options, you'll notice there is also a 16-bit greyscale option, ditto for Tiff and likely for others I haven't tested.

 

So at least in theory this should work. It even offers extra smoothing for that conversion, great!

 

Does your game engine take 16-bit grey in several formats? (tiff, png,...?). Should all just work perfectly.

Share this post


Link to post
Share on other sites

I am not seeing a problem with my export to tiff in 16-bit grey.  Note that if you view it in an external viewer, it might do extra conversions even if it is able to load it. For example, Irfanview recognizes it as 16-bit grey, but then loads it into 24-bit rgb, so each channel is back to 8-bit. But doing a side by side with the original I can't see a difference so it certainly did not drop to 4 bit. I think this is good, at least to convert to 16-bit format for those apps that only accept that type of file format for it.

 

For my needs this is a good solution as is.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.