POV-Ray : Newsgroups : povray.advanced-users : problem while applying texture Server Time
16 May 2024 16:15:08 EDT (-0400)
  problem while applying texture (Message 1 to 4 of 4)  
From: logic
Subject: problem while applying texture
Date: 21 May 2013 06:55:01
Message: <web.519b514bac27cc2fb46701db0@news.povray.org>
Hello,


#declare Bedsheet = "images/cloth15.jpg";
union {
 smooth_triangle { <-90.0829, 10.6486, 90.5189>, <-0.938913, 0.0928805,
0.331385>, <-90.8569, 12.819, 87.3967>, <-0.966925, -0.0604885, 0.247783>,
<-90.6256, 10.7625, 86.4407> , <-0.979818, -0.175934, 0.0948896> }


      texture{
          pigment {uv_mapping image_map {jpeg Bedsheet }}
      }
}

here is an povray output: http://www.css4me.com/test/pov/bed.bmp
and texture: http://www.css4me.com/test/pov/cloth15.jpg

please help, how can i apply texture all over beadsheet.

Thanks
LOGIC


Post a reply to this message

From: Thomas de Groot
Subject: Re: problem while applying texture
Date: 21 May 2013 07:43:53
Message: <519b5df9$1@news.povray.org>
My guess is that your triangles have no uv-coordinates. They should look 
something like this:

smooth_triangle 
{<0.480625,0,0.1>,<0,1,0>,<0.680625,0,0>,<0,1,0>,<0.680625,0,0.12253>,<0,1,0>uv_vectors<0.387569,0.545324>,<0.5,0.770187>,<0.362238,0.770187>}

Thomas


Post a reply to this message

From: Alain
Subject: Re: problem while applying texture
Date: 21 May 2013 19:37:35
Message: <519c053f$1@news.povray.org>

> Hello,
>
>
> #declare Bedsheet = "images/cloth15.jpg";
> union {
>   smooth_triangle { <-90.0829, 10.6486, 90.5189>, <-0.938913, 0.0928805,
> 0.331385>, <-90.8569, 12.819, 87.3967>, <-0.966925, -0.0604885, 0.247783>,
> <-90.6256, 10.7625, 86.4407> , <-0.979818, -0.175934, 0.0948896> }
>
>
>        texture{
>            pigment {uv_mapping image_map {jpeg Bedsheet }}
>        }
> }
>
> here is an povray output: http://www.css4me.com/test/pov/bed.bmp
> and texture: http://www.css4me.com/test/pov/cloth15.jpg
>
> please help, how can i apply texture all over beadsheet.
>
> Thanks
> LOGIC
>
>

An union of triangles? You should replace union by mesh.


Post a reply to this message

From: logic
Subject: Re: problem while applying texture
Date: 23 May 2013 03:00:02
Message: <web.519dbda6b89f05b8b46701db0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > Hello,
> >
> >
> > #declare Bedsheet = "images/cloth15.jpg";
> > union {
> >   smooth_triangle { <-90.0829, 10.6486, 90.5189>, <-0.938913, 0.0928805,
> > 0.331385>, <-90.8569, 12.819, 87.3967>, <-0.966925, -0.0604885, 0.247783>,
> > <-90.6256, 10.7625, 86.4407> , <-0.979818, -0.175934, 0.0948896> }
> >
> >
> >        texture{
> >            pigment {uv_mapping image_map {jpeg Bedsheet }}
> >        }
> > }
> >
> > here is an povray output: http://www.css4me.com/test/pov/bed.bmp
> > and texture: http://www.css4me.com/test/pov/cloth15.jpg
> >
> > please help, how can i apply texture all over beadsheet.
> >
> > Thanks
> > LOGIC
> >
> >
>
> An union of triangles? You should replace union by mesh.

Thanks my problem is solved by using mesh.


Post a reply to this message

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