Rotating Teapot - Printable Version +- Curl Global Community (https://communities.curl.com) +-- Forum: Widgets/Gadgets/Curlets (https://communities.curl.com/forumdisplay.php?fid=15) +--- Forum: Code Samples (https://communities.curl.com/forumdisplay.php?fid=16) +--- Thread: Rotating Teapot (/showthread.php?tid=99) |
Rotating Teapot - ashimo - 07-01-2011 The "teapot" is a classic example of 3D rendering. The Curl RTE renders it using hardware-accelerated 3D graphics. This famous teapot is rendered using Curl's real-time rendering of vector-based graphical elements. Description Curl's 3-D graphics engine rotates a surface model created from a table of coordinates. You'll have to check out the code to believe it. Definitely no animated .GIF files here, the model is created and then rotated. Simple in theory, but not so easy with other technologies. See the instructions so you don't miss anything.
For you purists out there: sorry, this teapot does have a bottom. Run this one full screen if you can't see the whole thing in your browser. Click on "Run/Stop", then sit back and watch the teapot spin. Couldn't be simpler (or much more impressive). But if you want to see ultra-cool, try this:
To run the rotating teapot applet application click on the link below. Rotating Teapot Download the zip file attachment below to get the complete source code for this application. You will also need the to download and unzip the Styled Controls package from the link below. The unzipped contents should be placed alongside the unzipped Rotating Teapot demo source. Styled Controls Package Zip File teapot.zip |