gamecreator Posted June 1, 2014 Share Posted June 1, 2014 I'm having trouble understanding how heightmaps work. I created a hill next to my 6 foot tall character, as shown below. I exported a RAW file (just raw, not r16) which was 131,072 bytes. I imported it into Photoshop with the settings below. And it loaded as shown on the right (I took only the "hill" portion and zoomed it in 1,000% to illustrate). Back in the LE2 days when I did this process it showed an image that had brighter pixels the higher the hill got. Here, I'm not sure what I'm looking at. Am I importing it incorrectly into Photoshop or is this just a different way of representing the heightmap? My goal is to draw heights in Photoshop. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted June 1, 2014 Share Posted June 1, 2014 My goal is to draw heights in Photoshop. Can be a really good method to create very fast map general design, than continue refining in the editor. Why not using Tga, Gif ? A heightmap is simple image with levels of grey color. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted June 1, 2014 Share Posted June 1, 2014 Image file formats are usually 8-bit and don't have the resolution to store terrain in. You end up with a bad "stepped" appearance due to the limited resolution. The format of the data is GL_RED with a data type of GL_UNSIGNED_SHORT...so I don't see anything odd there. Not sure why Photoshop doesn't load it right. Maybe it expects 32-bit data? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted June 1, 2014 Share Posted June 1, 2014 The xtension r16 or raw doesn't actually change the format, it just controls the file extension name. I wonder if Photoshop is expecting 32-bit floats? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted June 2, 2014 Author Share Posted June 2, 2014 Ok, confirmed. It needs to be imported as 1 channel, 16 Bits and the Byte Order needs to be IBM PC (not Mac). Thanks Josh! 2 Quote Link to comment Share on other sites More sharing options...
SavageDogg38 Posted August 10, 2014 Share Posted August 10, 2014 That was helpful to me as well. Seems to work well. thanks all! 1 Quote Running on: Microsoft 8 64-bit 10 gigs RAM Nvidia Geforce GTX 660 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.