POV-Ray : Newsgroups : povray.newusers : height_field ? Server Time
5 Nov 2024 11:21:17 EST (-0500)
  height_field ? (Message 1 to 5 of 5)  
From: Brian & Lois Bivolcic
Subject: height_field ?
Date: 4 Sep 1999 00:24:53
Message: <37D09ED6.BFFB1A32@popampa.com>
Hi,
I'm fairly new to POV-Ray, went thru the tutorial, every thing ok.
Try to do my own height_field
Partial code:
    height_field{
        tga "myimage"
        smooth
        translate<-.5,-.5,-.5>
        scale <17,1.75,17>
        }

I get a black outline, that doesn't even resemble what the tga looks
like.
Try different  scale, translation, and different light position.
Any suggestion.
Thank Brian

--
Southern Cross Akitas (SCA)
Lois & Brian Bivolcic
Pampa, Tx
http://www.centramedia.com/users/bivolcic


Post a reply to this message

From: Ken
Subject: Re: height_field ?
Date: 4 Sep 1999 04:45:34
Message: <37D0DBDB.ED716189@pacbell.net>
Brian & Lois Bivolcic wrote:
> 
> Hi,
> I'm fairly new to POV-Ray, went thru the tutorial, every thing ok.
> Try to do my own height_field
> Partial code:
>     height_field{
>         tga "myimage"
>         smooth
>         translate<-.5,-.5,-.5>
>         scale <17,1.75,17>
>         }
> 
> I get a black outline, that doesn't even resemble what the tga looks
> like.
> Try different  scale, translation, and different light position.
> Any suggestion.
> Thank Brian
> 
> --
> Southern Cross Akitas (SCA)
> Lois & Brian Bivolcic
> Pampa, Tx
> http://www.centramedia.com/users/bivolcic

You need to add a pigment to the height field for it to appear. To get you
started try this:

     height_field{
         tga "myimage"
         smooth
         translate<-.5,-.5,-.5>
         scale <17,1.75,17>
         pigment { rgb <1,1,1> }
         }


-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Ian Burgmyer
Subject: Re: height_field ?
Date: 5 Sep 1999 02:36:55
Message: <37d20f87@news.povray.org>
Yes, and also don't confuse it for an image_map.  A heightfield takes the
color brightness (I think) and assigns everything a height.  It doesn't
display a texture on an image.

If I'm wrong, please beat me up, run me over, and post a message correcting
me (Don't even think about doing the first two things ;)

-Ian

Ken <tyl### [at] pacbellnet> wrote in message
news:37D0DBDB.ED716189@pacbell.net...
> You need to add a pigment to the height field for it to appear. To get you
> started try this:
>
>      height_field{
>          tga "myimage"
>          smooth
>          translate<-.5,-.5,-.5>
>          scale <17,1.75,17>
>          pigment { rgb <1,1,1> }
>          }
>
>
> --
> Ken Tyler
>
> See my 850+ Povray and 3D Rendering and Raytracing Links at:
> http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Ken
Subject: Re: height_field ?
Date: 5 Sep 1999 03:04:07
Message: <37D21592.B0872408@pacbell.net>
Ian Burgmyer wrote:
> 
> Yes, and also don't confuse it for an image_map.  A heightfield takes the
> color brightness (I think) and assigns everything a height.  It doesn't
> display a texture on an image.
> 
> If I'm wrong, please beat me up, run me over, and post a message correcting
> me (Don't even think about doing the first two things ;)
> 
> -Ian

Actually it takes the color itself. From a pallet of 256 for an 8 bit image
black would be zero height and 255 would be a height of one. With 16 bit
image as input you get 65k differnt values of height between zero and one.
You are correct however when you say that the color of the image used to
create the height field is not automaticaly applied to the HF when it is
created. The HF still needs a standard pigment statment as do all objects
in a Pov scene.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Ian Burgmyer
Subject: Re: height_field ?
Date: 5 Sep 1999 03:10:39
Message: <37d2176f@news.povray.org>
Ah, I see.  Thanks for clearing this up, Ken.

I always use 8 bit grayscale images for heightfields, so I wasn't really
sure.

-Ian

> Actually it takes the color itself. From a pallet of 256 for an 8 bit
image
> black would be zero height and 255 would be a height of one. With 16 bit
> image as input you get 65k differnt values of height between zero and one.
> You are correct however when you say that the color of the image used to
> create the height field is not automaticaly applied to the HF when it is
> created. The HF still needs a standard pigment statment as do all objects
> in a Pov scene.
>
> --
> Ken Tyler
>
> See my 850+ Povray and 3D Rendering and Raytracing Links at:
> http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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