Make an image that uses instancing to create a scene with at least a billion objects. Assignment
UGH!! I hate instancing! Never has any feature wrecked so much havoc on my code and in my life. I finally have something with which I am mostly satisfied. I can now wash my hands of this assignment. I have mechanisms that can rotate the object around an arbitrary vector, translate it and scale it. Much thanks goes to Diana Gruber for her discussion of matrix math, specifically pertaining to transformation matricies. Thanks also to Brian Budge who helped here and there.
This image is called Armada. There are 250,000 ships
aranged in a 500x500 grid. Each ship has 4689 triangles. That makes
a grand total of 1,172,250,000 triangles. Aditionally each ship has a
slight jittered offset along with a random yaw. Click on the image
for a larger version which is 1400x500.
// Sample Code
Don't you wish. This stuff is all mine! :) I may post some code when I don't feel so angered at this assignment.