|
![](/i/fill.gif) |
albe99 wrote:
> Hello, I'm Alberto from Italy..
> I would want to modify an height_field with a normal pattern (granite for
> example..) and then generate a new 16 bit grayscale image (png or tga..) to
> re-use in other height_field statement..
> is possible to do this?
>
> I have written this basic sample:
> //------------------------------
> #include "colors.inc"
>
> global_settings {
> hf_gray_16 on
> }
>
> camera {
> orthographic
> location <0.518756, 1.42622, 0.517175>
> sky <0, 1, 0>
> direction <0, 0, 1>
> right <1, 0, 0>
> up <0, 1, 0>
> look_at <0.518487, 0.464293, 0.493562>
> }
>
> height_field {
> png "HFtest01.png"
> scale <1, 0.3, 1>
> rotate <0, 0, 0>
> translate y*0.0870551
>
> texture {
> normal { granite 0.4 }
> pigment { color rgb <0.32549, 0.32549, 0.32549> }
> finish { ambient 1 }
> }
> }
> //--------------------------------------
> ....but render shows me nothing, please can someone help me?
>
> Thanks, Alberto
>
>
>
>
>
It is because the use of pure ambient light does not show the relief of
either the hf or the normal
You need a light_source and start with the default finish. You can
then adjust the light_source, its angle to the hf and the finish diffuse
and specular parameters to get what you want ambient should be low or zero
Post a reply to this message
|
![](/i/fill.gif) |