Download the finished project's sources
here.
The point of this project is to show how versatile the primitive building capabilities are in Elemental 4D, and encourage people to make their own. As I said in the documentation, I only built one example primitive into Elemental 4D (the Cube class). I did this so that people would not just use the standard primitive library, so that they would build their own primitives, and hopefully share them as I did with Elemental 4D.
I'm not writing a tutorial on how I did this, since it would be a novel, but I'm including all the sources. The point of the excercise is to show that not only can you build 3D shapes with primitives, but you can give animation capabilities and even AI capabilities right in the primitive. So study the code, get inspired, get ideas, and make beautiful primitives! If you make one really great, feel free to e-mail it to me, and if I get enough I'll start an Elemental 4D Primitives resource page! The mail is my first name in all small letters (bryan) followed by an at sign, followed by madbunny.us.
This project is copyright Bryan Grezeszak 2008, and you should only use it for personal use for learning.