1. Practicing with Cameras

1.1. 360-degree Renders

I rendered the cow mesh rendered from continuously changing viewpoints around the object.

360-degree Renderers

1.2. Re-creating the Dolly Zoom

I rendered the cow mesh with the dolly zoom effect.

Dolly Zoom

2. Practicing with Meshes

2.1. Constructing a Tetrahedron

I manually defined a tetrahedron mesh with 4 vertices and 4 triangular faces, then rendered it from 360-degree viewpoints.

Tetrahedron

2.2 Constructing a Cube

I constructed a cube as a triangle mesh with 8 vertices and 12 faces (2 triangles per cube face), and rendered it from 360-degree viewpoints.

Cube

3. Re-texturing a mesh

I retextured the cow so its color varies smoothly from front to back along the z axis with the following colors:

color1 = [0, 1, 1]  # front
color2 = [1, 1, 0]  # back

Retextured mesh

4. Camera Transformations

For each target image, I found (R_relative, T_relative) such that R = R_relative @ R_0 and T = R_relative @ T_0 + T_relative. Below, I describe what each relative transform does and show the rendered meshes.

(1)

R_relative rotates the camera by 90° about the z-axis, so the cow appears on its side. T_relative is zero because no translation is needed.

R_relative = [[0, 1, 0],
              [-1,  0, 0],
              [0,  0, 1]]
T_relative = [0, 0, 0]

Transformed Cow 1

(2)

R_relative is the identity. T_relative = [0, 0, 1] moves the camera farther from the cow along z-axis, so the cow appears smaller.

R_relative = [[1, 0, 0],
              [0, 1, 0],
              [0, 0, 1]]
T_relative = [0, 0, 1]

Transformed Cow 2

(3)

R_relative is the identity. T_relative = [0.5, -0.5, 0] shifts the camera in X and Y so the cow moves toward the bottom left of the image.

R_relative = [[1, 0, 0],
              [0, 1, 0],
              [0, 0, 1]]
T_relative = [0.5, -0.5, 0]

Transformed Cow 3

(4)

R_relative rotates the camera by -90° about Y to get a side view of the cow. T_relative = [-3, 0, 3] then places the camera at distance 3 from the origin after that rotation.

R_relative = [[0, 0, 1],
              [0, 1,  0],
              [-1, 0,  0]]
T_relative = [-3, 0, 3]

Transformed Cow 4

5. Rendering Generic 3D Representations

5.1 Rendering Point Clouds from RGB-D Images

I unprojected the two RGB-D images into point clouds and rendered the first view, the second view, and their union side by side in a 360-degree gif.

Q5.1 Render Point Cloud

5.2 Parametric Functions

I sampled points from the parametric equation of a torus and rendered the point cloud. The hole is visible in the 360-degree gif below.

Q5.2 Render Torus Point Cloud

I also rendered a Mobius strip as an additional parametric function.

Q5.2 Render Mobius Strip Point Cloud

5.3 Implicit Surfaces

I defined a torus as an implicit function, computed it on a voxel grid, and converted it into a mesh using marching cubes algorithm. The hole is visible in the 360-degree gif.

Q5.3 Render Torus Mesh

Tradeoffs between meshes and point clouds

There are some tradeoffs between rendering meshes and point clouds:

I also rendered an octahedron as an additional implicit surface.

Q5.3 Render Octahedron Mesh

6. Do Something Fun

I created a mesh animation that morphs from a sphere to a cube, then an octahedron. I defined the shapes using implicit functions based on the L2, L∞, and L1 norms respectively, and interpolated between these functions to create smooth transitions in the 360-degree gif below.

Q6 Morphing Mesh

7. Sampling Points on Meshes

I uniformly sampled 10, 100, 1000 and 1000 points from the cow mesh and render each point cloud and the original cow mesh side by side in the 360-degree gif. I changed the point size inversely proportional to the point count.

Q7. Sampled Point Cloud Cow