POV-Ray : Newsgroups : povray.general : Cylindrical HF : Re: Cylindrical HF Server Time
2 Aug 2024 18:15:06 EDT (-0400)
  Re: Cylindrical HF  
From: Gena
Date: 14 Aug 2004 00:01:34
Message: <411d8e9e@news.povray.org>
Thank you! It works now.

Gena.

Samuel Benge wrote:
> Gena wrote:
> 
>> I need a cylindrical heightfield from my bitmap.
>> 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}
>>    }
>> }
>>
>> How can I make it work? Is there any other macro(s)
>> making cylindrical heightfield or cylindrical mesh
>> from bitmap?
>>
>> Gena.
> 
> 
> 
> I was just listing a bunch of things I thought _might_ be the problem, 
> but I'm 99% sure what the problem is now. Where you have "HF_Cylinder (F 
> ", try making it "HF_Cylinder ( function{ F(x,y,z).grey } "
> 
> This macro demands you put the function inside a function{... } block. 
> Since you have declared a pigment as a function, you have to add the 
> ".grey" to the end of the invoked function. I think that might be what 
> Bob was saying....
> 
> Here's what it will actually look like, in case the above was confusing:
> 
> HF_Cylinder (
>  function{ F(x,y,z).grey } , off, off,
>  <60,60>, on, "", <0.5, 0.0, 0.5>, <0.5, 1.0, 0.5>, 0.4, 0.3
> )
> 
> 
> Hope this helps!
> 
> -Sam
> 
> 
> 
> 
> 
> 
> 
>


Post a reply to this message

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