|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Excuse me if this has been answered.
If I declare a function from an image map like so:
#declare Image = pigment{ image_map{ "goth.bmp" once} }
#declare f_Image = function{ pigment{Image} }
then use the function as a pigment:
plane{
-z, 0
pigment{ function{f_Image(x,y,z).gray} }
}
....it works but everywhere outside <0,0,0> to <1,1,0> on the plane is set to
a medium shade of gray. Am I doing something wrong?
Janger
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> ....it works but everywhere outside <0,0,0> to <1,1,0> on the plane is set
to
> a medium shade of gray. Am I doing something wrong?
That sounds like the correct behavior. Perhaps you didn't want to include
the "once" keyword?
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Slime" <fak### [at] emailaddress> wrote in message
news:3f592147$1@news.povray.org...
> > ....it works but everywhere outside <0,0,0> to <1,1,0> on the plane is
set
> to
> > a medium shade of gray. Am I doing something wrong?
>
> That sounds like the correct behavior. Perhaps you didn't want to include
> the "once" keyword?
If the idea was to place a single image onto the plane and leave the rest
transparent then I don't believe there's any way to do that in this way.
You'd need to clip away all areas surrounding the image or tell it to be
transparent. Neither can be done within a function pigment, FAIK anyway.
Checking on that here, what you see is actually white not gray. Use an
ambient 1 for the finish and you'll see. You can modify the pattern using
other functions or equations put in with the image function but that won't
remove parts, you still get a whole opaque plane. I tried combining a
transparent pigment and am not able to get just the image to show and leave
the rest empty.
Maybe someone else has more to say concerning this...?
Bob H.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hughes, B. wrote:
>
>Checking on that here, what you see is actually white not gray. Use an
>ambient 1 for the finish and you'll see.
You are correct. Actually the camera was looking down slightly, so the white
looked more gray. For what I'm doing I could either apply the pigment to a
box, or use a 'picture frame' to mask out the white.
Thanks
Janger.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
// What about something like this:
#declare Image = pigment{ image_map{ "goth.bmp" } }
#declare f_Image = function{ pigment{Image scale 2 translate <-1, -1, 0>} }
plane {
-z, 0
pigment{ boxed
pigment_map {
[ 0 color rgbt 1 ]
[ 1E-5 function{f_Image(x,y,z).gray} ]
}
translate <1, 1, 0>
scale 0.5
}
}
plane { -z, -1 pigment { bozo } }
light_source { <-2, 1, -3>, rgb 1 }
camera { location -3*z look_at 0 }
// Sputnik
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|