184-final

CS184 Final Project Milestone Check-In

LINK TO VIDEO HERE

https://www.dropbox.com/s/cd9yd9b5v4gb09a/tubeman.mov?dl=0

## Basic Information

The Goal

Inflatable Tube Man Example (he/him)

Accomplishments

  1. Wind Particle Simulation
  2. Wind Cloth Interaction
  3. Tube Construction

Wind Simulation We create a wind algorithm that generates wind by defining it as a force that will act on the cloth. Here’s a particularly important chunk of our changes:

  float consC = 0.5; //represents strength of wind
  Vector3D windDirV = Vector3D(1, 1, 1);
  Vector3D inside = dot(normal, windDirV - v) * normal;
  Vector3D windForce = consC * inside;

This algorithm is deceptively simple. We look forward to adding more aspects to our wind algorithm, refactoring it, or making it more complex. We will increase the complexity of our wind simulation algorithm as required for the project — as we’re trying to not spend too much time on developing particle simulation elements that can be fabricated more easily otherwise.

Wind Cloth Interaction

Wind interacting with cloth

By integrating the above algorithm into the cloth simulation simulate function, we were able to create acceleration on the cloth through our wind simulation algorithm.

Tube Construction

Beginning Attempts!

To begin our tube construction, we built off of our Project 4 Cloth Simulation project in terms of structuring our object with springs and point masses. Instead of approaching our mesh as a cloth, we had to think of springs and point masses as thread forming our tube. We primarily edited our build_grid() in cloth.cpp .

Seeing as how our mesh generation functions use a row-column format to represent the structure, the easiest stepping point was to create a rigid mesh using the concept of combining 4 individual meshes as sides which were then combined.

Rectangular tube mesh Wind flowing through rectangular tube

Wind flowing through open cloth tube

However, we then realized we could use polar coordinates to represent the tube shape. With the help of polar coordinates, we were able to construct a cylindrical shape for our tube.

We edited json files to be able to create a tube, by taking inspiration from the sphere.json file!

Preliminary Results and Reflections on Progress

Tube man is possible! We’re on track!

For final touches, we plan to implement a UV mapped version of the tube by using and illustrator design textured onto our tube.

Updates to Work Plan

Maybe can’t do tube man features like face or arms, 3D modeling is difficult.

One of the more difficult parts of this project has been constructing our tube. Specifically, because the object we ideally want to work with is complex/abstract, adding arms as an additional component currently seems like a difficult feat. Additionally, adding an enclosure for the tube seems a bit difficult, along with representing the internal and external forces of the tube.

This week, we went to office hours to check-in on our progress with TAs who gave us guidance to look into the triangulation algorithm and OpenGL resources to construct our tube mesh.

References + Resources

Original Project Proposal Doc TA Feedback Repository Link to Video Slides