GLSL Edge Detection
Here is an edge detection I created for class. I used a Laplacian stencil sums up, down, left, and right values and subtracts them by 4 times the center value.
GLSL Phong and Gouard Shading
I recently wrote a program for class the compared Phong and Gouard shading using the OpenGL shader language GLSL. To sum it up in a couple of sentences, Gouard shading uses per-vertex shading and Phong uses per fragment/pixel shading. Gouard will look more flat shading because the triangles (triangle mesh) will have a solid color. Phong shading colors per pixel so the triangles can vary in color inside the triangles. In GLSL the lightening calculation will be calculated in the vertex shader for Gouard and in the fragment shader for Phong.

Find the closest point
This post is the third installment from my post (How to detect a collision between a circle and a line). In this post I will show how to find the closest point to a point/circle. It is pretty straight forward after you know how to determine the distance between 2 points. read more…
This post is the second installment from my previous post (How to detect a collision between a circle and a line). In this post I will show how to determine if a circle or point is above a line. If you know anything about a dot product of two vectors then you probably could come up with the ‘if’ statement yourself. Without going in to too deep of details about dot products, it is basically means if two vectors point the same direction then their dot product will be greater then zero.
I just now finished another computer graphic school project and want to share a few things. As you can tell there is a few bugs, but that is a different story. So far I am going to do this any many parts. I wanted to start off by talking about how to detect a collision between a circle/ball with a line. I will later talk about how to find the reflection, what to with many different lines and what else I can brew up.
Here is a visual of what I am talking about:
read more…
Here is some code and an applet of showing how the Neville’s method affects curve subdivision. How to use the applet is on the bottom. Check out my previous post on an applet that just uses Neville to compute a curve. Enjoy!
Subdivision with Neville’s Method
Neville’s Method code and program
Here is a project I implemented recently in class. It uses the Neville Method to interpolate 4 points. Press the number of the dot to control the dot. This is a non-recursive version on it. The code is sorta hard to follow, but email me if you have any questions greenbizkit33 [at] gmail.com.
E = MC^2 Calulator
I created another useless calculator. Hope someone finds it helpful. You can either calculate the mass or the energy in E = MC^2
read more…
JavaScript Code for a Simple Calculator
My last blog post I created a Drake calculator. As promised here is the code to it. This can be easily converted to any calculator. There is a few parts that are embarrassingly bad coding. So scrap what you need. read more…




