|
|
Suggestions and comments welcome.
/*
***Making of spherecal HDR image using Terragen images***miyoken
///Terragen//////
Set:
Camera position x=3840m y=3840m
Fixed Height Above Surface=2m
Camera settings..->Zoom/Magnificatiopn=1
Image Size H=400 W=400
The 1st image: set Camera Orientation ;head=0 pitch=0 bank=0
The 2nd image: set Camera Orientation ;head=90 pitch=0 bank=0
The 3rd image: set Camera Orientation ;head=180 pitch=0 bank=0
The 4th image: set Camera Orientation ;head=270 pitch=0 bank=0
The 5th image: set Camera Orientation ;head=0 pitch=90 bank=0
The 6th image: set Camera Orientation ;head=0 pitch=-90 bank=0
///////////////////////
// -w1024 -h512 +fh -oterrahdr.hdr
*/
#version unofficial megapov 1.1;
global_settings {
assumed_gamma 2.2
}
// ----------------------------------------
camera {
spherical
location <0,0,0>
angle 360, 180
look_at <0,0,1>
}
// ----------------------------------------
/////////////
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "ter1.bmp" ///The 1st image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0>
}
finish {ambient 1}translate <0,0,0.5>}
/////////////
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "ter2.bmp" ///The 2nd image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0>
}
finish {ambient 1}translate <0,0,0.5> rotate y*90}
/////////////
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "ter3.bmp" ///The 3rd image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0> // image_map
}
finish {ambient 1}translate <0,0,0.5> rotate y*180}
/////////////
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "ter4.bmp" ///The 4th image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0>
}
finish {ambient 1}translate <0,0,0.5> rotate y*270}
/////////////
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "ter5.bmp" ///The 5th image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0> // image_map
}
finish {ambient 1}translate <0,0,0.5> rotate x*-90}
polygon {
4,
<-0.5, 0.5>, <0.5, 0.5>, <0.5, -0.5>,<-0.5, -0.5>
pigment {
image_map {
sys "t6.bmp" ///The 6th image
map_type 0
interpolate 2
once
}
translate <-0.5,-0.5,0>
}
finish {ambient 1}translate <0,0,0.5> rotate x*90}
///EOF
Regards!
miyoken
Post a reply to this message
Attachments:
Download 'terrahdr.jpg' (8 KB)
Download 'hdr_mapping_pp.jpg' (16 KB)
Preview of image 'terrahdr.jpg'
Preview of image 'hdr_mapping_pp.jpg'
|
|