cMadan / MacaqueBlender

A Python library for parametric control of a 3D rigged macaque face model for visual and social neuroscience

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Python library for parametric control of a 3D rigged macaque face model for visual and social neuroscience

This repository contains Python code for automated control of a Blender (www.blender.org) file containing a fully rigged, realistic 3-dimensional Rhesus macaque avatar. The mesh was generated from a CT scan of a live anesthetized Rhesus macaque, and edited in collaboration with a professional CGI artist (Julien Duchemin). The code allows quick setup of viewing geometry to match the experimental context, parametric manipulation of body, head and gaze direction, facial expression, skin and fur appearance, environment variables, and offline rendering of images and animations using the Cycles engine. In the future the code will include the ability to continuously morph facial identity based on an empirically-defined PCA "face-space" based on a library of CT data, as well as game engine (Blender/ Unity) control for real-time closed-loop social neuroscience experiments.

The following parameters of the model can be varied continuously:

  • Body position and orientation (Cartesian coordinates relative to world origin)

  • Head orientation (spherical coordinates relative to body)

  • Gaze direction (spherical coordinates relative to head)

  • Eye vergence angle (determined automatically for gaze target distance)

  • Pupil dilation

  • Eye lid closure (i.e. blink)

  • Blend shapes for 4 stereotypical facial expression apexes:

    1. neutral
    2. open-mouthed threat (agressive)
    3. bared teeth display (submissive 'fear grimace')
    4. pursed-lips /coo vocalization (affiliative)
    5. yawn
  • Additional independent control of brow, ears, and jaw movement.

  • Fur length, density, color, texture map

  • Skin color, material reflectance (including sub-surface scattering), and texture

  • Lighting direction, intensity, color, and type

References

For preliminary neural data recorded from macaque inferotemporal cortex during viewing of these stimuli, please see the following Society for Neuroscience poster by Murphy & Leopold (2017).

About

A Python library for parametric control of a 3D rigged macaque face model for visual and social neuroscience


Languages

Language:Python 67.2%Language:MATLAB 32.8%