|
|
After loading an object modelled in wings3d, I attempt to make a union out
of the various meshes, but the same error keeps appearing. "No '}' found in
union, object identifier found instead." And yes, I put a '}' at the end of
the union.
Can you not make unions out of meshes?
It's been a few months since I used pov-ray, so I apologize if it's
something retardedly simple.
Here's a snippet of the code, if it will help:
#declare keyboard = union {
#declare cube38_copy61 = mesh2 {
vertex_vectors {18,<1.38453,8.74767e-3,0.723452>, .....}
normal_vectors {18,<-0.666667,-0.333333,0.666667>,....}
texture_list { 5,
texture { white_WingsMat }
texture { speaker_WingsMat }
texture { screen_WingsMat }
texture { gray2_WingsMat }
texture { black_WingsMat }
}
face_indices {32,<0,3,9>,4,<0,4,3>,.....}
normal_indices {32,<0,3,9>,<0,4,3>,<0,8,1>.....}
}
cube38_copy61
}
Post a reply to this message
|
|
|
|
Gah. Nevermind. I figured it out.
In the union you must specify 'object {....}', but outside of them you don't
need to.
I even tried changing that at first, but at render time chose not to save
and so POV parsed the old file, giving me the error.
Sorry if I wasted anyone's time.
Post a reply to this message
|
|
|
|
"Ian Crofoot" <nomail@nomail> wrote:
> This is very strange, but apparantely I only need the object tag on the
> first two (out of 60+) meshes, and it parses just fine.
>
> Anyone know why this is?
Is it including the latter meshes as part of the last one declared as an
object? I guess you could apply a texture ...like basic Red pigment... to
one and see if the other meshes change as well.
I'm not sure how Wings labels its exports though. I've exported only from
Rhino.
Post a reply to this message
|
|
|
|
"tom" <tmi### [at] uarkedu> wrote:
>
> Is it including the latter meshes as part of the last one declared as an
> object? I guess you could apply a texture ...like basic Red pigment... to
> one and see if the other meshes change as well.
> I'm not sure how Wings labels its exports though. I've exported only from
> Rhino.
No, I don't think so. The later meshes use different textures, and each
mesh is delcared separately, and thus different objects I assume.
Post a reply to this message
|
|