POV-Ray : Newsgroups : povray.binaries.images : Life : Re: Life Server Time
7 Nov 2024 09:27:38 EST (-0500)
  Re: Life  
From: Jaap
Date: 5 Sep 2004 12:55:01
Message: <web.413b43b957340d83a8399d8d0@news.povray.org>
"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?


Post a reply to this message

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