next up previous contents
Next: The visualization code Up: Visualization setup Previous: Visualization setup

Inventor and VRML

  Let me give an example of what an Inventor file looks like:

#Inventor V1.0 ascii

Separator {
    Separator {
        Material {
            diffuseColor 0.0 0.0 1.0 # Blue
            transparency 0.25        # 25% transparent
        }
        Sphere {                     # A sphere
            radius 1.5               # of radius 1.5
        }
    }
    Separator {
        Transform {
            translation 3.0 0.0 0.0  # We move a bit
        }
        Material {
            diffuseColor 0.0 1.0 0.0 # Green
        }
        Cube {                       # A Cube (of default dimensions)
        }
    }
}
As you can see, it is a plain text (ASCII) file, with nice commments in it. The Separator command acts as logical paranthesis. You can view the file here.

Now, if we in the above Inventor 3D scene replaces ``Inventor'' with ``VRML'' in the first line, we have a VRML 3D scene! You can view it here.



Web Exhibition: Null Geodesics Around a Kerr Black Hole

Bo Milvang-Jensen (milvang@astro.ku.dk)
Mon Jun 17 11:54:08 MDT 1996