POV-Ray : Newsgroups : povray.binaries.images : Problem with a nested texture_map : Problem with a nested texture_map Server Time
2 Nov 2024 12:20:46 EDT (-0400)
  Problem with a nested texture_map  
From: Jörg 'Yadgar' Bleimann
Date: 10 Dec 2010 16:09:22
Message: <4d029702@news.povray.org>
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'
2010-12-10 southwestern tasmania, take 10.jpg

Preview of image 's44e146_patched.png'
s44e146_patched.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.