![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] pacbell net> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |