POV-Ray : Newsgroups : povray.unofficial.patches : uv_mapping again - how to? : Re: uv_mapping again - how to? Server Time
1 Sep 2024 12:21:47 EDT (-0400)
  Re: uv_mapping again - how to?  
From: Mick Hazelgrove
Date: 18 Apr 2001 04:23:04
Message: <3add4ee8$1@news.povray.org>
The best way of uv mapping a image on a hamapatch object is to export as a
obj file and use uv mapper to create the image map. Gilles has written an
excellent tutorial on the subject which you should be able to find on his
site.

Mick

"Marc-Hendrik Bremer" <Mar### [at] t-onlinede> wrote in message
news:3adc9cd6@news.povray.org...
> Hi,
>
> I give it up. I don't understand how to map an image on a union of
> bezier_patches created in Hamapatch.
>
> I exported a simple plane out of 32 patches an tried to map a png on it.
The
> union lies in the x/z-plane. As the image_map is in the x/y-plane, I
rotated
> it x*90.
>
> The code I added to the union:
>
> uv_mapping
>  texture{pigment{rgb 1}}
>  texture{ pigment {
>     image_map{
>       png "Flagge.png" // the file to read (iff/gif/tga/png/sys)
>              map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
>              interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized
> distance
>              once
>            } // image_map
>           rotate x*90          }
>         }
>
> What is wrong? I only get stripes of my image, streched in the z-axis.
> In addition, if I rotate the object, the texture does not rotate with it.
>
> What is wrong?
>
> Thanks in advance,
>
> Marc-Hendrik
>


Post a reply to this message

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