Am I missing something?

Bernie Roehl ([email protected])
Mon, 26 Jun 1995 10:32:57 -0400


I'm in the midst of writing some translators to take other formats to VRML.
In order to make sure I'm Open Inventor docs at all, just the version 1.0 VRML spec.

Based on my reading of the spec, it >hould be possible to create a cube with
a difserent color on each of its six faces; unfortunately, I can't seem to
be able I'm

#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 in WorldView the 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).

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.

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

  • Next message: Jeff SonsteinP "Re: ANNOUNCE (me) & QUEST."
  • es"
  • Previous message975.html">Johan Hagman - Sun SwedenP "Re: Quick question"
  • Next in threadPrevious message978.html">Jeff SonsteinP "Re: Am I missing something?"