High!
While playing around with SRTM elevation tiles, I just tried to program
a slope-dependent texture_map which also takes elevation above sea level
into account.
As real world altitudes stretch from -422 (Dead Sea) to 8848 metres (Mt.
Everest) and I applied the composite texture_map (see code below)
*after* scaling the heightfields, I used height values in metres rather
than the common relative values from 0 to 1.
But regardless of this, PoV-Ray seems to interpret them as relative
values, so the bright yellow T_Beach texture, which was meant to be
constrained to the lowermost three metres above sea level, shows up
throughout all of the terrain (with the highest mountain visible in the
scene being about 700 metres high). Why?
Code, scene image and hightfield are attached here!
See you in Khyberspace!
Yadgar
Post a reply to this message
Attachments:
Download 'terrain.pov.txt' (4 KB)
Download '2010-12-10 southwestern tasmania, take 10.jpg' (35 KB)
Download 's44e146_patched.png' (968 KB)
Preview of image '2010-12-10 southwestern tasmania, take 10.jpg'
Preview of image 's44e146_patched.png'
|