Postie wrote:
> Hello,
>
> This is probably in the manuals, but I haven't finished reading yet. My
> question is
> this:
>
> I made a barrel in POV-ray using SOR. Then I applied some texture to it.
> But how
> do I get an image from the biohazard logo on the barrel just only once?
> Do I have
> to apply 2 textures of some kind with the biohazard logo applied only
> 'once'?
>
> Thanks in advance.
> --
>
> This message was brought to you by:
> _____ _ _ /--- ,-.-. \
> | __ \ | | (_) | | | | | |
> | |__) |__ ___| |_ _ ___ \ | | | | /
> | ___/ _ \/ __| __| |/ _ \
> | | | (_) \__ \ |_| | __/
> |_| \___/|___/\__|_|\___| aka Stefan Postema
>
> Address: http://fmf.ml.org/~postie
> http://huizen.dds.nl/~nicap
> mailto:csg### [at] wingrugnl
> --
This one is pretty easy.
I'm going to presume your barrel is 10 units tall 3.5 units wide
and is standing on a plane located at y*0.
object{Barrel
texture{
pigment{your pigment}
finish{your finish}
normal{?}
pigment{
image_map{gif "biohazard.gif" interpolate 2 once}
translate -0.5 // this will center the image
scale 1.5 // this will give your label a size of 1.5 x 1.5
translate y*7 // this will put the image at the top end of the
barrel
}
}
}
This should work. Give it a try.
Happy Rendering !
K.Tyler
Post a reply to this message
|