Homework 5

Contents:

  • You Are What You Eat

You Are What You Eat (Visualization App)

For this week's homework, I thought it'd be fun to visualize how much predators in the wild eat in terms of both their own proportions and in terms of human food (like hamburgers!). Here users at a zoo, would scan a predator (also assuming that the object anchors become better in the future) and see its daily diet in terms of what it eats in terms of its prey's size. For example a Siberian (Amur) tiger eats 9kg of meat minimum but can eat up to 50kg if they have a successful hunt. If a wild boar weighs on 124.5kg, and a tiger eats a boar, the boar model in the app would scale to (9/124.5)^(1/3) - the (1/3) exp is to calculate volume in proportion to the boar's volume (weight).

To calculate the initial model's scale, I took the shoulder height of the animal and then divided by the box collider's height in the XCode editor. The tiger's base scale for example was 91/3.672 = 0.025.

In addition to toggling the modes, I added a slider to let the user adjust how much the tiger is going to eat (ranging between 9 and 50)

Github: https://github.com/PaulineOC/ITP-AugmentedSpaces-HW5

Table of Stats


V1

In this initial test I try out both the scale mode (which works), and then the # mode. The latter really didn't work because the boar model kept persisting despite trying to remove the children of the world anchor and then re-populating the space. My app also kept crashing when I was trying to generate on the fly...

V2

  • Nixed the # mode (since I was running out of time/couldn't debug why the boar model kept persisting)

  • Add app states

  • Added a "unit mode" where users can see the scale of items to each other


Menu State

AR State - Unit Mode

AR State - Scale Mode