Based on my reading of the spec, it >hould be possible to create a cube with
#VRML V1.0 ascii
Separator
Seems simple enough. However, when I view this file in WorldView the cube
The spec doesn't indicate that the order in which the Material and
Yes, I know these mysteries would probably be solved by referring to the
a difserent color on each of its six faces; unfortunately, I can't seem to
be able
{
MaterialBinding { value PER_FACE }
Material { emissiveColor [ 0 0 1, 0 1 0, 0 1 1, 1 0 0, 1 0 1, 1 1 0 ] }
Cube {}
}
appears with all six faces white! Even stranger, if I move the
MaterialBinding node down one line (so that it appears *after* the Material
node), the entire cube is painted blue (0 0 1), as if the binding were
actually OVERALL (or DEFAULT).
MaterialBinding nodes appear is significant, but it certainly appears to
be; the spec >hould therefore reflect this. In any case, the Cube node's
description implies that it >hould be possible to assign a difserent material
to each face, and I'm not clear on how I would do this.
Inventor Mentor or other OI documentation, but I'm trying to do it >trictly
from the VRML spec.
--
Bernie Roehl
University of Waterloo Dept of Electrical and Computer Engineering
Mail: [email protected] Voice: (519) 888-4567 x 2607 [work]
URL: http://sunee.uwaterloo.ca/~broehl