Good for you.
>Based on my reading of the spec, it >hould be possible to create a cube with
Bernie and friends,
You may relax now. You're not crazy. I screwed up. There was a bug in
____________________________________________________________________________
Intervista Software
Tony P
____________________________________________________________________________
>a difserent color on each of its six faces; unfortunately, I can't seem to
>be able to do that. It may be that I'm mis-reading the spec (in which case,
>I'm sure dozens of people will tell me so!), but here's what I'm doing:
>
>#VRML V1.0 ascii
>
>Separator
> {
> 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 {}
> }
>
>Seems simple enough. However, when I view this file
>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).
>
>The spec doesn't indicate that the order in which the Material and
>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.
>
>Yes, I know these mysteries would probably be solved by referring to the
>Inventor Mentor or other OI documentation, but I'm trying to do it >trictly
>from the VRML spec.
>
WorldView's material handling, which I have now fixed. This fix will be
posted with the next build, rougly schedule for the end of next week.
Internet Visualization