ActionScript 3 Tutorials. 3D Texture Mapping with drawTriangles in Flash CS4 and AS3. In this experiment, we examine the ActionScript 3 method 'drawTriangles' which is new to Flash Player 10 and Flash CS4. This method is particularly useful for 3D texture mapping and we use it to create a collection of planets displayed below. Click on the image to open the applet in a new window. Download Download all files corresponding to the applet above: cs4planets.zip All the source files in the package are exhaustively commented. The applet presented here is similar to the applet in our earlier tutorial 'Earth and Other Celestial Bodies in 3D in Flash CS3 and AS3'. Improvements in Performance: We have observed significant improvement in performance when 'drawTriangles' is used as opposed to our custom (but standard) AS3 class BitmapTransformer.
Rendering is about 5 times faster; Memory use decreased by about 35 percent; Rendered bitmaps are of higher quality. Besides the new 'drawTriangles' method, we use the new 3D classes: Matrix3D, Vector3D, as well as the Vector class. Developer's Guide - Google Chart API - Google Code. What's Special About This Number? What's Special About This Number? If you know a distinctive fact about a number not listed here, please e-mail me. primes graphs digits sums of powers bases combinatorics powers/polygonal Fibonacci geometry repdigits algebra perfect/amicable pandigital matrices divisors games/puzzles 0 is the additive identity . 1 is the multiplicative identity . 2 is the only even prime . 3 is the number of spatial dimensions we live in. 4 is the smallest number of colors sufficient to color all planar maps. 5 is the number of Platonic solids . 6 is the smallest perfect number . 7 is the smallest number of sides of a regular polygon that is not constructible by straightedge and compass. 8 is the largest cube in the Fibonacci sequence . 9 is the maximum number of cubes that are needed to sum to any positive integer . 10 is the base of our number system. 11 is the largest known multiplicative persistence . 12 is the smallest abundant number . 13 is the number of Archimedian solids . 17 is the number of wallpaper groups .