Assignment 1: Rendering Basics with PyTorch3D

1. Practicing with Cameras

1.1 360-degree Renders

360-degree turntable render of the cow mesh

1.2 Re-creating the Dolly Zoom

Dolly zoom effect on the cow on a plane

2. Practicing with Meshes

2.1 Constructing a Tetrahedron

360-degree render of a tetrahedron mesh

The mesh has 4 vertices and 4 triangle faces.

2.2 Constructing a Cube (5 points)

360-degree render of a cube mesh

The mesh has 8 vertices and 12 triangle faces.

3. Re-texturing a Mesh

Cow mesh re-textured with a color gradient

color1 = [0, 0, 1] (blue) on the front, the vertex with the smallest z, and color2 = [0, 1, 0] (green) on the back, the vertex with the largest z.

4. Camera Transformations

Camera transform 1 Camera transform 2 Camera transform 3 Camera transform 4

Starting from R_0 = I and T_0 = [0, 0, 3], with R = R_relative @ R_0 and T = R_relative @ T_0 + T_relative.

  1. R_relative = 90° rotation about z, T_relative = [0, 0, 0].
  2. R_relative = 90° rotation about y, T_relative = [-3, 0, 3].
  3. R_relative = identity, T_relative = [0, 0, 3].
  4. R_relative = identity, T_relative = [0.4, -0.4, 0].

5. Rendering Generic 3D Representations

5.1 Rendering Point Clouds from RGB-D Images

Point cloud from the first image Point cloud from the second image Union of both point clouds

Left to right: the first image, the second image, and the union of the two.

5.2 Parametric Functions

360-degree render of a torus point cloud 360-degree render of a trefoil knot point cloud

The torus and the trefoil knot

5.3 Implicit Surfaces

360-degree render of a torus point cloud 360-degree render of a torus mesh

The same torus as a point cloud (5.2, left) and as an implicit surface meshed with marching cubes (5.3, right).

Mesh vs. point cloud

Goursat's tangle cube

360-degree render of a tangle cube mesh

The tangle cube is the zero level-set of F(x, y, z) = x⁴ − 5x² + y⁴ − 5y² + z⁴ − 5z² + 11.8.

(Extra Credit) 6. Do Something Fun

The cow exploding into a point cloud and reassembling

The cow blows apart into a point cloud and puts itself back together

(Extra Credit) 7. Sampling Points on Meshes

Cow sampled with 10 points Cow sampled with 100 points Cow sampled with 1000 points Cow sampled with 10000 points Original cow mesh

Left to right: 10, 100, 1,000 and 10,000 sampled points, then the original mesh.