|
|
On Thu, 7 Jul 2005 14:08:38 +0100, Mike Williams <nos### [at] econymdemoncouk> wrote:
>
>However, the significant point for the original poster is that you can't
>do it with BMP files.
I don't understand."image.pov created image.bmp. Image.pov contains
global_settings {
assumed_gamma 2.2
hf_gray_16
}
There is no image.tga.
Then I run test.pov to use this bmp file as a height field:
.....
height_field {
//tga "image.tga" // created from "image.pov"
sys "image.bmp"
smooth
pigment {
gradient y
color_map {
[0.00 color rgb < 0, 0, 0.4>]
[0.05 color rgb < 0, 0.2, 0>]
[0.60 color rgb <1.0, 1.0, 1.0>]
[1.00 color rgb <1.0, 1.0, 1.0>]
}
}
finish {
specular 0.5
roughness 0.05
}
normal {
bozo
translate <0, 1.23456, 0>
scale 0.002
}
translate <-.5, 0, -.5>
scale <17, 1.75, 17>
rotate<-90, -45, 0>
}
.....
It works. So, I think that you CAN use .bmp files as height fields. But I also think
that they only
have 256 gray levels since for all pixels r = g = b as far as I can tell.
If I switch to .tga files would I get 65,536 gray levels?
But I would still like to be able to create hf_gray_16 files externally. It sounds
like the format
of such .tga files might not be documented.
Ralph
Post a reply to this message
|
|