POV-Ray : Newsgroups : povray.newusers : Image function : Re: Image function Server Time
28 Mar 2024 15:01:05 EDT (-0400)
  Re: Image function  
From: Tor Olav Kristensen
Date: 29 May 2023 20:25:00
Message: <web.647541d58a5f67eb8991e8e489db30a9@news.povray.org>
kurtz le pirate <kur### [at] gmailcom> wrote:
> On 28/05/2023 22:06, Bald Eagle wrote:
> > Once again, I'm asking WHY?
>
> apologies...
>
> I didn't describe what I wanted to do very well.
> I'll try to be clearer.
>
> a) I recover the color of a point <x,0,z> of a source image.
> b) I transform this point into a new point <x1,0,z1>.
> c) I give this new point the color taken in a)
>
> In fact, I already have a code that does this, but only with the checker
> pattern. Not very sexy !
>
> For the moment the plan is drawn like this :
> plane {
>   y,0
>   pigment { function { fnPigment(x,z) } }
>   }
>
> hence my request for a function()
>
> Instead of the checker, the original distorted image.
>...

Hi Kurtz

The code here may be relevant for what you are trying to achieve:

From: Tor Olav Kristensen
Subject: Source code for "Using functions to distort images"
Date: 2006-05-12 18:48:59
http://news.povray.org/povray.text.scene-files/thread/%3C4470ee5b%40news.povray.org%3E

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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