Using MathLive with Files

Using MathLive with Files

MathLive uses it's own proprietary file format called an ASCII mesh which encodes in a very simple fashion, the full form data written by Mathematica and used by MathLive. The ASCII mesh is supported by all versions of MathLive on all platforms and we suggest that you make use of this format if you regularly use both Macintosh and Windows platforms. Please note that the ASCII mesh does not encode the actual mathematics used to generate the mesh. It simply encodes the mesh data in the form of triangles, quads and polygons. If you need to retain the mathematics, you should use the standard notebook form files to transfer information.

MathLive still supports a Wolfram Research proprietary format called 3-Script. This file format is extremely basic but is retained for compatibility with earlier versions of MathLive.

In addition to loading mesh information, MathLive can make use of texture maps to add realism to a scene. The two file formats currently supported are SUN Raster files (usual extension .ras) and Windows bitmap files (usual extension .bmp). We have included a notebook in the distribution disks which show you how to create a simple SUN raster file for use with MathLive. Depending on the 'depth' of the file, textures may be static (single 128x128 image) or animated (128x128xn) where n is some integer. .ras or .bmp files in such a format will be used by MathLive so that each 128x128 frame is played in succession, thus providing an animated display. These can be very useful to illustrate changes in some attribute of a function.

Creating and Using 3-Script files

3Script files may be created very simply. The following series of steps (supplied in the NoteBook "") may be used to create a 3-Script representation of a simple exponential function.


bell = Plot3D[Exp[-x^2 + -y^2], {x, -2, 2}, {y, -2, 2}

                , PlotPoints -> 25]

ThreeScript["bell.ts", bell]
datasheet technical notebooks demos

about us contact new index
internet software virtual reality programming