Anyways, in the class we made our own interpreter for a language KLOGO, specified by the professor. It is a "logo" like language, in that it interprets your commands and moves a turtle around to draw a picture. We used flex and bison for our parser/scanner respectively and the graphics professor at my school programed the graphics part we were to interface with. After the scanning and parsing an AST was produced, that was type checked and finally executed the code. It sounds pretty simple when I say it now, but it was a lot of work. Below is an image of my interpreter interpreting a program I made. It demonstrates most features of the interpreter. Note: the output in the terminal was to demonstrate to the professor that it actually was working, and not just an image I drew.
Friday, May 20, 2011
Why I've Been So Busy Pt2: Compilers
Took my a while to get time to write this up. I've been busy moving stuff and getting back to work now that schools out. Anyways, I took a compilers course last semester, it was a lot of work but it was fun and I learned a lot. I mainly took it because of this blog post http://steve-yegge.blogspot.com/2007/06/rich-programmer-food.html that was in Hacker Monthly. After reading it I was all about taking compilers. Then a month went by and it was time to sign up for classes. I almost didn't take compilers, in fact I had to read the article again to convince myself to. I am glad I did. I have a better understanding how they work, and what errors mean just to name a few things.
Monday, May 9, 2011
Why I've Been So Busy Pt1: Ray Tracing
I've been super busy over the last semester. The main reason would be my graphics class. The main project is building a ray tracer. Here are pictures from start to finish.
Circle Intersections Working
Triangle Intersection Working
Multiple Triangle Intersections
First 3D Object: Lambertian Shading
Multiple Sphere Intersection
1000 Spheres
Blinn-Phong Shading Working
Mirrors Working
Playing With Mirrored Spheres
First part of the project done (many hours later), next step bounding volume hierarchy, distributed rays, instancing and loading meshes.
BVH working, 1 Million Spheres taking about 12 minutes, 10 depth reflections picture size 1000x1000
Anti-Aliasing
Image for Picture Contest
Spock
Soft Shadows and Instancing
Full Screen Photo Gallery - I made some of these to be wallpapers so feel free to use them as such. Otherwise if you use them anywhere else just give me some credit.
All obj models used are from http://www.cs.caltech.edu/~njlitke/meshes/toc.html
Subscribe to:
Posts (Atom)


















