Smathermather's Weblog

Remote Sensing, GIS, Ecology, and Oddball Techniques

POV-Ray for viewsheds code

Posted by smathermather on July 30, 2008

global_settings {
max_trace_level 1
}

#include “shapes.inc”
#include “colors.inc”
#include “textures.inc”

height_field {
png “c:\temp\povray\n2225625.png” // 16-bit integer digital elevation
water_level 0.0

texture {
pigment {
image_map { png “C:\temp\povray\n2225625_drape.png” map_type 0 interpolate 2 once// Aerial
rotate x*90
}
}
scale <5000, 65536, 5000>  // Scale to real world size
translate <2224868,0,625008>  // Translate to location in Ohio state plane
}

/// Orthographic Camera
camera {
orthographic
location <2227368.0, 6000, 627508>
look_at <2227368.0, 0, 627508>
right 5000*x //x size of view  (feet)
up 5000*y // y size of view  (feet)
}

// Observer Points

light_source { <2227885, 720, 625464> color Cyan }
light_source { <2228247, 727, 626277> color Yellow }
light_source { <2228091, 729, 626761> color Magenta }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: