MLNI – W10 – Piggy Pig (Express)

Link to the code: https://glitch.com/edit/#!/w10no 

Process Recording

Screen Recording

Inspiration: (from Ellen!)

Our inspiration comes from a piggy filter where people can adjust the pig’s size from their own eyes. Therefore, we decided to use one person’s data as the pig’s eyes, another as pig’s nose. 

Development

After importing the poseNet model to the project, we have the pig’s eye and nose appearing on the screen according to our own nose/eye. However, when pushing eyes in the receive data, the nose we receive from the other is always blinking. We tested with updatelifespan and want to keep the appearance longer on the screen. However, that only adds to the number of objects. 

After meeting with Professor Moon, he suggested we use direct variables/objects in the screen rather than using the array and push it. Now the rendered shapes are much stable, however, different screens still show up different things. Moon then told us about creating modes, and by changing the mode we will be able to switch to the right stage where the eyes are above the nose.

With updatelifespan()

Leave a Reply

Your email address will not be published. Required fields are marked *