home *** CD-ROM | disk | FTP | other *** search
-
- #we want a patch where positive X is ascending time, and have
-
- set width 8
- set depth 3
- set text(color) "1 1 1"
- set text(fontName) Helvetica
- set text(size) 18
- set dataSlice(yRotate) 180
- set dataSlice(zRotate) 270
- set time 0
-
- animatable: {set dataSlice(origin) [expr {-1 * $time}]}
- animatable: {set dataSlice(xTranslate) [expr {-1 * $depth}]}
- set dataSlice(yTranslate) 0
- animatable: {set dataSlice(zTranslate) [expr {-1 * $depth}]}
-
- loadControlPanel controls.nib
-
- startShape gridWorld
- startShape floor
- MakeTexture $modelPath/grid.tiff /tmp/grid.tx clamp clamp box 2 2
- Surface paintedplastic texturename /tmp/grid.tx
- Patch bilinear P "0 0 0 \
- 0 0 $depth \
- $width 0 0 \
- $width 0 $depth"
- startShape ticks
- Surface constant
- for {set i 0} {$i <= $width} {incr i} \
- { startShape tick.${i}
- Translate $i 0 0;
- Color $text(color)
- WW3DText $text(fontName) $text(size) $i;
- endShape
- }
- endShape
- endShape
- startShape dataSlice
- Declare mapname string
- MakeTexture $modelPath/dataSlice.tiff /tmp/dataSlice.tx clamp clamp box 2 2
- Surface WWAlphaPaintedPlastic mapname /tmp/dataSlice.tx
- Color $text(color)
- animatable: {Rotate $dataSlice(yRotate) 0 1 0}
- animatable: {Rotate $dataSlice(zRotate) 0 0 1}
- animatable: {Translate $dataSlice(xTranslate) $dataSlice(yTranslate) $dataSlice(zTranslate)}
- animatable: {Translate 0 $dataSlice(origin) 0 }
- animatable: {Patch bilinear P "0 0 0 \
- 0 0 $depth \
- $depth 0 0 \
- $depth 0 $depth"}
- endShape
- endShape
-