Simple raytracer that calculates colors for individual pixels. The raytracer is able to calculate shadows, diffuse lighting, specular reflection, as wells as actual reflection up to three levels of recursion. Executable found here and a sample parameter file here.
Formating for the parameters:
NEAR <n>
LEFT <l>
RIGHT <r>
BOTTOM <b>
TOP <t>
RES <x> <y>
SPHERE <name> <pos x> <pos y> <pos z> <scl x> <scl y> <scl z> <r> <g> <b> <Ka> <Kd> <Ks> <Kr> <n>
LIGHT <name> <pos x> <pos y> <pos z> <Ir> <Ig> <Ib>
BACK <r> <g > <b>
AMBIENT <Ir> <Ig> <Ib>
OUTPUT <name>
Friday, March 16, 2012
Thursday, March 1, 2012
Wednesday, February 22, 2012
Underhell - Chapter 1 Trailer
Official Website: http://underhell.wecreatestuff.com/
Env_message Entity modification HL2 (for Underhell mod)
The right-most button is a game_text entity and the middle two are Env_message entities using keyvalues instead of parameter overrides to print a message. Source code for this is available on request.
Ambient Generic entity fixed (for Underhell mod)
This online guide:https://developer.valvesoftware.com/wiki/Ambient_generic:_stop_and_toggle_fix
did not work correctly until I notted (! operator) m_fLooping in the if statement.
Shooting the white block toggles the sound and shooting the other block stops the sound.
Friday, January 27, 2012
OpenGL Affine Transformations Project
OpenGL animations done with affine transformations. A bee flies around a swaying flower with a sphere for foliage. Since OpenGL is not object-oriented and I do not feel comfortable handling non-object animations, I made classes for both the bee and the flower. The static keyword allows for calling class functions without creating an actual object.
Link to zipped executable here.
Link to zipped executable here.
Thursday, January 19, 2012
Sierpinski Gasket
This fascinating pattern is created by the following steps:
- Pick 3 vertices for a triangle
- Assign a color for each vertex (In this case, red, green and blue)
- Pick an arbitrary point "p" that is inside the triangle, with an arbitrary color
- Pick, at random, one of the vertices.
- Find the midpoint, "m", between "p" and the randomly picked vertex, along with the mid-point color
- Draw "m", and replace "p" with "m"
- Repeat from step 4
Subscribe to:
Posts (Atom)


