|
|
"Samuel Benge" <stb### [at] hotmailcom> wrote:
> Tim Cook <z99### [at] gmailcom> wrote:
> > The original height map I rendered at 7200x4800, so it's a 2.4 MB png,
> > here's the reduced-size version.
>
> Thanks, I'll see how it works out over here.
Attached is an image combining contour lines from "tamrielheightsmall.png"
superimposed onto your relief map. The lines seem to behaving themselves. Is
this anywhere near what you wanted? I sure hope I haven't sent you on a wild
goose chase!
Here's the POV scene used to trace it:
// +fn +f +a0.1 +am2 +r3 +w1600 +h1067
#version 3.7;
global_settings{assumed_gamma 1.0}
#default{ finish{ ambient 1 } }
camera{
orthographic
right x*2 up y*2
location -z
look_at 0
}
#macro Pg_Elevation_Lines(PgInput, NLines, LineSize, Quality, LineOffs,
LineSmoothing)
#local Quality = max(1, int(Quality*LineSize));
#macro SampleLoop(Param)
max(
0
#for(N, 1, Quality)
#local C = 1/Quality*N;
#local R = pow(C*sqrt(N)/pow(Quality,.5),1/3);
#local Angle = N*137.508;
#local Pt = vrotate(y*R, z*Angle);
#local PtX = Pt.x*LineSizeX;
#local PtY = Pt.y*LineSizeY;
#if(Param)
, (1-R*LineSmoothing)*(1-FInput(x+PtX, y+PtY, 0))
#else
, (1-R*LineSmoothing)*FInput(x+PtX, y+PtY, 0)
#end
#end
)
#end
#local FInput =
function{
pattern{
pigment_pattern{
PgInput
phase 1-LineOffs/2
frequency NLines/2
color_map{
[.5 rgb 0]
[.5 rgb 1]
}
}
}
}
pigment_pattern{
#local LineSizeX = LineSize/image_width;
#local LineSizeY = LineSize/image_height;
function{
SampleLoop(1)*(FInput(x, y, 0)=1)
+
SampleLoop(0)*(FInput(x, y, 0)=0)
}
cubic_wave
warp{planar}
}
#end // Pg_Elevation_Lines
// map relief
plane{
z, 1
pigment{
average
pigment_map{
[.5 rgb 1]
[1
image_map{
"skyrim shaded relief low.jpg"
interpolate 2
}
scale 2
translate -1
]
}
}
}
// contour lines overlay
plane{z, 0
#declare InputPigment =
pigment{
image_pattern{
"tamrielheightsmall.png"
interpolate 2
}
scale 2
translate -1
}
pigment{
#declare NLines = 11;
Pg_Elevation_Lines( InputPigment, NLines, 3, 8, 0, off )
pigment_map{
[0
Pg_Elevation_Lines( InputPigment, NLines*5, 1.5, 8, 0, off)
pigment_map{
[0 rgb 0 transmit 1]
[1 rgb 0 transmit .5]
}
]
[1 rgb 0 transmit .5]
}
}
}
Post a reply to this message
Attachments:
Download 'tamriel-contours.jpg' (344 KB)
Preview of image 'tamriel-contours.jpg'
|
|