POV-Ray : Newsgroups : povray.newusers : mesh2 and texture problems Server Time
31 Jul 2024 04:27:30 EDT (-0400)
  mesh2 and texture problems (Message 1 to 1 of 1)  
From: czl
Subject: mesh2 and texture problems
Date: 7 Nov 2002 00:36:11
Message: <3dc9fbcb@news.povray.org>
Hi, all, I create a triangles use mesh2 as following:
///////////////////////////////
camera {
 perspective
 location <5.000000,5.000000,17.071068>
 direction <0.000000,0.000000,-1.000000>
 right <1.000000,0.000000,0.000000>*1.33
 up <0.000000,1.000000,0.000000>
 focal_point <0.000000,0.000000,-1.000000>*17.071068
 angle 45.000001
 sky<0.000000,1.000000,0.000000>
 look_at <0.000000,0.000000,-1.000000>*341.421356
}
light_source {
 <5.000000,5.000000,17.071068>
 color rgb <1, 1, 1>
 matrix<1.000000,0.000000,0.000000,
  0.000000,1.000000,0.000000,
  0.000000,0.000000,1.000000,
  0.000000,0.000000,0.000000>
}
mesh2{
 vertex_vectors{
  3,
  <0.000000,0.000000,0.000000>, <10.000000,0.000000,0.000000>,
<10.000000,10.000000,0.000000>
 }
 normal_vectors{
  3,
  <0.000000,0.000000,1.000000>, <0.000000,0.000000,1.000000>,
<0.000000,0.000000,1.000000>
 }
 uv_vectors{
  3,
  <0.000000,0.000000>, <0.000000,1.000000>, <1.000000,1.000000>
 }
 texture_list{
  3,
  texture{pigment{rgbf<1.000000,0.000000,0.000000,0.000000>}}
  texture{pigment{rgbf<0.000000,1.000000,0.000000,0.000000>}}
  texture{pigment{rgbf<0.000000,0.000000,1.000000,0.000000>}}
 }
 face_indices{
  1,
  <0,1,2>,0,1,2
 }
 normal_indices{
  1,
  <0,1,2>
 }
 uv_indices{
  1,
  <0,1,2>
 }
 texture{
  pigment{
   average
   pigment_map{
    [1 color rgbf<0.800000,0.800000,0.800000,0.800000> ]
    [1 uv_mapping image_map{ png "c:\1.png" }
     matrix<1.000000,0.000000,0.000000,
      0.000000,1.000000,0.000000,
      0.000000,0.000000,1.000000,
      0.000000,0.000000,0.000000> ]
   }
  }
 }
}

///////////////////////////////
in this triangle, I set every vertex a texture and a image as whole texture
to the triangle, but the result image don't show the whole
image texture, only in texture_list.
So my question is:
How can I set another image texture on such a mesh2 object.

thankx.


Post a reply to this message

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