|
|
Hello,
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
|
|