|
![](/i/fill.gif) |
Hi!
I havent done any raytracing for ages and ind it quite hard to get back into
povray. can someone explain to me how to use the heigh_field command (or
whatever). So far i can render a height_field but it wont light up, its all
black! I have set a light source exactlz at the cameras position and tried
to set color rgb<.5,.5,.8> which seems to be correct but doesnt have any
effect.
Please help me as this height field stuff is verz interesting!
thanks,
Johann Dugge
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Johann Dugge" <joh### [at] dugge de> wrote in message
news:3d5aba40$1@news.povray.org...
> Hi!
> I havent done any raytracing for ages and ind it quite hard to get back
into
> povray. can someone explain to me how to use the heigh_field command (or
> whatever). So far i can render a height_field but it wont light up, its
all
> black! I have set a light source exactlz at the cameras position and tried
> to set color rgb<.5,.5,.8> which seems to be correct but doesnt have any
> effect.
> Please help me as this height field stuff is verz interesting!
>
Could you post some sample code so we can see what you're doing and
where you're going wrong ? It's hard to tell from your description....
--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Heres my code, its just some sample scene that came with POV-Ray:
#version 3.5;
#include "colors.inc"
global_settings {
assumed_gamma 1.0
}
// ----------------------------------------
camera {
location <0.0, 2, 4.0>
direction 1.5*z
right x*image_width/image_height
look_at <0.0, 0.0, 0.0>
}
sky_sphere {
pigment {
gradient y
color_map {
[0.0 rgb <0.6,0.7,1.0>]
[0.7 rgb <0.0,0.1,0.8>]
}
}
}
light_source {
<0.0, 5, -4.0> // light's position (translated below)
color rgb <1, 1, 1> // light's color
translate <-30, 30, -30>
}
// ----------------------------------------
plane {
y, -1
pigment { color rgb <0.7,0.5,0.3> }
}
// uses image color index as height, extends along X-Z axes
// from <0 0 0> to <1 1 1>
height_field {
png // the file type to read (tga/pot/pgm/ppm/png/sys)
"refineresult.png" // the file name to read
color rgb <.5,.5,.9>
//water_level N .2 // truncate/clip below N (0.0 ... 1.0)
// [smooth] // smooth surface normal
// texture {...}
// translate VECTOR | rotate VECTOR | scale VECTOR
}
// End
"Pandora" <pan### [at] pandora-software com> wrote in message
news:3d5abbcc@news.povray.org...
> "Johann Dugge" <joh### [at] dugge de> wrote in message
> news:3d5aba40$1@news.povray.org...
> > Hi!
> > I havent done any raytracing for ages and ind it quite hard to get back
> into
> > povray. can someone explain to me how to use the heigh_field command (or
> > whatever). So far i can render a height_field but it wont light up, its
> all
> > black! I have set a light source exactlz at the cameras position and
tried
> > to set color rgb<.5,.5,.8> which seems to be correct but doesnt have any
> > effect.
> > Please help me as this height field stuff is verz interesting!
> >
>
>
> Could you post some sample code so we can see what you're doing and
> where you're going wrong ? It's hard to tell from your description....
>
> --
> Pandora/Scott Hill/[::O:M:C::]Scorpion
> Software Engineer.
> http://www.pandora-software.com
>
>
Post a reply to this message
|
![](/i/fill.gif) |