TKOGL DEMO SCRIPTS ================== Running a Demo Script: Just execute your TKOGL extended wish (either glwish or mesawish) with the script as a parameter. For example, if you have just compiled mesawish in the 'src' directory, you should be able to run, say, nurbsdemo.tcl with ../src/mesawish nurbsdemo.tcl Notes about the demos: accumdemo.tcl Shows the use of the accumulation buffer to blend two spheres bezcurvedemo.tcl Renders a cubic Bezier curve. Control points can be dragged with mouse button 1 bezsurfdemo.tcl Renders a cubic Bezier surface patch. Dragging Button 1 rotates the surface. Clicking Button 2 toggles between line display and fill display. fogdemo.tcl Renders three colored spheres with fog. The radio buttons and scales control some of the OpenGL fog rendering parameters. gencyldemo.tcl Demonstrates some of the capabilities of the Generic Cylinder extension. The radio buttons select different surface types. The edit check button opens a popup window for inspecting or changing the parameters of the surface type currently selected. Mouse button 1 can be used to rotate the surface. nurbsdemo.tcl Demonstrates some uses of the nurbssurface command. Renders a surface patch defined by a 4x4 control point mesh. The radio buttons let you experiment with parameters such as the knot distributions, the polynomial order, etc. Dragging mouse button 1 rotates the surface. pickdemo.tcl Demonstrates the select widget command by allowing picking and dragging the vertices of a wireframe with mouse button 2. Dragging button 1 performs rotation. simpledemo.tcl A very simple application - draws a triangle. Begginners should start by browsing this source. tessdemo.tcl Demonstrates the use of the tesselate widget command. Draws a square with a square hole. Button 1 toggles between line and fill modes. texturedemo.tcl Demonstrates OpenGL texture mapping. Two textures can be selected by radio buttons: a checkerboard image generated by the script itself and the teapot image (teapot.ppm) of the Tcl/Tk distribution. (NOTE: you may have to edit this script if Tcl/Tk demo dir is not /usr/local/lib/tk4.0/demos/).