POV-Ray : Newsgroups : povray.general : Cylindrical HF : Re: Cylindrical HF Server Time
2 Aug 2024 18:13:06 EDT (-0400)
  Re: Cylindrical HF  
From: Hughes, B 
Date: 13 Aug 2004 00:56:41
Message: <411c4a09$1@news.povray.org>
"Gena" <gen### [at] yahoocom> wrote in message
news:411c3c06$1@news.povray.org...
> The following code doesn't work:
>
> #include "shapes.inc"
>
> #declare F = function {
>     pigment {
>        image_map {
>        png "foo.png"
>          map_type 0
>        }
>     }
> }
>
> object {
>     HF_Cylinder (F, off, off,
> <60,60>, on, "", <0.5, 0.0, 0.5>, <0.5, 1.0, 0.5>, 0.4, 0.3)
>     texture {
>        pigment {color rgb 1}
>     }
> }

It would seem that the macro needs the addition of  .gray  to H variable, as
in:

         #declare PArr[J][K] = P + H.gray*Dir*Depth;

or added to each of the two instances of it before that line.

I'm not sure why this would be nonfunctional for image maps in usual usage,
since I had thought those macros already considered for images. Maybe
someone else can speak as to what is going on about that.

Bob H.


Post a reply to this message

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