Thursday, March 10, 2011

CG2: Week 1 Assignment

Setting the scene:


From CG2 - Week 1

Note: The dark artifact on the smaller sphere I believe is a result of using a combination of OpenGL's alpha blending and built-in lighting. I could have played with the blending settings and probably gotten rid of it, or at least done all the lighting with shaders, but as it wasn't required I just let it be.

Details


Camera

Position: (0.0, 0.0, 0.0)

Lookat: (0.0, 0.0, 1.0)

Up Vector: (0.0, 1.0, 0.0)

Floor

Front-left Corner: (-1.0, -0.5, 1.0)

Back-right Corner: (1.0, -0.5, -5.0)



Back Sphere (smaller)

Position: (-0.35, -0.2, -2.0)

Radius: 0.25



Front Sphere (larger)

Position: (0.0, 0.0, -1.6)

Radius: 0.30



Light

Position: (3.0, 3.0, -10.0)

Ambient Color: (0.0, 0.0, 0.0)

Diffuse Color: (1.0, 1.0, 1.0)

Specular Color: (1.0, 1.0, 1.0)

No comments:

Post a Comment