POV-Ray : Newsgroups : povray.newusers : Image function : Image function Server Time
14 Apr 2024 05:05:18 EDT (-0400)
  Image function  
From: kurtz le pirate
Date: 28 May 2023 10:49:57
Message: <64736a15$1@news.povray.org>

I'm racking my brain over this problem :
I'd like to have a function that can give me the color of a pixel in an
image (the equivalent of "eval_pigment") to fill a plane.

I've tried a lot of things but none of them work.

What I would like :

plane {
 y, 0
 pigment { color imageFunction(x,y,z) }

With the function like that :
#declare imageFunction = function {
 pigment {
  image_map { jpeg imageName }
  rotate -x*90
  translate <-0.5, 0, -0.5>
  scale <imageWidth, 1, imageHeight>

Of corse, this does not work and i get parse errors but the idea is here.

So can you tell me if this "kind of thing" is possible or not before I
go *crazy* ?


Kurtz le pirate
Compagnie de la Banquise

Post a reply to this message

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