|
|
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
|
|