MAX Assignment 4: Impostor

Task: Superimposing a facial image of another person on your face on camera

  1. Detection of the face using the camera & drawing out its perimeters (sensing)
  2. Placing another face, upload a facial .jpg with black background
  3. Blending the image onto the detected face and follow it, soften its edges (effecting)

First part:
The detection of the face and calculating its perimeters is similar to what we’ve been doing for the previous exercises. (jit.grab + cv.jit.faces)

Second part:
Import your cropped image (just the face with black background) using either ‘read’ or ‘importmovie’. Remember to bang it when you run the patch.

Third part:
Define the position of the imported image, by using destination dimensions on the jit.matrix. The attributes ‘@dstdimstart’ and ‘@dstdimend’ tells the incoming matrix the specific start and end position where it should be. Therefore, this function can be used to match the location of the image to the x and y coordinates of the detected face.

Fourth part:
Blend the image and the detected face together using ‘jit.alphablend @mode 1’. Soften the edges using ‘jit.fastblur@mode 4 @range 3’.

Notes:

jit.matrix 4 char 320 240 @planemap 1 1 2 3 -> blends only with the red channel because of the ‘1 1’, therefore the blended alpha = red. For black and white images, use ‘1 1 1 1’ because you need to blend all.

jit.alphablend @mode 0 -> displays just the voldemort mask
@mode 1 -> displays both the mask and camera image (use this)

You can switch between colour and b/w version using ‘gswitch2’. However, I think the black and white version blends better and looks more natural as compared to the coloured one!

Video documentation

MAX Assignment 3: Photobooth

Task: Create a photobooth programme that directs the user to the centre of the screen, and takes a photo 3 seconds after he/she is in the right position.

  1. Detection of the face and drawing its perimeters (sensing)
  2. Different audio tracks triggered based on the position of the user (effecting):
    Right – play “move left!”
    Left – play “move right!”
    Up – play “go down!”
    Down – play “go up!”
  3. Take photo if no audio tracks are triggered for 3 seconds (effecting)

The first part is similar to the previous assignment: using jit.grab and cv.jit.faces to display and detect the human face. Draw out the perimeters of the face.

Using jit.iter, separate the four x and y values of the detected face. Depending on the dimensions and size of your camera window, determine the x and y values for the photobooth (a box area in the middle of the screen).

If the user’s position is out of bounds, the x value will be bigger than or smaller than the designated middle box, and the audio track will be triggered. If the value = 0 or within the perimeters of the box, nothing will happen.


If the user’s position remains within the middle box for more than 3 seconds, a screenshot will be taken and saved onto the desktop!

Video documentation

 

Notes:

X – metro 1000 – print turnon
                                – delay 250 – print turnoff (turns on AND off)
clocker 100: something like a stopwatch/timer (do something after 5000)
X – clocker 1000 – (i) – >10000 – (i) [changes from 0 to 1 when number is >10000]
X – metro 10 – O
                          – speedlim 1000 – O (limits the speed to 1bang/sec)
X – sel 0 1 – print zero (can have a bigger range of nums, if 1 do this or if 2 do this)
                    – print one
key – branches out to four keys (e.g. arrow up down left right)
(i) – split 0 10 – (i)  [if number between 0 and 10, number appears here]
                            – (i)  [if number >10, number appears here]
onebang – doesnt bang repeatedly, only once when triggered
X – metro 1000 – counter 0 1 100 – (i) [counts from 1 to 100, +1/second]
O – uzi 100 – print [prints 100 bangs in one go]
whats the difference between pack i i i and pak i i i?
-> pack only triggers when the left input changes
-> pak triggers when any one of the inputs changes

Interactive II: Description & Milestones

Team Pattymore: Anam, Isaac, Jessie, Joan
Project location: Installation @ room downstairs

Our aim is to create the “Patronus Charm” from the Harry Potter series. The Patronus Charm is a magic spell that wizards cast from their wands. It casts a white vapour which can transform into an animal. In our version, when the wand is waved, an animal appears in the vapour and when it is still, only the vapour appears. The spread of the particles in the vapour will also increase with the speed of the wand waving.

We plan to achieve this by using motion tracking via light and blob tracking in Max 7 to trigger the appearance of both the white vapour and the animal. The white vapour will be generated particles and the animal will be an animated video. We will blend the the particles and the animal to create a smooth transition based on the speed of the wand. The X and Y coordinates of the particles and animal will be determined by the wand’s location. The wand itself will have an LED on the end of it so the camera can track the user’s movement.

All of this will be projected onto a fogscreen to create the illusion that the patronus is in 3D. The fog screen will be designed based on tutorials such as this: https://prosauce.org/blog/2012/6/10/how-to-diy-improved-inexpensive-fog-screen.html And our aim is to create an effect like this one:

 

Tutorials on generating particles in Max:

 

Project Milestones:
Our plan for the next few weeks! -> https://docs.google.com/spreadsheets/d/1NpC8NnpvjGQyTXnlQejEV3mqLUMhFA-0V5pfKfUKBlI/edit?usp=sharing

Narratives Sharing: Red Collar (6)

Red Collar is a digital media company that produces creative visions, technologies and interactive experiences for their clients. In celebration of their 6th birthday on the 6th February 2017, they created an interactive version of their 2016 end-in-review, documenting their journey and achievements over the course of 2016.

Click here to check out the page!

The page consists of four tabs along the timeline, paired with their respective season and time of the year – autumn, summer, spring and winter. There is a clock at the beginning of each season, and it requires interaction from the user to unlock the timeline.

 Summer

Spring & what they have done

   Winter

Narratives Sharing: Fillory (7)

Fillory is an adventure quest webpage done by Unit9, based on the upcoming Season 2 of U.S TV series The Magicians. This game/webpage features the main characters of the show as heroes, and brings the players through their background stories and journey. A list of quests are also available for players to completed and to further explore the realm.

Click here to check it out!

This website has amazing graphics, especially for the interactive map which allows players to zoom in/out in different perspectives, with realistically animated icons for each location on the map.