PDA

View Full Version : Height Maps not scaled correctly


brendan1234567890
20th Oct 2011, 07:17 AM
I am attempting to make a gradual slope: one square = one "click" higher. I know that one pixel = the corner of a square. During said slope, it plateaus and makes a sharp 90 degree turn. <<< Not really important. What IS important is that the three pixel X three pixel plateau I made translated into CaW as a 1X2 square plateau (2X3 corners if that's helpful). So, I thought, "Maybe I just need to figure out the correct scale." So I tried making separate areas of 3X3 pixels, away from where I was working, to see what happened. I made three of them. One turned up like the first, as a 1X2 square area. The others, however, were only 1X1 square. In the height map, they were all the same size, but in CaW, they were different. I continued to fiddle with it until they were all the correct size. The area that turned up like the first required 3X5 pixels to make it a 2X2 square area. The other two needed 3X7. wtf??? How the hell does that work? Why is this happening?

simsample
21st Oct 2011, 12:33 AM
Are you making sure the heightmap is 16bit? If you use the wrong bit depth then you will find that the heightmap doesn't scale correctly.

brendan1234567890
23rd Oct 2011, 03:19 AM
Nope, 8-bit. Funny, since I copied one of the blank height-maps to my desktop and just fiddled with that. Thank you!

simsample
23rd Oct 2011, 02:32 PM
So is it working correctly? I hope so!

brendan1234567890
23rd Oct 2011, 05:53 PM
Unfortunately, GIMP doesn't have the option to change bit rates, but I have the installation file for Photoshop so I'm going to give that a try.