|
|
"fls13" <fls### [at] netzeronet> wrote:
> Never figured out how to do it, but never needed to up till now. Can anyone
> point me to a code snippet?
Here are the basics:
#declare Material1 =
material // Material1
{
texture
{
pigment
{
image_map
{
gif "C:povmap.gif"
}
scale <1.0, 1.0, 1.0>
rotate <0.0, 0.0, 0.0>
translate <0.0, 0.0, 0.0>
}
}
}
replace "C:povmap.gif" with your own path
use scale, rotate and translate to fit the bitmap onto your object
if you are using a .tga map with a transparent background Povray
automatically makes that part transparent in the rendering
Hope this helps
Hildur
Post a reply to this message
|
|
|
|
"fls13" <fls### [at] netzeronet> wrote:
> Never figured out how to do it, but never needed to up till now. Can anyone
> point me to a code snippet?
Oh I forgot,
for tiling you use scale and a number smaller than 1
<1.0, 1.0, 1.0> is tiling 1x1x1 times
<0.5, 0.5, 0.5> is tiling 2x2x2 times
<0.1, 0.1, 0.1> is tiling 10x10x10 times
often you also need to adjust translate as well to make the bitmap fit
Hildur
Post a reply to this message
|
|