16825-Learning For 3D HW1 Answers

Andrew ID: abhinavm

1. Practicing with Cameras

1.1 360-degree Renders

A 360-degree gif of the cow mesh.

360-degree cow rotation

Figure: 360-degree cow mesh rotation

1.2 Dolly Zoom

A gif demonstrating the dolly zoom effect.

dolly zoom

Figure: Dolly zoom


2. Practicing with Meshes

2.1 Tetrahedron

Rendered tetrahedron with 4 vertices and 4 triangle faces.

tetrahedron

Figure: Tetrahedron

2.2 Cube

Rendered cube with 8 vertices and 12 triangle faces.

cube

Figure: Cube


3. Re-texturing a Mesh

Cow Mesh Re-texturing

Color smoothly interpolated from purple (front) to cyan (back) based on Z-coordinate.

cow re-textured

Figure: Cow re-textured by Z-coordinate


4. Camera Transformations

Camera Transformations

Images showing cow mesh rendered with different camera transformations.

Flipping around Z-axis
R_rel = [[0, -1, 0], [-1, 0, 0], [0, 0, 1]]
T_rel = [0, 0, 0]

Top Left
Moving camera back in Z
R_rel = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
T_rel = [0, 0, 3]

Top Middle
Camera moved to the right and up
R_rel = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
T_rel = [0.4, -0.6, 0]

Top Right
Flipping around Y-axis
Important: T = T_0 + T_relative and not R_0 @ T_0 + T_relative
R_rel = [[0, 0, -1], [0, 1, 0], [-1, 0, 0]]
T_rel = [0, 0, 0]

Bottom Left

5. Rendering Generic 3D Representations

5.1 Point Clouds from RGB-D Images

Rendered point clouds from two RGB-D images and their union.

point cloud 1

Point cloud 1

point cloud 2

Point cloud 2

point cloud union

Union of point clouds

5.2 Parametric Torus

Torus point cloud rendered with varying sample densities.

torus 50

Torus 50 samples

torus 100

Torus 100 samples

torus 250

Torus 250 samples

torus 500

Torus 500 samples

5.2 Parametric Ellipsoid

Ellipsoid point cloud rendered with varying sample densities.

ellipsoid 50

Ellipsoid 50 samples

ellipsoid 100

Ellipsoid 100 samples

ellipsoid 250

Ellipsoid 250 samples

ellipsoid 500

Ellipsoid 500 samples

5.3 Implicit Surfaces

Torus and ellipsoid rendered as implicit surfaces using marching cubes.

torus implicit

Torus implicit surface

ellipsoid implicit

Ellipsoid implicit surface

Mesh vs Point Cloud tradeoffs

Sources: (https://mindkosh.com/blog/point-cloud-vs-mesh-in-3d-modeling-and-computer-graphics/, https://imerit.net/resources/blog/3d-point-cloud-vs-mesh/)

6. Do Something Fun

Traffic Cone

Custom traffic cone rendered with striped texture.

traffic cone

Traffic cone rotating