POV-Ray : Newsgroups : povray.newusers : height_field + image_map for real world mapping : height_field + image_map for real world mapping Server Time
30 Jul 2024 16:19:20 EDT (-0400)
  height_field + image_map for real world mapping  
From: Michael Cooper
Date: 2 Dec 2003 06:05:02
Message: <web.3fcc712cfd57eb597fa21dff0@news.povray.org>
I am trying to overlay a chorpleth map (i.e., a map showing country borders
with shaded values) onto a height field. Both are 24 bit tga images and
both have exactly the same size and geographic extent. I can create a
height field no problem, but any image I place on top of it doesn't display
correctly. What I normally end up getting is only the highest points of the
height_field getting some color from the overlaid image, but even that
color is not correct.

It is important that the image is aligned perfectly with the height_field in
order to match country borders with physical features, particularly
coastlines.

This seem like an easy process of just overlaying an image onto a
height_field, but maybe I am missing something. Below is one sample of some
code I have tried.

height_field {
  tga "d:/povcyg/scenes/gtopo30/dtm.tga"
      pigment {
  image_map{ tga "d:/povcyg/scenes/gtopo30/map.tga"
  map_type 0
  interpolate 2
   }
  translate <-.52, 0, -.5>
     scale <100, .5, 100>
  }
     translate <-.52, 0, -.5>
     scale <100, .5, 100>
    }

Any help would be greatly appreciated.  Thanks


Post a reply to this message

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