Example01: It demonstrates the
minimal required steps to construct a scene and render a shape in
the scene to a window. |

Example02: For a large number
of data, adding them directly to a vertex or color object makes the
XML code difficult to read. Using the <include> tag, you can
combine scripts in multiple files as one. The tag let you construct
a scene skeleton and use it to show different data. Here the render
in example02.xml is used to animate
lines in inc01.xml. |

Example03: Three new concepts are introduced here: (1) Create
a light and texture object in a static node and use a image
as texture; (2) Read vertex, normal, and texture coordinate data from
a file; and (3)
Animate a dynamic node. |

Example04: Although the line
plot is extremely simple, the example demonstrates how to define a
symbol and then clone the symbol for every point in the a vertex object.
Because you can load a symble from a script file or read symbol vertex
data from a text file, any kind of line plot of scattered point plot
can be created. Further more, because the clone function let you optionally
scale the cloned symbols with a vertex object, you can actually use
the function to create other types of plot, e.g., 2D or 3D bar plot. |

Example05: Including wide characters
(e.g., Chinese or Japanese) in a XML file requires encoding. To avoid
this trouble, zeGraph lets you import text string from another
file to a xml script to be used as text or axis labels. This example
shows how to do it. |

Example06: In this animation,
a series of line objects are created in a node object by including
inc06.xml in the main script. The
node is then used as object list for animation. |

Example07: The <append>
and <readtext> functions of vertex, color, and texture coordinate
objects are quite flexible for adding data to a shape object, but
they are not efficient for a large dataset. zeGraph implements a plugin
interface to allow users to add functions to a dynamic-link library
(DLL) in C or C++ for creating shapes, importing data, or conducting
conversions. This example demonstrates calling DLL functions to make
the globe. |

Example08: This is an application
of XML script by METEX
to plot air trajectories. Online calculation results can be copied
to a text file, formated (e.g., traj.txt)
according to the requirement of the <readtext>
function of a vertex object, and then used as the input for the script. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |