Re: Am I missing something?

Anthony P[email protected])
Mon, 26 Jun 1995 15:31:43 -0400


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

Good for you.

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

Bernie and friends,

You may relax now. You're not crazy. I screwed up. There was a bug in
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.

____________________________________________________________________________

Intervista Software
Internet Visualization

Tony P es"sident http://www.hyperion.com/intervista/

____________________________________________________________________________


  • Next message: B.K. DeLongP "Re: Mild flame on TGS"
  • es"
  • Previous message985.html">Kitainik LeonidP "Please download HOME SPACE BUILDER 1.0 (connection is OK)"
  • Maybe in reply toPrevious message976.html">Bernie RoehlP "Am I missing something?"