Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Advanced Terrain Question, please

Author
Message
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 12th Nov 2006 21:51
First of all, the Advanced Terrain system seems awesome. Thanks for providing it, whoever has done so!!

Question: what is a good way to calculate the height of one shade difference? That is, if I am using RGB 0,0,0 and I lighten the shade to 0,0,1 is there a correlative pixel height adjustment? Am I getting this right? If not, please explain how I can determine pixel height in relation to the shade of black and white in the color map.

Many thanks!!

D
Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 13th Nov 2006 16:40
If you mean that you lighten the heightmap image then yes everything will be height but that's got nothing to do with rgb. The only thing is that the parts where everything is white will stay the same height.

All bow down to evil
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 14th Nov 2006 04:33
I realize that height maps need to be gray scale, and that white at 255,255,255 is the highest and black at 0,0,0 is the lowest, but how can I raise the map height by say 1 or 10 pixels? Hex is fine if RGB isn't a good way to think of it. Actually, I am using photoshop and switching RGB to gray scale. Maybe I should be thinking in terms of Hue or Luminosity? Please let me know, if you understand my convoluted question

Thanks!!!

D
mbaucco
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 19th Nov 2006 18:25
I am not sure if this helps, as you may be wanting to use real-world units, but if the height ranges from 0 to 254 units, then the difference between 0,0,0 (black) and 1,1,1 (almost black) would be one unit, which you can think of as feet or inches or whatever.

To raise the entire terrain by ten units you would have to edit the map in Photoshop (or something) and increase the brightness of the whole map by ten units, which should do the job. I am just guessing, but I think this would work.

good luck,
Matt
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 20th Nov 2006 03:38
Thank you Matt. That makes perfect sense.

D

Login to post a reply

Server time is: 2024-11-14 01:14:06
Your offset time is: 2024-11-14 01:14:06