
Friday, October 2, 2009
Tuesday, July 14, 2009
Monday, May 4, 2009
Final Project
For this final project i decided to do the L System trees. I think that when I looked at all of the different project ideas I thought that the recursive tree would be the easiest.
The first thing that I thought about when I saw the trees were was the L Systems example in Processing's examples. The code for this project was so short that i figured that I would be fine doing a 3D l system tree. Triangles in chapter 3 is the base of my program. After I became familiar with all of the methods and whatnot I decided to weed out what I didn't need. So i open 2 other projects from the Superbible and deleted everything in them and rewrote the entire program with only what i needed and no comments.
I also looked at the wikipedia entry, which makes sense but i did not really use it to do any of the programming for the project.
The first thing that I knew that I would need was a cylinder, which I found at this site. It turns out that this site had a lot of extra material that was useless but I did get the few lines of code needed to make a cylinder.
Once I learned how to draw the cylinder I started playing around with the translation matrices to get it to the bottom and then. Once I figured the translations I started playing with the rotations and from there it has just kind of been adjusting the different settings to find what looks the best. I have tried to use some different colors but it seems that open GL wont change the colors when the branch length gets short enough.
The first tree is just random placements and it was the first tree that I made. I really didn't know what was going on so the branches kind of go in different directions. The second shoots out about 8 branches from every branch by rotating once on the x axis and then one of the y axis. Once I got this code working i found the polygon garden website from the blog and saw their approach to rotations I then tried one similar to theirs which kind of shoots off branches like a sprinkler shooting off water. For the third one the code is about half as long.
cboard.cprogramming.com/game-programming/71357-need-some-help- drawing-cylinder-opengl.html
processing.org/
opengl.org/superbible
http://www.director-online.com/buildArticle.php?id=1119
Sunday, April 5, 2009
Project 2



After just finishing file handling in Java I thought that it would be difficult in C but it was not so bad. For my project I have just changed the sphereworld example from the open GL Superbible by Richard Wright. For my obj files I had to go into them and delete some of the garbage so that the program would only read the vertices and faces and not get caught up in the texture nonsense. The tutorials from the web site were pretty helpful for the C file handling. I got the .obj files from this site.
Thursday, March 26, 2009
Thursday, March 19, 2009
open gl is not so bad

So here are the two assignments. the curve came out pretty easily but the coloring on the house is not so great, all of the walls are there but from the angle that the camera is at you cannot see them. I need to just paint both sides of the wall.1. The thing that I find the most interesting about the openGL stuff is how some of the process that the processor would normally do are now being done by the graphics card which is probably under utilized by most computer users. I also thought that it was pretty cool that by pawning off some of the responsibilities onto the graphics hardware the machines are able to use less process and save battery overall, even if it is not that much. I also think the it is cool that processing and python are open to utilizing some of the open gl stuff as well.
2. Some of the things are new in this program are the glEnable and frontface that say they are used for hidden surface removal, the way the polygons face and the way some calculations are done. Also the glLight functions are new to this project.
Tuesday, March 3, 2009
Circles


Sunday, February 15, 2009
triangle
Friday, February 6, 2009
Project
Sunday, February 1, 2009
Cubic Click
5 triangles
void setup()
Thursday, January 22, 2009
Assignment 3 Bezier Curves
Wednesday, January 14, 2009
Homework 2












