POV-Ray : Newsgroups : povray.general : Height Field Server Time
5 Aug 2024 18:19:03 EDT (-0400)
  Height Field (Message 1 to 5 of 5)  
From: Johann Dugge
Subject: Height Field
Date: 14 Aug 2002 16:14:56
Message: <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!

thanks,

Johann Dugge


Post a reply to this message

From: Pandora
Subject: Re: Height Field
Date: 14 Aug 2002 16:21:32
Message: <3d5abbcc@news.povray.org>
"Johann Dugge" <joh### [at] duggede> 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

From: Hugo
Subject: Re: Height Field
Date: 14 Aug 2002 16:38:02
Message: <3d5abfaa$1@news.povray.org>
Eventually you haven't put a texture on the heightfield?

height_field { ...image ...
   pigment { rgb 1 }
}


Regards,
Hugo


Post a reply to this message

From: Johann Dugge
Subject: Re: Height Field
Date: 15 Aug 2002 12:48:07
Message: <3d5bdb47$1@news.povray.org>
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-softwarecom> wrote in message
news:3d5abbcc@news.povray.org...
> "Johann Dugge" <joh### [at] duggede> 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

From: Johann Dugge
Subject: Re: Height Field
Date: 15 Aug 2002 12:55:41
Message: <3d5bdd0d$1@news.povray.org>
Thanks a lot. This works great!

Johann


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.