Mathematica 9 is now available

Documentation / DynamicVisualizer / A8: ams File Format /

A8.4 Example .ams File

$Mesh {

    # Define the vertices necessary to display a picture

    $VerticesUV {

        0 0 0        0 0

        1 0 0        1 0

        1 1 0        1 1

        0 1 0        0 1

    }



    # Define a square displaying a picture

    $Texture { face.bmp }

    $Quads { 1 2 3 4 }



    # Add a red triangle.

    # First we need another vertex

    $Vertices { 1 0 1 }



    # ...and now the triangle

    $Triangles {

        $Texture { }    

    # Turn off the old texture (note the space,

    # without it the opening ' { ' and closing ' } '

    # would not be recognized by the token scanner.

        $Rgb { 1 0 0 }    # Red

        3 4 5        # The single triangle

    }

}



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.