![](/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) |
I have managed to insert a hightfield, but it comes out black, if I try and
add a texture pigment or color to it I get "object or directive expected"
errors. What am I not understanding here?
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) |
zither wrote:
>
> I have managed to insert a hightfield, but it comes out black, if I try and
> add a texture pigment or color to it I get "object or directive expected"
> errors. What am I not understanding here?
It sounds like a very simple syntax error but I can't give you a
detailed analysis without seeing the code you are using. Try
posting just the HF portion of your code so we can take a closer
look at it.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
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) |
ok, I've tried the following:
background { color SkyBlue }
Height_Field {gif "d:\fract001.gif"}
}
also tried putting it in as an object, adding trans forms etc
"Ken" <tyl### [at] pacbell net> wrote in message
news:3A5BF81E.C91FCA71@pacbell.net...
>
>
> zither wrote:
> >
> > I have managed to insert a hightfield, but it comes out black, if I try
and
> > add a texture pigment or color to it I get "object or directive
expected"
> > errors. What am I not understanding here?
>
> It sounds like a very simple syntax error but I can't give you a
> detailed analysis without seeing the code you are using. Try
> posting just the HF portion of your code so we can take a closer
> look at it.
>
>
> --
> Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
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) |
"RWard" <rmw### [at] swbell net> wrote in message
news:3a5dab0e$1@news.povray.org...
> ok, I've tried the following:
>
>
> background { color SkyBlue }
>
>
> Height_Field {gif "d:\fract001.gif"}
> }
>
Your height field has no pigment. Try:
Height_Field {gif "d:\fract001.gif" pigment{rgb<1/2,1/1/2>}}
(the background is irrelevant - that is a seperate object).
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) |
In article <3a5dab0e$1@news.povray.org>, "RWard"
<rmw### [at] swbell net> wrote:
> Height_Field {gif "d:\fract001.gif"}
> }
You have an extra "}" bracket...you should always make sure your
brackets match up, a "}" for every "{".
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
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) |
Oops, that should have been:
Height_Field {gif "d:\fract001.gif" pigment{rgb<1/2, 1, 1/2>}}
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) |
your are correct!
Tom, tried it and get parsing error message "object or directive expected
but undeclared identifier height_field found instead"
"Chris Huff" <chr### [at] mac com> wrote in message
news:chrishuff-8682E8.07543311012001@news.povray.org...
> In article <3a5dab0e$1@news.povray.org>, "RWard"
> <rmw### [at] swbell net> wrote:
>
> > Height_Field {gif "d:\fract001.gif"}
> > }
>
> You have an extra "}" bracket...you should always make sure your
> brackets match up, a "}" for every "{".
>
> --
> Christopher James Huff
> Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tag povray org, http://tag.povray.org/
>
> <><
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) |
HA! case sensitivity!
"RWard" <rmw### [at] swbell net> wrote in message
news:3a5ddab7@news.povray.org...
> your are correct!
> Tom, tried it and get parsing error message "object or directive expected
> but undeclared identifier height_field found instead"
>
> "Chris Huff" <chr### [at] mac com> wrote in message
> news:chrishuff-8682E8.07543311012001@news.povray.org...
> > In article <3a5dab0e$1@news.povray.org>, "RWard"
> > <rmw### [at] swbell net> wrote:
> >
> > > Height_Field {gif "d:\fract001.gif"}
> > > }
> >
> > You have an extra "}" bracket...you should always make sure your
> > brackets match up, a "}" for every "{".
> >
> > --
> > Christopher James Huff
> > Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
> > TAG: chr### [at] tag povray org, http://tag.povray.org/
> >
> > <><
>
>
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) |
"RWard" <rmw### [at] swbell net> wrote in message
news:3a5ddab7@news.povray.org...
> your are correct!
> Tom, tried it and get parsing error message "object or directive expected
> but undeclared identifier height_field found instead"
... but presumably it's still black (or have you added a pigment statement
as well as removing the }?)
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) |
"Tom Melly" <tom### [at] tomandlu co uk> wrote in message
news:3a5ddddb@news.povray.org...
ack, scrap that last message. I hadn't taken in that you'd still got a
problem. Yep, case is wrong. And none of us spotted it. The shame. The
ignomy.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |