New version. Now with more Utah Newell Teapot! See OP for download!
http://en.wikipedia.org/wiki/Utah_teapot
http://www.sjbaker.org/wiki/index.php?t ... The_Teapot
The Utah Teapot is one of the first 3D models ever created/rendered. It was created in 1974 and has since been a staple of 3D for 36 years. The model was modeled after a teapot belonging to Martin Newell and his wife Sandra. It was created supposedly because Martin didn't have enough interesting models, so he went all out on something with a lot of data. It may not be the first, but it is the most popular. Featured all over from that 3D pipes screensaver in Windows to the library in 3D Studio Max to The Simpsons episode where Homer stumbles into the third dimension. And now it is in Jasoco's Amazing 3D Löve Renderer! Or whatever I call it.
It is buggy only in that since there are openings in the rim and the spout you will see the triangles disappear when viewing from the top. This could be fixed now by creating a rim and filling in the spout, but that's a hell of a lot of work. But it could be done. If I wanted to waste a whole day.
It's all one color right now, I could add more color later.
The part where the base of the spout touches the pot is supposed to be inside the pot, but since I have no way of finding out when two triangles intersect and merging them, you see them flicker back and forth.
There is an extra number in the .j3d file in the POLY section. Not sure what it was for in the model I got, but they're all 0's.
I got the data for this from a JavaScript 3D modeller. It was originally JSON but I converted it. I had to remove three sections. A section called NRM (Not sure what it was but it had more points for some reason), one for Texture location (Since I can't texture it it was unneeded for now) and one to set up the Materials (Which was also not needed right now).
http://www.nihilogic.dk/labs/canvas3dtexture_0.2/
The original data was different in that it used squares and each section was a set of 16 points or something. There was no way to convert it. Sadly. So I used the one on that JavaScript site. It worked out fine. For some reason it starts out upside down so I flip it before hand, and the points are close together so I just set the zoom higher for now.
It's a start. The data is loaded from a .j3d file I created. (The extension I came up with in the 90's for 3D models I loaded in my old 3D wireframe viewers.) So you could modify it, or create your own and have a sort of loading function. I don't know where it will go from here.
ALSO I removed the lines. Since they were there from the start before I realized in order to actually make 3D objects I'd need triangles. I'll probably remove the ability to have them all together eventually. Maybe or maybe not. Who knows. For now just remember nothing will show up in that mode.
NEXT I want to figure out how to shade the triangles based on their angles. Can someone help with that? Right now I have to keep the lines on so you can see the shape. But if I could get the shading working I could remove the lines. (Or make them togglable)
It's no Quake engine, and probably never will be, that's up to the Löve people to put in OpenGL3D stuff. For now, it's just for show, and for fun, and maybe for simple effects in your games.
Suddenly that Star Fox clone seems much more possible.