POV-Ray : Newsgroups : povray.binaries.images : Life : Re: Life Server Time
10 Aug 2024 09:16:00 EDT (-0400)
  Re: Life  
From: SeeSchloss
Date: 5 Sep 2004 15:14:47
Message: <pan.2004.09.05.19.14.53.918412@seeschloss.org>
On Sun, 05 Sep 2004 12:50:01 -0400, Jaap wrote:

> "Jaap" <jws### [at] yahoocom> wrote:
>> Can be done directly, if very slowly in inside POV. To get direct access
>> to the pixel data of your map, you can use (untested):
>>
>> #local Pix = function {
>>    pattern {
>>      image_pattern { png "bump.png" }
>>    }
>>    }
>> }
>> image is mapped in function from x=0 y=0 to x=1 y=1, so you would get
>> pixel <50,100> with
>> #local Value = Pix ( 50.5/mapwidth , 100.5/mapheight, 0 );
>>
> or read it directly from a comma-seperated text file?

OK, I've tried what you suggested and it works fine, thank you, I hadn't
thought of using a function to do that...
It may be slow, but since it's only used once at the beginning, speed
isn't a problem.
Thanks again, that's easier to use than a text file or declares :)


Post a reply to this message

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