|
|
I'm trying to use a mesh2 with the object pattern and I keep getting the
error "Illegal texture of patch in clip, bound, or object pattern". The
mesh is untextured, has an inside_vector defined, and works fine in CSG.
The object pattern also works fine if I use another object (such as a
sphere) instead of a mesh. Any idea what I'm doing wrong? This is
POV-Ray 3.6 on Vista in case that matters.
Here's some example source code that should generate the error:
#declare TestMesh = mesh2 {
vertex_vectors {
8,
<-1,-1,-1>,
<-1,-1,1>,
<-1,1,-1>,
<-1,1,1>,
<1,-1,-1>,
<1,-1,1>,
<1,1,-1>,
<1,1,1>
}
face_indices {
12,
<0,1,2>, <1,2,3>,
<4,5,6>, <5,6,7>,
<0,1,4>, <1,4,5>,
<2,3,6>, <3,6,7>,
<0,2,4>, <2,4,6>,
<1,3,5>, <3,5,7>
}
inside_vector x
}
// This gives an error
sphere {
<0,0,0>, 1
texture {
object {
object { TestMesh scale 0.5 translate <0,0,-1> }
texture { pigment { color rgb 1 } }
texture { pigment { color rgb <0,0,1> } }
}
}
}
Post a reply to this message
|
|