-
-
Save smathermather/cd610cf0b930cbbba61d341c6ababfd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "shapes.inc" | |
#include "colors.inc" | |
#include "textures.inc" | |
// Dropped in from http://wiki.povray.org/content/HowTo:Use_radiosity | |
#local p_start = 64/image_width; | |
#local p_end_tune = 8/image_width; | |
#local p_end_final = 4/image_width; | |
#local smooth_eb = 0.50; | |
#local smooth_count = 75; | |
#local final_eb = 0.1875; | |
#local final_count = smooth_count * smooth_eb * smooth_eb / (final_eb * final_eb); | |
global_settings{ | |
radiosity | |
{ | |
pretrace_start p_start // Use a pretrace_end value close to what you | |
pretrace_end p_end_tune // intend to use for your final trace | |
count final_count // as calculated above | |
nearest_count 10 // 10 will be ok for now | |
error_bound final_eb // from what we determined before, defined above | |
// halfway between 0.25 and 0.5 | |
recursion_limit 2 // Recursion should be near what you want it to be | |
// If you aren't sure, start with 3 or 4 | |
} | |
} | |
// Orthographic camera allows us to return non-perspective image of elevation model | |
camera { | |
orthographic | |
location <0.5, 2, 0.75> | |
look_at <0.5,0,0.75> | |
right 0.25*x // horizontal size of view -- I have this zoomed in on my area of interest. | |
up 0.25*y // vertical size of view -- set to 1*x and 1*y to get full DEM hillshade returned | |
} | |
// Here's where the height field get's loaded in for shading | |
height_field { | |
png "result.png" | |
water_level 0.0 | |
smooth | |
texture { | |
pigment { | |
rgb <1, 1, 1> | |
} | |
} | |
finish { | |
ambient 0.2 | |
diffuse 0.8 | |
specular 0 | |
roughness 40 | |
} | |
scale <1, 1, 1> | |
translate <0,0,0> | |
} | |
// Pulled in from http://www.f-lohmueller.de/pov_tut/backgrnd/p_sky10.htm | |
// Using an HDR from http://www.pauldebevec.com/Probes/ | |
sky_sphere{ | |
pigment{ | |
image_map{ hdr "rnl_probe.hdr" | |
gamma 0.25 | |
map_type 1 interpolate 2} | |
}// end pigment | |
rotate <0,40,0> // | |
} // end sphere with hdr image ----------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment